.full-gallery { padding-block: 48px 88px; }
.gallery-heading { max-width: 720px; margin-bottom: 40px; }
.gallery-heading h1 { margin-top: 18px; }
.gallery-heading p { margin-top: 20px; }
.full-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.gallery-item { display: block; border-radius: 8px; }
.gallery-item .photo-frame { aspect-ratio: 4 / 3; }
.gallery-item figcaption { padding-top: 12px; font-size: 16px; font-weight: 550; line-height: 1.5; }
.gallery-item:hover figcaption { text-decoration: underline; text-underline-offset: 4px; }
.gallery-lightbox { width: min(1200px, calc(100% - 32px)); height: min(960px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--bg); }
.gallery-lightbox[open] { display: flex; flex-direction: column; }
.gallery-lightbox::backdrop { background: #11181bd9; }
body:has(.gallery-lightbox[open]) { overflow: hidden; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: none; }
.lightbox-header h2 { font-size: 20px; line-height: 1.4; }
.gallery-lightbox button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 550; }
.gallery-lightbox button:hover { background: var(--surface); }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; min-height: 0; flex: 1; margin-top: 16px; }
#lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--surface); }
.lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.lightbox-navigation { display: flex; gap: 8px; }
@media (max-width: 1000px) {
  .full-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .full-gallery { padding-block: 28px 56px; }
  .gallery-heading { margin-bottom: 28px; }
  .gallery-heading h1 { margin-top: 12px; }
  .gallery-heading p { margin-top: 16px; }
  .full-gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-lightbox { width: calc(100% - 16px); height: calc(100dvh - 16px); padding: 12px; }
  .lightbox-header { gap: 12px; }
  .lightbox-header h2 { font-size: 17px; }
  .lightbox-caption { gap: 8px; }
  .gallery-lightbox button { padding-inline: 12px; }
}

/* A browsable photo collection on phones; the original file always opens in the viewer. */
.full-gallery{padding-block:48px 64px}
.gallery-heading{margin-bottom:24px}
.gallery-heading .page-eyebrow{margin:0 0 16px}
.gallery-heading h1{font-size:clamp(38px,6vw,76px);line-height:1.08;margin:0}
.gallery-heading>p:last-child{color:var(--muted);font-size:16px;line-height:1.7;max-width:44ch}
.gallery-jumps{display:flex;gap:28px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:32px}
.gallery-jumps a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-decoration:underline;text-underline-offset:6px}
.full-gallery-grid{gap:28px 16px}
.full-gallery .section-head{margin-bottom:24px}
.full-gallery h2{font-size:28px}
.gallery-item figcaption{font-size:14px;line-height:1.4;padding-top:12px}
.gallery-day-grid .photo-frame{aspect-ratio:3/4}
.full-gallery .gallery-quote{padding:32px 24px;border-radius:20px;margin-top:12px}
.full-gallery .gallery-quote h2{font-size:34px}
.gallery-quote .quote-actions{min-width:0}
.gallery-lightbox{border-radius:20px;padding:16px}
.gallery-lightbox button{border-radius:99px;font-size:14px}
.lightbox-figure{gap:16px}
#lightbox-image{border-radius:12px;background:#101918}
#lightbox-image[aria-busy=true]{opacity:.55}
.lightbox-caption{font-size:13px;line-height:1.5;align-items:center}
@media(max-width:600px){
 .full-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery-night-grid .gallery-item:first-child,.gallery-night-grid .gallery-item:last-child{grid-column:1 / -1}
 .gallery-night-grid .gallery-item:first-child figcaption{font-size:16px}
 .gallery-day-grid .gallery-item:first-child{grid-column:1 / -1}
 .gallery-day-grid .gallery-item:first-child .photo-frame{aspect-ratio:3/4}
 .gallery-lightbox{height:fit-content;max-height:calc(100dvh - 16px);padding:12px;border-radius:16px}
 .lightbox-figure{display:block;flex:none}
 #lightbox-image{height:auto;max-height:calc(100dvh - 196px)}
 #lightbox-image:not([src]){min-height:200px}
 .lightbox-caption{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}
 .lightbox-navigation{justify-content:space-between}
 .lightbox-navigation button{min-width:100px}
}
@media(min-width:861px){
 .full-gallery{padding-block:72px 88px}
 .gallery-heading{max-width:900px}
 .gallery-heading>p:last-child{font-size:18px}
 .gallery-jumps{margin-bottom:44px}
 .full-gallery-grid{gap:36px 28px}
 .full-gallery h2{font-size:36px}
 .gallery-item figcaption{font-size:16px}
 .full-gallery .gallery-quote{padding:56px;margin-top:20px}
 .full-gallery .gallery-quote h2{font-size:48px}
}

