@font-face { font-family: "Booth Caption"; src: url("/static/fonts/Caveat.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #242824; background: #f5f3ec; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1080px; margin: auto; padding: 52px 24px; }
.welcome { max-width: 760px; padding-top: 18vh; }
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .2em; color: #61715a; }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; max-width: 700px; margin: 24px 0 20px; }
p { line-height: 1.7; color: #62685f; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; margin-top: 40px; }
figure { margin: 0; padding: 12px; background: #fff; border-radius: 8px; box-shadow: 0 3px 18px #24282408; }
img { display: block; width: 100%; height: auto; border-radius: 3px; }
[data-image-frame] { position: relative; display: block; background: #fff; }
.image-loading-enabled img[data-image-fade] { opacity: 0; transition: opacity .4s ease; }
.image-loading-enabled img[data-image-fade][data-image-state="ready"] { opacity: 1; }
[data-image-frame].is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 2px solid #e5e8e0; border-top-color: #7d8e73; border-radius: 50%; animation: image-spinner .85s linear infinite; pointer-events: none; }
[data-image-frame].image-error::after { content: "Photo unavailable"; position: absolute; inset: 0; display: grid; place-items: center; color: #71766d; font-size: .85rem; }
@keyframes image-spinner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .image-loading-enabled img[data-image-fade] { transition: none; } [data-image-frame].is-loading::after { animation: none; } }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 5px 6px; font-size: .8rem; }
figcaption span { letter-spacing: .1em; color: #7a8176; }
.gallery figcaption { flex-wrap: wrap; }
.session-page .gallery > figure { padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.polaroid-paper { padding: 10px 10px 14px; border-radius: 2px; background: #fff; box-shadow: 0 7px 24px #24282412; }
.session-page .gallery img { border-radius: 0; }
.camera-timestamp { font-family: "Courier New", Courier, monospace; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .035em; color: #a5530f; text-shadow: 0 0 6px #df8a3530; white-space: nowrap; }
a { color: #344b30; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #6a8959; outline-offset: 5px; }
[hidden] { display: none !important; }
h2 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -.025em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #344b30; border-radius: 6px; background: #344b30; color: white; font: inherit; font-size: .9rem; line-height: 1.4; text-decoration: none; cursor: pointer; }
.secondary { color: #344b30; background: transparent; }
button:disabled { opacity: .6; cursor: wait; }
details { margin-top: 18px; }
summary { cursor: pointer; line-height: 1.6; }
label { display: block; font-size: .85rem; margin-bottom: 8px; }
input { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #aab3a3; border-radius: 4px; font: inherit; background: #fff; color: #344b30; }
.manual-copy { margin-top: 24px; }
.session-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.session-summary p { margin: 0; }
.gallery-modes { display: flex; justify-content: center; gap: clamp(12px, 4vw, 24px); margin-top: 24px; }
.gallery-mode { padding: 10px 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #747d6c; font-size: .9rem; }
.gallery-mode[aria-selected="true"] { border-bottom-color: #344b30; color: #344b30; font-weight: 650; }
.gallery-mode:disabled { cursor: default; }
.session-page .gallery figcaption { justify-content: center; padding: 16px 0 0; }
.caption-editor { width: 100%; margin-top: 6px; text-align: center; }
.caption-input { display: block; width: 100%; border: 0; margin: 0; padding: 2px 4px; height: 32px; min-height: 32px; white-space: nowrap; text-align: center; background: transparent; font-family: "Booth Caption", cursive; font-weight: 400; font-style: normal; font-synthesis: none; font-size: 22px; line-height: 28px; color: #30352d; }
.caption-input::placeholder { color: #969b90; font-size: .9rem; }
.caption-input:focus-visible { outline-offset: 2px; }
.caption-editor .caption-status { display: block; margin-top: 3px; font: .68rem system-ui, sans-serif; letter-spacing: 0; color: #77826f; }
.caption-status:empty { display: none; }
.caption-status.is-error { color: #a32b2b; }
.session-page[data-photo-mode="plain"] .gallery > figure { padding: 0; background: transparent; box-shadow: none; }
.session-page[data-photo-mode="plain"] .polaroid-paper { padding: 0; background: transparent; box-shadow: none; }
.session-page[data-photo-mode="plain"] .caption-editor { display: none; }
.session-page[data-photo-mode="plain"] .gallery figcaption { padding: 14px 0 0; }
.session-page[data-photo-mode="portrait"] .polaroid-paper { padding: 0; background: transparent; box-shadow: none; }
.session-page[data-photo-mode="portrait"] .caption-editor { display: none; }
.session-page[data-photo-mode="portrait"] .gallery.is-deck { max-width: 360px; }
.session-page[data-photo-mode="portrait"] .gallery img { aspect-ratio: 9 / 16; object-fit: contain; }
.collage-panel { max-width: 380px; margin: 28px auto 0; }
.collage-preview { box-shadow: 0 7px 24px #24282412; }
.collage-preview img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 0; }
.collage-caption-editor { position: absolute; left: 4.444%; right: 4.444%; bottom: 3.4%; width: auto; margin: 0; background: #fff; }
.collage-caption-editor .caption-input { height: 26px; min-height: 26px; padding: 0 4px; line-height: 26px; background: #fff; }
.collage-panel > .caption-status { margin: 8px 0; font: .75rem system-ui, sans-serif; text-align: center; }
.collage-preview.image-error::after { pointer-events: none; }
.collage-actions { justify-content: center; margin-top: 18px; }
.collage-status { text-align: center; font-size: .8rem; }
.collage-status:empty { display: none; }
.photo-icons { display: flex; gap: 6px; }
.photo-icon { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 44px; min-height: 44px; padding: 10px; border: 1px solid #e3e7df; border-radius: 50%; background: #fff; color: #344b30; cursor: pointer; }
.photo-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.photo-icon:hover { background: #eef3e9; border-color: #8a9c7e; }
.download-all { width: 52px; min-height: 52px; }
.deck-viewport.has-deck { overflow: hidden; padding: 12px 16px 36px; margin: 20px -16px 0; }
.gallery.is-deck { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 8px auto 0; isolation: isolate; outline-offset: 6px; }
.is-deck > figure { grid-area: 1 / 1; min-width: 0; align-self: start; transform-origin: 50% 70%; transition: transform .34s cubic-bezier(.22,.7,.22,1), opacity .28s ease; box-shadow: 0 7px 24px #24282412; backface-visibility: hidden; }
.is-deck > figure:not([data-stack="front"]) { position: absolute; inset: 0; overflow: hidden; }
.is-deck > figure:not([data-stack="front"]) figcaption, .is-deck > figure:not([data-stack="front"]) .caption-editor { visibility: hidden; pointer-events: none; }
.is-deck > [data-stack="front"] { z-index: 3; transform: none; opacity: 1; }
.is-deck > [data-stack="next"] { z-index: 2; transform: translateY(13px) scale(.965) rotate(2.2deg); pointer-events: none; opacity: 1; }
.is-deck > [data-stack="third"] { z-index: 1; transform: translateY(25px) scale(.93) rotate(-2deg); pointer-events: none; opacity: 1; }
.is-deck > [data-stack="hidden"] { visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(32px) scale(.9); }
.is-deck > figure[data-stack="leaving"] { z-index: 4; pointer-events: none; bottom: auto; }
.is-deck > .is-dragging { transition: none; }
.is-deck [data-shuffle-photo] { display: block; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
.is-deck .is-dragging [data-shuffle-photo] { cursor: grabbing; }
.is-deck [data-shuffle-photo] img { width: 100%; height: auto; pointer-events: none; }
.deck-tap-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; color: #fff; }
.tap-gesture { position: relative; display: block; width: 64px; height: 72px; filter: drop-shadow(0 2px 5px #0008); }
.tap-gesture svg { position: relative; width: 48px; height: 56px; margin: 12px 0 0 12px; fill: #344b30cc; animation: deck-tap 1.5s ease-in-out 3; }
.tap-ripple { position: absolute; top: 2px; left: 19px; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; animation: deck-tap-ripple 1.5s ease-out 3; }
.tap-hint-label { padding: 8px 14px; border-radius: 24px; background: #243320e8; color: #fff; font-size: .8rem; font-weight: 600; box-shadow: 0 2px 10px #0002; }
@keyframes deck-tap { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-5px) scale(.93); } }
@keyframes deck-tap-ripple { 0%, 15% { transform: scale(.5); opacity: 0; } 30% { opacity: 1; } 65%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-gesture svg, .tap-ripple { animation: none; } .tap-ripple { display: none; } }
.deck-navigation { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.deck-navigation p { margin: 0; }
.deck-count { font-variant-numeric: tabular-nums; color: #344b30; font-size: .85rem; font-weight: 650; }
.deck-hint { font-size: .75rem; color: #767d70; }
@media (prefers-reduced-motion: reduce) { .is-deck > figure { transition: none; } }
@media (max-width: 600px) { .session-page { padding: 24px 18px; } .session-page h1 { margin: 16px 0 20px; font-size: 2rem; } .session-page footer { margin-top: 28px; } }
.copy-toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: #344b30; color: #fff; font-size: .875rem; font-weight: 600; text-align: center; box-shadow: 0 6px 24px #24332026; pointer-events: none; opacity: 0; transform: translate(-50%, 12px) scale(.96); transition: opacity .18s ease, transform .18s ease; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (prefers-reduced-motion: reduce) { .copy-toast { transition: none; } }
.photo-viewer { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 16px; border: 0; background: #fff; color: #242824; }
.photo-viewer::backdrop { background: #fff; }
.fullscreen-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.fullscreen-toolbar p { margin: 0; }
.fullscreen-frame { margin-top: 12px; height: calc(100% - 64px); }
#fullscreen-photo { width: 100%; height: 100%; object-fit: contain; }
footer { margin-top: 48px; color: #71766d; font-size: .8rem; line-height: 1.6; }
@media (max-width: 480px) { main { padding: 32px 18px; } .gallery { gap: 20px; } }
