.gallery-page { --ink: var(--muted); }
.gallery-page .app-wrap { width: min(100% - 48px, 1180px); }
.gallery-page .app-page { padding-top: 130px; }
.gallery-page h1, .gallery-page h2, .gallery-page .eyebrow { font-family: 'La Luxes Serif', Georgia, serif; font-weight: 400; }
.gallery-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; padding: 20px 0 95px; }
.gallery-intro-copy { text-align: center; }
.gallery-intro-copy .eyebrow { color: var(--gold); }
.gallery-intro-copy .eyebrow::before { display: none; }
.gallery-intro-copy h1 { margin: 24px 0; }
.gallery-intro-copy h1 em, .gallery-collection h2 em, .gallery-next-step h2 em { color: var(--pink); font-style: normal; }
.gallery-intro-copy > p:not(.eyebrow) { line-height: 1.9; margin-bottom: 16px; }
.gallery-intro-actions { display: grid; justify-items: center; gap: 20px; margin-top: 28px; }
.gallery-intro-actions .button { gap: 20px; }
.gallery-page p.gallery-photo-count { font: 11px/1.5 Arial, sans-serif; color: var(--gold); letter-spacing: 1px; margin-top: 38px; }
.gallery-intro-photos { position: relative; padding-left: 28px; padding-bottom: 38px; }
.gallery-cover { position: relative; margin: 0; border-radius: 240px 240px 16px 16px; overflow: hidden; border: 1px solid #d9ad7550; box-shadow: 0 22px 60px #0005; }
.gallery-cover img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 62%; }
.gallery-cover figcaption { position: absolute; inset: auto 0 0; text-align: center; padding: 45px 14px 22px; background: linear-gradient(transparent,#060a15dd); color: #e9d9c0; font: 17px/1.4 'La Luxes Serif', Georgia, serif; }
.gallery-detail { position: absolute; margin: 0; bottom: 0; left: -15px; width: 31%; border: 5px solid #080d1b; border-radius: 15px; overflow: hidden; box-shadow: 0 16px 40px #0006; transform: rotate(-6deg); }
.gallery-detail img { display: block; width: 100%; height: auto; }
.gallery-collection { scroll-margin-top: 112px; }
.gallery-collection-heading { text-align: center; margin-bottom: 35px; }
.gallery-collection-heading .eyebrow::before { display: none; }
.gallery-collection-heading p:last-child { margin-top: 16px; }
.gallery-filter-bar { margin-bottom: 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.gallery-filters button { border: 1px solid var(--line); border-radius: 30px; background: transparent; padding: 10px 17px; color: var(--muted); cursor: pointer; font: 12px/1.5 'Lora', Georgia, serif; }
.gallery-filters button[aria-pressed=true] { background: var(--gold); color: #080d1b; border-color: var(--gold); }
.gallery-page p.gallery-result-count { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.gallery-mosaic { columns: 3; column-gap: 22px; }
.gallery-photo { display: block; break-inside: avoid; margin-bottom: 25px; color: var(--muted); text-decoration: none; }
.gallery-photo[hidden] { display: none !important; }
.gallery-photo figure { margin: 0; }
.gallery-photo-image { position: relative; overflow: hidden; border-radius: 16px; background: #101626; }
.gallery-photo img { display: block; width: 100%; height: auto; }

.gallery-photo-expand { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e7d3b866; border-radius: 50%; background: #080d1bbb; color: #f0ddbf; font-size: 18px; }
.gallery-photo figcaption { display: flex; align-items: baseline; gap: 10px; padding: 11px 3px 0; font: 12px/1.6 'Lora', Georgia, serif; }
.gallery-photo-number { flex: 0 0 auto; font: 10px/1.5 Arial, sans-serif; color: var(--gold); }
.gallery-next-step { margin: 80px 0 20px; padding: 58px 20px; border: 1px solid #d9ad7540; border-radius: 22px; text-align: center; background: radial-gradient(ellipse at top, #8a234128, transparent 65%); }
.gallery-next-step .eyebrow::before { display: none; }
.gallery-next-step h2 { margin: 20px 0; }
.gallery-next-step .button { display: inline-flex; gap: 20px; margin: 25px auto 20px; }
.gallery-next-step .text-link { display: block; width: fit-content; margin: 0 auto; }
.gallery-viewing { overflow: hidden; }
.gallery-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px 26px; border: none; background: #060912f5; color: var(--muted); box-sizing: border-box; }
.gallery-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; }
.gallery-lightbox::backdrop { background: #02030aee; }
.gallery-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 10px; }
.gallery-lightbox-header > div { min-width: 0; }
.gallery-page .gallery-lightbox-header h2 { text-align: left; margin: 3px 0 0; font-size: 28px; }
.gallery-lightbox-category { color: var(--gold); font: 11px/1.5 Arial, sans-serif; letter-spacing: 1px; }
.gallery-lightbox-close, .gallery-lightbox-arrow { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d9ad754a; border-radius: 50%; background: #101626; color: var(--muted); width: 44px; height: 44px; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.gallery-lightbox-stage { position: relative; min-height: 0; display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 15px; align-items: center; touch-action: pan-y pinch-zoom; }
.gallery-lightbox-stage.gallery-single-photo { grid-template-columns: minmax(0,1fr); }
.gallery-lightbox-arrow[hidden] { display: none; }
.gallery-lightbox-stage figure { height: 100%; min-height: 0; min-width: 0; margin: 0; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); place-items: center; position: relative; }
.gallery-lightbox-stage img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; border-radius: 5px; }
.gallery-lightbox-loading { position: absolute; padding: 12px; text-align: center; font-size: 12px; }
.gallery-lightbox-loading[hidden] { display: none; }
.gallery-lightbox-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 10px; color: var(--muted); font: 11px/1.5 Arial, sans-serif; }
.gallery-lightbox-footer [data-lightbox-position] { color: var(--gold); }
.gallery-page button:focus-visible, .gallery-page a:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
@media (max-width:1000px) { .gallery-intro { gap: 36px; } .gallery-mosaic { columns: 2; } }
@media (max-width:760px) {
  .gallery-page .app-wrap { width: min(100% - 32px, 620px); }
  .gallery-page .app-page { padding-top: 110px; }
  .gallery-intro { grid-template-columns: 1fr; gap: 40px; padding-bottom: 65px; }
  .gallery-intro-copy h1 { margin: 20px 0; }
  .gallery-intro-photos { width: min(88%, 420px); margin: 0 auto; padding-left: 0; }
  .gallery-detail { left: -18px; }
  .gallery-lightbox { padding: 14px 8px max(16px,env(safe-area-inset-bottom)); gap: 12px; }
  .gallery-lightbox-header { padding: 0 8px; }
  .gallery-lightbox-stage { grid-template-columns: minmax(0,1fr); gap: 0; }
  .gallery-lightbox-arrow { position: absolute; top: 50%; z-index: 2; background: #080d1bbf; }
  .gallery-lightbox-prev { left: 2px; } .gallery-lightbox-next { right: 2px; }
  .gallery-lightbox-footer { padding: 0 8px; }
  .gallery-lightbox-footer > span:last-child { max-width: 210px; text-align: right; }
  .gallery-next-step { margin-top: 45px; padding: 35px 18px; }
}
@media (max-width:600px) { .gallery-mosaic { columns: 1; } .gallery-filters { gap: 7px; } .gallery-filters button { padding: 9px 12px; } }
@media (prefers-reduced-motion: no-preference) { .gallery-photo img { transition: transform .35s ease; } .gallery-photo:hover img { transform: scale(1.025); } }
