:root{font-family:'DM Sans',sans-serif;color:#f7f6f2;background:#263b32;font-synthesis:none;font-optical-sizing:auto}*{box-sizing:border-box}body{--event-bg:none;margin:0;min-height:100vh;background-color:#263b32;background-image:linear-gradient(120deg,rgba(18,31,25,.83),rgba(22,35,29,.63)),var(--event-bg);background-size:cover;background-position:center;background-attachment:fixed;color:#f7f6f2}body::before{position:fixed;inset:0;content:"";pointer-events:none;background:radial-gradient(ellipse at 50% 35%,rgba(218,185,146,.12),transparent 55%)}button,input{font:inherit}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1100px)/2),6vw);position:relative;z-index:1;border-bottom:1px solid rgba(255,255,255,.12)}.brand{text-decoration:none;color:#fff;display:flex;align-items:center;font-size:20px;font-weight:700;letter-spacing:-.8px}.brand-mark{width:29px;height:29px;display:grid;place-items:center;background:#e8b48f;color:#24362e;border-radius:9px;font:600 21px 'Playfair Display',Georgia,serif;margin-right:8px}.period{color:#e8b48f}.topnote{font-size:11px;color:rgba(255,255,255,.7)}.host-page,.guest-page,.slideshow-page{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:34px 18px 55px;position:relative;z-index:1}.host-content{width:min(100%,520px);text-align:center}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#e8bd9f;margin:0 0 14px}.event-name-label{display:block;font:500 32px/1.2 'Playfair Display',Georgia,serif;margin-bottom:8px}.event-name{width:min(100%,390px);background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.27);color:#fff;text-align:center;font:500 27px 'Playfair Display',Georgia,serif;outline:none;padding:6px 8px}.event-name:focus{border-color:#e8bd9f}.hint{font-size:12px;line-height:1.65;color:rgba(255,255,255,.72);max-width:370px;margin:12px auto 23px}.qr-panel{width:min(72vw,350px);height:min(72vw,350px);margin:0 auto 18px;padding:12px;border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 25px 75px rgba(0,0,0,.26);display:grid;place-items:center}.qr-blank{width:100%;height:100%;border:1px solid rgba(40,56,47,.06);border-radius:5px}.qr-image{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.primary-button{min-height:46px;padding:0 22px;border:0;border-radius:6px;background:#e8b48f;color:#25382f;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.12);transition:transform .15s,background .15s}.primary-button:hover{background:#f0c5a5;transform:translateY(-1px)}.primary-button span{padding-left:8px}.share-row{width:min(100%,390px);margin:13px auto 0;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:6px;padding:7px 8px 7px 11px}.share-row[hidden]{display:none}.share-row>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:rgba(255,255,255,.82);font-size:10px}.small-button{flex:none;border:0;border-radius:4px;background:rgba(255,255,255,.9);color:#2d463a;font-size:10px;font-weight:700;padding:7px 9px;cursor:pointer}.host-actions{display:flex;justify-content:center;gap:9px;margin-top:25px;flex-wrap:wrap}.secondary-button{min-height:39px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(255,255,255,.24);border-radius:6px;color:#fff;background:rgba(255,255,255,.08);font-size:10px;font-weight:600;cursor:pointer;text-decoration:none}.secondary-button:hover{background:rgba(255,255,255,.16)}.secondary-button span{font-size:14px;color:#edc3a6}.background-note{font-size:9px;color:rgba(255,255,255,.56);margin:10px 0 0}.guest-card{width:min(100%,400px);padding:30px;background:rgba(248,247,242,.97);border-radius:12px;color:#25362e;box-shadow:0 25px 80px rgba(0,0,0,.27)}.guest-card .eyebrow{color:#9b7059}.guest-card h1{font:600 30px 'Playfair Display',Georgia,serif;margin:0}.guest-card .hint{color:#788079;margin:8px 0 20px}.guest-card form>label:not(.file-picker){display:block;font-size:10px;font-weight:700;color:#536158;margin:13px 0 6px}.guest-card form>label span{font-size:9px;color:#9ca39c;font-weight:400;margin-left:4px}.guest-card input:not([type=file]){width:100%;height:40px;border:1px solid #e1e3dd;border-radius:5px;background:#fff;padding:0 11px;color:#25362e;outline:none;font-size:12px}.guest-card input:focus{border-color:#799382}.file-picker{margin-top:14px;min-height:94px;border:1px dashed #bec9bf;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#f6f8f4;cursor:pointer;font-size:11px;font-weight:700;color:#45644f}.file-picker:hover{background:#edf3ed}.file-picker small{font-size:9px;color:#969d96;font-weight:400}.upload-icon{width:24px;height:24px;border-radius:50%;background:#e4ede4;display:grid;place-items:center;font-size:15px}.guest-card .primary-button{width:100%;margin-top:12px;background:#386552;color:white}.guest-card .primary-button:hover{background:#2d5343}.form-message{min-height:12px;margin:8px 0 0;text-align:center;color:#386552;font-size:10px}.slideshow-page{min-height:calc(100vh - 70px);padding:clamp(20px,5vh,55px) 28px}.slide-wrap{width:min(1100px,100%);margin:auto}.slide-brand{display:flex;align-items:center;gap:13px;font:600 16px 'Playfair Display',Georgia,serif;color:#fff;margin-bottom:15px}.slide-live{font:700 8px 'DM Sans',sans-serif;letter-spacing:1px;padding:6px 9px;border:1px solid rgba(255,255,255,.3);border-radius:20px;color:#ecf4eb}.slide-live i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#8bc294}.slide-stage{height:min(70vh,690px);min-height:320px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:rgba(15,24,19,.22)}.slide-stage img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 35px rgba(0,0,0,.25));animation:fade .6s ease}.slide-empty{text-align:center;color:rgba(255,255,255,.8);font:500 19px/1.5 'Playfair Display',Georgia,serif}.slide-empty span{font-size:32px;color:#e8b48f}.slide-empty p{margin:8px 0}.slide-caption{display:flex;justify-content:space-between;align-items:center;padding-top:13px;color:rgba(255,255,255,.84);font-size:10px;letter-spacing:.8px}.slide-caption span:last-child{color:rgba(255,255,255,.65)}[hidden]{display:none!important}@keyframes fade{from{opacity:.4;transform:scale(.99)}to{opacity:1;transform:scale(1)}}@media(max-width:520px){.topbar{height:60px;padding:0 18px}.host-page,.guest-page,.slideshow-page{min-height:calc(100vh - 60px)}.host-page{padding-top:24px}.event-name-label{font-size:28px}.event-name{font-size:24px}.qr-panel{width:min(82vw,350px);height:min(82vw,350px)}.guest-card{padding:24px 20px}.topnote{font-size:9px}.slide-stage{height:68vh;min-height:280px}}

/* Keep the slideshow frame aligned with the device orientation; contain never crops the photo. */
.slide-stage{width:100%;min-height:0;aspect-ratio:16/9;height:min(72vh,690px)}
.slide-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
@media (orientation:portrait){.slide-wrap{width:min(100%,760px)}.slide-stage{width:min(100%,54dvh);height:min(72dvh,850px);aspect-ratio:3/4}}
@media (orientation:landscape){.slide-stage{width:min(100%,128dvh);height:min(72dvh,690px);aspect-ratio:16/9}}

/* Fit the image to the available viewport itself, not a fixed-ratio frame. */
.slide-stage{display:flex;width:100%;height:calc(100dvh - 230px);max-height:690px;min-height:0;aspect-ratio:auto;align-items:center;justify-content:center;overflow:visible}
.slide-stage img{display:block;flex:none;width:auto;height:auto;max-width:calc(100vw - 36px);max-height:100%;object-fit:contain;object-position:center}
@media(max-width:520px){.slideshow-page{min-height:calc(100dvh - 60px);padding:12px 10px 16px}.slide-stage{height:calc(100dvh - 150px);max-height:none}.slide-stage img{max-width:calc(100vw - 20px);max-height:100%}}

/* Show an uploaded background without the green tint/overlay. */
body{background-color:#263b32;background-image:var(--event-bg);background-blend-mode:normal}
body::before{display:none}

/* Keep controls and labels readable over any uploaded background. */
.topbar{background:#263b32}
.host-content{padding:34px 32px;background:#263b32;border:1px solid #435b4e;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.secondary-button{background:#40584a;border-color:#627769}
.secondary-button:hover{background:#4c6858}
.background-note{color:#d0dbd1}
.guest-card{background:#f8f7f2}
.slide-brand,.slide-caption{background:#263b32;border-radius:7px}
.slide-brand{width:max-content;padding:9px 12px}
.slide-caption{margin-top:9px;padding:12px}
@media(max-width:520px){.host-content{padding:27px 20px}}

.photo-preview{margin-top:14px;overflow:hidden;border:1px solid #dce2d9;border-radius:7px;background:#eef1eb}
.photo-preview img{display:block;width:100%;height:230px;object-fit:contain;background:#e8ebe5}
.preview-actions{min-height:42px;padding:6px 9px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.preview-actions span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5d695f;font-size:10px}
.replace-photo{flex:none;border:0;border-radius:4px;padding:7px 10px;background:#386552;color:#fff;font-size:10px;font-weight:700;cursor:pointer}
.replace-photo:hover{background:#2d5343}
.replace-photo:disabled{opacity:.55;cursor:wait}
@media(max-width:520px){.photo-preview img{height:200px}}

.host-auth{width:min(100%,360px);margin:auto;padding:28px;background:#f8f7f2;border-radius:12px;color:#25362e;text-align:left}
.host-auth h1{font:600 24px 'Playfair Display',Georgia,serif;margin:0 0 18px}
.host-auth label{display:block;font-size:11px;font-weight:700;margin:0 0 6px}
.host-auth input{width:100%;height:42px;border:1px solid #d9dfd7;border-radius:5px;background:#fff;padding:0 11px;color:#25362e;margin-bottom:12px}
.host-auth .primary-button{width:100%;background:#386552;color:#fff}
.upload-gate{display:flex;justify-content:center;align-items:center;gap:12px;margin:14px auto 0;padding:9px 12px;width:max-content;max-width:100%;border-radius:6px;background:#f8f7f2;color:#25362e;font-size:11px;font-weight:700}
.text-button{display:block;margin:14px auto 0;border:0;background:transparent;color:#d0dbd1;font-size:10px;text-decoration:underline;cursor:pointer}
.host-content:has(#host-photos:not([hidden])){width:min(100%,850px)}
.host-photos{margin:26px auto 0;padding:16px;background:#f8f7f2;border-radius:10px;color:#25362e;text-align:left}
.host-photos-heading{display:flex;align-items:center;gap:8px}
.host-photos-heading h2{margin:0;font:600 18px 'Playfair Display',Georgia,serif}
.host-photo-count{min-width:22px;padding:3px 6px;border-radius:12px;background:#e5ece5;color:#386552;text-align:center;font-size:10px;font-weight:700}
.host-photo-note{margin:6px 0 13px;color:#69756c;font-size:10px}
.host-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
.host-photo-card{min-width:0;overflow:hidden;border:1px solid #dce2d9;border-radius:7px;background:#fff}
.host-photo-card>img{display:block;width:100%;height:130px;background:#edf0ea;object-fit:contain}
.host-photo-meta{padding:8px 9px 0;color:#3e4d42;font-size:10px}
.host-photo-meta strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.host-photo-meta p{margin:4px 0 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#788079;line-height:1.35}
.remove-photo-button{display:block;width:calc(100% - 16px);margin:8px;padding:7px;border:0;border-radius:4px;background:#f8e8e2;color:#8c3d2d;font-size:10px;font-weight:700;cursor:pointer}
.remove-photo-button:hover{background:#f2d6cc}
.remove-photo-button:disabled{opacity:.55;cursor:wait}
@media(max-width:520px){.host-photos{padding:12px}.host-content:has(#host-photos:not([hidden])){padding:24px 14px}.host-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.host-photo-card>img{height:110px}}

/* Full-viewport slideshow; contain keeps every pixel of portrait and landscape photos visible. */
body.is-slideshow .topbar{display:none}
body.is-slideshow #slideshow-view{position:fixed;inset:0;width:100vw;height:100dvh;min-height:0;padding:0;display:block;overflow:hidden}
body.is-slideshow .slide-wrap{position:relative;width:100%;height:100%;margin:0}
body.is-slideshow .slide-stage{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;padding:0;overflow:hidden;background:transparent}
body.is-slideshow .slide-stage img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;filter:none}
body.is-slideshow .slide-brand{position:absolute;z-index:1;top:16px;left:16px;margin:0}
body.is-slideshow .slide-caption{position:absolute;z-index:1;right:16px;bottom:16px;left:16px;margin:0;background:#263b32;padding:11px 14px}
@media(max-width:520px){body.is-slideshow .slide-brand{top:10px;left:10px}body.is-slideshow .slide-caption{right:10px;bottom:10px;left:10px}}
