.gallery-intro {
  position: relative;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  gap: clamp(2rem,5vw,6rem);
  padding-top: calc(100px + clamp(1.6rem,3vw,3.5rem));
  padding-bottom: clamp(2rem,4vw,4.75rem);
}
.gallery-copy h1 em { display: block; }
.gallery-copy p.gallery-label {
  display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem;
  color: var(--accent-amber); text-transform: uppercase; letter-spacing: .15em;
  font: 700 var(--type-caption)/1.5 var(--site-font);
}
.gallery-label::before { content: ""; width: 1.7rem; height: 2px; background: currentColor; }
.gallery-copy p:not(.gallery-label) { max-width: 44ch; }
.gallery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 1.7rem; }
.album-link { font: 700 var(--type-control)/1.45 var(--site-font); color: var(--accent-amber); text-decoration: underline; text-underline-offset: .27em; padding-block: .4rem; }
.album-link:hover { color: #fff2df; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-photo {
  display: block; position: relative; overflow: hidden; border-radius: 13px;
  background: #242629; isolation: isolate;
}
.gallery-photo img { display: block; width: 100%; height: auto; }
.gallery-cover { width: 100%; max-width: 53rem; justify-self: end; margin: 0; }
.gallery-cover .gallery-photo {
  padding: clamp(4px,.5vw,7px); border-radius: 10px; background: #ede7dd;
  box-shadow: 0 20px 44px -30px #000a;
}
.gallery-cover img { aspect-ratio: 1.65; object-fit: cover; object-position: 50% 30%; border-radius: 5px; }
.photo-expand {
  position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center;
  width: 2.65rem; height: 2.65rem; border-radius: 50%; border: 1px solid #ffffff73;
  background: #101215da; color: #fff;
}
.photo-expand svg { width: 18px; height: 18px; }
.gallery-cover .photo-expand { top: .75rem; bottom: auto; }
.gallery-photo:is(:hover,:focus-visible) .photo-expand, .lightbox-button:is(:hover,:focus-visible) { color: #16191d; background: var(--accent-amber); border-color: var(--accent-amber); }
.gallery-photo:focus-visible { outline: 3px solid var(--accent-amber); outline-offset: 4px; }
.gallery-album { padding: clamp(2.75rem,5vw,5.75rem) var(--gutter); }
.wedding-album { color: #1b2025; background: radial-gradient(ellipse at top left,#f3bb781b,transparent 52%),var(--section-light); }
.album-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.3rem; padding-bottom: 1.1rem; margin-bottom: clamp(1.3rem,2.1vw,2.25rem); border-bottom: 1px solid #35291c2b; }
.album-heading h2 { font: 700 var(--type-section)/1.12 var(--site-font); letter-spacing: -.045em; margin: 0; }
.album-heading em { color: var(--accent-ink); font: italic 1.06em/1.12 Georgia,serif; }
.wedding-album .album-link { color: var(--accent-ink); }
.wedding-album .album-link:hover { color: #261d14; }
.wedding-album :focus-visible { outline-color: var(--accent-ink); }
.wedding-grid, .live-grid {
  display: grid;
  align-items: start;
  gap: clamp(.85rem,1.6vw,1.6rem);
}
.wedding-grid { grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr)); }
.wedding-story { margin-top: clamp(2.5rem,5vw,5rem); }
.wedding-story h3 { margin: 0 0 1.25rem; font: 700 clamp(1.45rem,2.5vw,2rem)/1.2 var(--site-font); letter-spacing: -.025em; }
.wedding-story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.85rem,1.6vw,1.6rem); }
.wedding-story-grid .gallery-item { align-self: stretch; }
.wedding-story-grid .gallery-photo, .wedding-story-grid .gallery-photo img { height: 100%; }
.wedding-story-grid .gallery-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.wedding-story-grid .gallery-item.portrait .gallery-photo img { object-position: center 24%; }
.live-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.5fr); }
.live-album { background: var(--section-dark); color: var(--section-light); }
.live-album .album-heading { border-color: #fff2; }
.live-album .album-heading em { color: var(--accent-amber); }
@media (max-width: 1100px) { .gallery-intro { padding-top: calc(82px + 1.8rem); } }
@media (max-width: 850px) {
  .gallery-intro { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; }
  .wedding-story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .gallery-intro { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .gallery-copy h1 { font-size: clamp(2.4rem,8vw,3rem); }
  .gallery-copy h1 em { display: inline; }
  .gallery-actions { margin-top: 1rem; }
  .gallery-actions .partner-button { min-width: 0; }
  .album-heading { display: block; }
  .album-heading a { display: inline-block; margin-top: .4rem; }
  .wedding-grid, .live-grid { grid-template-columns: minmax(0,1fr); gap: 1.7rem; }
  .wedding-story-grid { grid-template-columns: minmax(0,1fr); }
  .gallery-photo { border-radius: 11px; }
}

.lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden}
.lightbox::backdrop{background:#080a0deb;backdrop-filter:blur(8px)}
.lightbox[open]{display:grid;place-items:center}
.lightbox-inner{display:grid;justify-items:center;gap:18px;max-width:calc(100vw - 160px);max-height:calc(100dvh - 130px);margin:auto}
.lightbox-image{display:block;max-width:100%;max-height:calc(100dvh - 190px);width:auto;height:auto;object-fit:contain}
.lightbox-button{position:fixed;display:grid;place-items:center;width:46px;height:46px;border:1px solid #ffffff3d;border-radius:50%;background:#20252bcc;color:#fff;transition:background .2s,color .2s}
.lightbox-button:hover{background:#fff;color:#101215}
.lightbox-button svg{width:21px;height:21px;pointer-events:none}
.lightbox-close{right:24px;top:22px}
.lightbox-previous{left:20px;top:calc(50% - 23px)}
.lightbox-next{right:20px;top:calc(50% - 23px)}
.lightbox-count{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);font-size:13px;color:#c4cad2}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width: 800px) {
.lightbox-inner{max-width:calc(100vw - 32px);max-height:calc(100dvh - 170px)}
.lightbox-image{max-height:calc(100dvh - 230px)}
.lightbox-close{right:16px;top:16px}
.lightbox-previous,
.lightbox-next{top:auto;bottom:18px}
.lightbox-previous{left:20px}
.lightbox-next{right:20px}
.lightbox-count{bottom:33px}}

.wedding-album .wedding-story{margin-top:1.5rem}.gallery-photo img{background:#e4e4e1}
