/* Gallery only — inherited fonts and palette match the rest of the venue. */
#gallery[hidden], a[href="#gallery"][hidden], #gallery img[hidden] { display: none !important; }
#gallery { overflow: clip; padding-bottom: 105px; }
#gallery .gallery-head { align-items: center; margin-bottom: 18px; gap: 40px; }
#gallery h2 { font-size: clamp(2.7rem, 4.5vw, 4.6rem); white-space: pre-line; }
#gallery .gallery-intro { max-width: 270px; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.gallery-stage { position: relative; height: clamp(590px, 52vw, 720px); isolation: isolate; touch-action: pan-y; --px: 0px; --py: 0px; }
#gallery .orbit-image { position: absolute; left: 50%; top: 50%; width: 47%; aspect-ratio: 1.42; height: auto; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--cream); box-shadow: 0 24px 55px -28px rgba(36,32,27,.42); cursor: pointer; transform: translate(calc(-50% + var(--x) + var(--px)), calc(-50% + var(--y) + var(--py))) rotate(var(--r)) scale(var(--s)); transition: transform 1000ms var(--ease), filter 800ms var(--ease), opacity 800ms var(--ease); --x: 0%; --y: 0%; --r: 0deg; --s: 1; }
#gallery .orbit-image[data-slot="0"] { z-index: 4; cursor: zoom-in; }
#gallery .orbit-image[data-slot="-1"] { --x: -85%; --y: -56%; --r: -8deg; --s: .42; z-index: 2; }
#gallery .orbit-image[data-slot="1"] { --x: 85%; --y: 53%; --r: 7deg; --s: .44; z-index: 3; }
#gallery .orbit-image[data-slot="-2"] { --x: -77%; --y: 60%; --r: 6deg; --s: .36; z-index: 2; }
#gallery .orbit-image[data-slot="2"] { --x: 76%; --y: -65%; --r: -6deg; --s: .36; z-index: 2; }
#gallery .orbit-image[data-slot="-3"] { --x: -22%; --y: -70%; --r: 4deg; --s: .28; z-index: 1; }
#gallery .orbit-image[data-slot="3"] { --x: 22%; --y: 70%; --r: -5deg; --s: .28; z-index: 1; }
#gallery .orbit-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 1100ms var(--ease); }
#gallery .orbit-image:hover img { transform: scale(1.035); }
#gallery .orbit-image:focus-visible { outline-width: 4px; }
#gallery .orbit-image::before { display: none; }
#gallery .orbit-image .orbit-image-hint { position: absolute; display: block; padding: 16px 20px; inset: auto 0 0; margin: 0; color: var(--white); background: linear-gradient(transparent, rgba(26,23,19,.65)); text-align: right; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; opacity: 0; transform: none; }
#gallery .orbit-image[data-slot="0"]:is(:hover,:focus-visible) .orbit-image-hint, #gallery .orbit-image:not(:has(img)) .orbit-image-hint, #gallery .image-unavailable .orbit-image-hint { opacity: 1; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 30px; }
.gallery-controls button, .gallery-viewer-close { touch-action: manipulation; }
.gallery-arrow { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--gold); cursor: pointer; transition: background .3s, border-color .3s; }
.gallery-arrow:hover { background: var(--cream); border-color: var(--gold); }
.gallery-arrow:disabled { opacity: .3; cursor: default; }
#gallery-position { font-size: 11px; letter-spacing: .18em; color: var(--muted); min-width: 70px; text-align: center; }
.gallery-invitation { text-align: center; margin: 24px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.gallery-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 70px 80px; border: 0; color: var(--paper); background: rgba(26,23,19,.98); }
.gallery-viewer::backdrop { background: var(--ink-deep); }
.gallery-viewer[open] { display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 20px; }
.gallery-viewer-media { display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.gallery-viewer-media :is(img,video) { width: 100%; height: 100%; min-height: 0; object-fit: contain; animation: gallery-reveal .5s ease both; }
.gallery-viewer-close { position: absolute; right: 24px; top: 18px; width: 48px; height: 48px; background: transparent; border: 0; color: var(--paper); font-size: 32px; cursor: pointer; }
.gallery-viewer .gallery-arrow { color: var(--gold-soft); border-color: var(--line-light); }
.gallery-viewer .gallery-arrow:hover { background: var(--ink); }
.gallery-viewer-count { min-width: 60px; text-align: center; font-size: 12px; color: var(--gold-soft); }
@keyframes gallery-reveal { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 800px) {
  #gallery { padding: 85px 0 70px; }
  #gallery .container { width: 100%; }
  #gallery .gallery-head { display: block; padding: 0 24px; margin-bottom: 36px; }
  #gallery .gallery-intro { max-width: 360px; margin: 24px 0 0; }
  .gallery-stage { height: min(95vw, 560px); overflow: hidden; }
  #gallery .orbit-image { width: 80%; height: 94%; aspect-ratio: auto; box-shadow: none; }
  #gallery .orbit-image[data-slot] { --x: 0%; --y: 0%; --s: 1; --r: 0deg; }
  #gallery .orbit-image[data-slot="-1"] { --x: -105%; --s: .94; }
  #gallery .orbit-image[data-slot="1"] { --x: 105%; --s: .94; }
  #gallery .orbit-image[data-slot="0"] .orbit-image-hint { opacity: 1; }
  .gallery-controls { margin-top: 24px; }
  .gallery-viewer { padding: 76px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  #gallery .orbit-image, #gallery .orbit-image img { transition: none !important; }
  .gallery-viewer-media :is(img,video) { animation: none !important; }
}
