/* The guest photo pages (6.6.0, D-042). Self-contained: this is the only stylesheet they load.
   A dark, warm page over a still picture of the hall's gallery corner; gold hairlines; Fraunces for
   titles, Inter for reading. Built for phones first: most guests arrive from a link in a message. */
@font-face { font-family: "Inter"; font-weight: 400; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-weight: 400; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; background: #0d0806; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #efe6d2; font: 400 16px/1.55 "Inter", system-ui, sans-serif; }
a { color: #e7c98a; }
a:focus-visible, button:focus-visible { outline: 2px solid #f3dca0; outline-offset: 3px; border-radius: 6px; }
.gg-skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 12px; background: #1a110b; border-radius: 8px; }
.gg-skip:focus { left: 8px; }
/* the room behind: one still of the hall, dimmed so the photos are the brightest thing on the page */
.gg-room { position: fixed; inset: 0; z-index: -1; background: #0d0806 center / cover no-repeat; filter: saturate(.9); }
.gg-room::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 85% at 50% 0%, rgba(13, 8, 6, .18), rgba(13, 8, 6, .72) 72%), linear-gradient(rgba(13, 8, 6, .2), rgba(13, 8, 6, .55) 45%, rgba(13, 8, 6, .9)); }

.gg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 44px) 12px; }
.gg-brand { display: inline-flex; align-items: center; gap: 12px; color: #f3e3bd; text-decoration: none; font: 400 20px/1 "Fraunces", Georgia, serif; letter-spacing: .01em; }
.gg-brand svg { width: 22px; height: auto; color: #e7c98a; filter: drop-shadow(0 0 10px rgba(231, 201, 138, .35)); }
.gg-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; color: #e7c98a; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .28); background: rgba(20, 13, 9, .5); }
.gg-link:hover { background: rgba(231, 201, 138, .12); }

.gg-main { flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; padding: clamp(8px, 2vw, 22px) clamp(16px, 4vw, 44px) 56px; }
.gg-main:focus { outline: none; }
.gg-head { margin: clamp(10px, 3vw, 34px) 0 clamp(18px, 3vw, 34px); }
.gg-eyebrow { margin: 0 0 6px; font-weight: 600; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #d2b072; }
.gg-head h1 { margin: 0; font: 400 clamp(40px, 7vw, 84px)/1.02 "Fraunces", Georgia, serif; letter-spacing: -.015em; color: #f6eedc; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); text-wrap: balance; }
.gg-sub { margin: 10px 0 0; color: #c9bda6; }
.gg-desc { margin: 10px 0 0; max-width: 70ch; color: #dccfb6; }
.gg-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 10px -4px; padding: 0 12px 0 8px; border-radius: 999px; color: #e7c98a; text-decoration: none; font-weight: 600; font-size: 14px; }
.gg-back:hover { background: rgba(231, 201, 138, .1); }

.gg-year { margin-top: clamp(22px, 3vw, 40px); }
.gg-year h2 { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font: 400 clamp(22px, 2.4vw, 30px)/1 "Fraunces", Georgia, serif; color: #e7c98a; }
.gg-year h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(231, 201, 138, .45), rgba(231, 201, 138, 0)); }
.gg-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gg-album { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; background: rgba(22, 14, 9, .78);
  box-shadow: 0 0 0 1px rgba(232, 200, 140, .14), 0 24px 44px -26px rgba(0, 0, 0, .95); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.gg-album { animation: gg-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i, 0), 14) * 45ms); }
@keyframes gg-rise { from { opacity: 0; transform: translateY(14px); } }
.gg-album:hover, .gg-album:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(232, 200, 140, .5), 0 30px 54px -24px rgba(0, 0, 0, 1), 0 0 44px -14px rgba(231, 201, 138, .45); }
.gg-cover { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #2a1c12, #130c08); overflow: hidden; }
.gg-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.gg-album:hover .gg-cover img { transform: scale(1.05); }
.gg-cap { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 15px; }
.gg-cap b { font: 400 20px/1.2 "Fraunces", Georgia, serif; color: #f6eedc; }
.gg-cap span { font-size: 13.5px; color: #b9ab92; }

.gg-empty { max-width: 560px; margin: 8vh auto; padding: 28px 30px; text-align: center; border-radius: 18px; background: rgba(22, 14, 9, .8); box-shadow: 0 0 0 1px rgba(232, 200, 140, .16); }
.gg-empty-t { margin: 0 0 8px; font: 400 26px/1.2 "Fraunces", Georgia, serif; color: #f6eedc; }
.gg-empty p { margin: 0; color: #c9bda6; }

/* an album: rows of photos of equal height, each as wide as its shape asks (no cropping) */
.gg-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.gg-grid::after { content: ""; flex-grow: 1e4; }
.gg-ph { position: relative; flex: calc(var(--ar, 1.5) * 100) 1 calc(var(--ar, 1.5) * clamp(120px, 17vw, 230px)); height: clamp(120px, 17vw, 230px); border-radius: 6px; overflow: hidden; background: #1a110b; cursor: zoom-in; }
.gg-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.gg-ph:hover img, .gg-ph:focus-visible img { transform: scale(1.04); filter: brightness(1.08); }
.gg-play { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(13, 8, 6, .7); box-shadow: 0 0 0 1px rgba(232, 200, 140, .5); }
.gg-play::after { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #f3dca0; border-right: 0; }
.gg-pages { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.gg-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; color: #1a1008; text-decoration: none; font-weight: 600; background: linear-gradient(180deg, #e3c584, #b8924e); }

.gg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 18px clamp(16px, 4vw, 44px) max(18px, env(safe-area-inset-bottom)); font-size: 12.5px; color: #8f836d; }

/* the large view (guest.js): one photo or video at a time, arrows, swipe, Esc to close */
.gg-lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(8, 5, 3, .96); opacity: 0; transition: opacity .25s ease; touch-action: pan-y; }
.gg-lb.on { opacity: 1; }
.gg-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 14px 8px; color: #c9bda6; font-size: 14px; }
.gg-lb-bar .n { font-variant-numeric: tabular-nums; }
.gg-lb-acts { display: flex; gap: 8px; }
.gg-lb button, .gg-lb .dl { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; color: #f3dca0; background: rgba(255, 236, 200, .07); font: 600 14px/1 "Inter", system-ui, sans-serif; text-decoration: none; }
.gg-lb button:hover, .gg-lb .dl:hover { background: rgba(255, 236, 200, .16); }
.gg-lb-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.gg-lb-stage img, .gg-lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); animation: gg-in .35s cubic-bezier(.2, .8, .2, 1); }
.gg-lb-stage .thumb { position: absolute; inset: 0; margin: auto; filter: blur(14px) brightness(.8); transform: scale(1.02); z-index: -1; animation: none; box-shadow: none; }
.gg-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px !important; height: 52px !important; font-size: 22px !important; }
.gg-lb-nav.prev { left: 10px; } .gg-lb-nav.next { right: 10px; }
.gg-lb-nav[disabled] { opacity: .25; cursor: default; }
.gg-lb-cap { min-height: 44px; padding: 8px 16px max(12px, env(safe-area-inset-bottom)); text-align: center; color: #dccfb6; font-size: 14.5px; }
@keyframes gg-in { from { opacity: 0; transform: scale(.985); } }
@media (max-width: 640px) { .gg-lb-nav { display: none !important; } .gg-cap b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .gg-album { animation: none; } .gg-album, .gg-cover img, .gg-ph img, .gg-lb, .gg-lb-stage img { transition: none; animation: none; } }
