/* A jumper inspection, then the photos pinned to the festive wall. */
#rulesPanel,#galleryPanel{overflow-y:auto;scrollbar-width:thin;padding:8px 12px 35px;}
.rules-redesign{width:min(1120px,100%);margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;min-height:100%;padding:6px 12px 20px;}
.rules-welcome{text-align:center;max-width:480px;margin:auto;}
.rules-welcome .eyebrow{font-size:9px;color:#e2c693;letter-spacing:2.5px;}
.rules-welcome h2,.photo-gallery h2{font:700 43px/1.12 'Mountains of Christmas',Georgia,serif;margin:9px 0 18px;color:#fff0d2;}
.rules-welcome p{font:400 14px/1.8 'DM Sans',sans-serif;color:#ecd6bd;}
.rules-welcome h3{font:400 32px/1.15 'Londrina Solid',sans-serif;color:#f6e6c7;margin:16px 0;}
.rule-divider{margin:24px 0 8px;color:#dabc7f;font-size:22px;}
.rules-welcome .rules-punchline{font:400 24px/1.4 'Mervale Script',cursive;color:#f0d59e;margin-top:20px;}
.jumper-inspection{width:100%;max-width:430px;margin:auto;}
.jumper-compare{position:relative;aspect-ratio:1312/1504;overflow:hidden;border:5px solid #f1e4c8;box-shadow:0 8px 22px #26071255;touch-action:pan-y;isolation:isolate;}
.jumper-compare>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.compare-reveal{clip-path:inset(0 calc(100% - var(--compare)) 0 0);}
.compare-label{position:absolute;top:13px;z-index:1;padding:7px 9px;font:600 8px/1.3 'DM Sans',sans-serif;letter-spacing:.8px;color:#fff1ce;border:1px solid #f1e3bd55;box-shadow:0 2px 8px #0003;pointer-events:none;}
.compare-yes{left:10px;background:#234c3ee8;max-width:43%;}.compare-no{right:10px;background:#6d1c2ae8;max-width:43%;}
.compare-line{position:absolute;z-index:2;top:0;bottom:0;left:var(--compare);width:2px;background:#f4e4bf;box-shadow:0 0 16px #f1d99e55;pointer-events:none;}
.compare-line span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:43px;height:43px;display:grid;place-items:center;border:1px solid #fff0c8;background:#f3e6ca;color:#5f2631;border-radius:50%;font:500 23px/1 'DM Sans',sans-serif;box-shadow:0 3px 10px #0005;white-space:pre;}
#jumperSlider{appearance:none;-webkit-appearance:none;position:absolute;inset:0;z-index:3;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0;}
.jumper-compare:focus-within{outline:2px solid #e6c78a;outline-offset:5px;}
.compare-caption{text-align:center;font:400 22px/1.3 'Mervale Script',cursive;margin:13px 0 12px;color:#f4dcb2;}
.compare-verdicts{display:grid;grid-template-columns:1fr 1fr;gap:20px;text-align:center;}
.compare-verdicts p{font:400 10px/1.6 'DM Sans',sans-serif;margin:0;color:#e0c7af;}
.compare-verdicts strong{display:block;font:400 21px/1.2 'Londrina Solid',sans-serif;color:#f2e2c3;margin-bottom:5px;}
.photo-gallery{width:min(1400px,100%);margin:0 auto;padding:0 14px;}
.photo-gallery-heading{display:flex;justify-content:space-between;gap:30px;align-items:center;max-width:none;padding:12px 0 6px;margin:0;}
.photo-gallery-heading h2{font-size:35px;margin:5px 0 10px;}
.photo-gallery-heading .eyebrow{font-size:8px;letter-spacing:2px;margin:0;}
.photo-gallery-heading p{font:400 12px/1.6 'DM Sans',sans-serif;color:#e7cbb1;margin:0;}
.gallery-upload-actions{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none;}
.gallery-upload-actions>span{font:400 9px/1.5 'DM Sans',sans-serif;color:#d9bfa9;}
.gallery-upload-button{position:relative;padding:14px 24px;border:1px solid #163c2b;border-radius:3px;background:#28523e;color:#fff0d0;font:600 12px/1.4 'DM Sans',sans-serif;cursor:pointer;}
.gallery-upload-button::before{content:'';position:absolute;inset:4px;border:1px dashed #e4d5af99;pointer-events:none;}
.gallery-upload-button:hover{background:#35664d;}.gallery-upload-button:disabled{opacity:.6;cursor:wait;}
.gallery-upload-button:focus-visible,.gallery-cancel:focus-visible{outline:2px solid #e6c78a;outline-offset:4px;}
.gallery-upload-status{font:400 12px/1.6 'DM Sans',sans-serif;min-height:0;color:#f0d6ae;margin:12px 0;}.gallery-upload-status:empty{display:none;}
.gallery-selection{margin:18px 0 8px;padding:18px;border:1px solid #d9b77855;background:#58112588;text-align:center;}
.gallery-selection[hidden]{display:none;}#gallerySelectedPreviews{display:flex;gap:10px;overflow-x:auto;padding-bottom:14px;justify-content:center;}
#gallerySelectedPreviews img{width:65px;height:70px;object-fit:cover;border:4px solid #eee4d0;border-bottom-width:12px;}
.gallery-cancel{margin-left:14px;padding:10px;border:0;background:none;color:#f2d7b8;text-decoration:underline;cursor:pointer;}
.gallery-empty{position:relative;min-height:470px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:40px 24px 26px;}
.polaroid-display{position:relative;isolation:isolate;width:min(340px,90%);}
.polaroid-backing{position:absolute;inset:5px 5px 0;background:#e9dfc9;border:1px solid #d7c7a8;box-shadow:0 4px 12px #2d081a44;pointer-events:none;}
.backing-left{transform:translate(-17px,3px) rotate(-7deg);background:linear-gradient(150deg,#f0e8d6,#d9cbb1);}
.backing-right{transform:translate(15px,2px) rotate(6deg);background:linear-gradient(140deg,#e8ddc7,#f5eddb);}
.gallery-empty-message{position:relative;z-index:1;top:auto;left:auto;transform:rotate(-1.5deg);width:100%;padding:13px 13px 22px;text-align:center;background:linear-gradient(120deg,#fffdf4,#f3ecdc);border:1px solid #e3d6be;box-shadow:0 10px 24px #2a071b55,inset 0 0 0 1px #fff8e9;backdrop-filter:none;}
.gallery-empty-message::before{content:'';position:absolute;z-index:3;left:36%;top:-13px;width:29%;height:29px;transform:rotate(4deg);background:repeating-linear-gradient(90deg,#cfbc8e18 0 2px,transparent 2px 4px),#e7d4a4ac;border-left:1px solid #fff3ca50;border-right:1px solid #fff3ca50;box-shadow:0 1px 2px #38251415;}
.polaroid-preview{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1.3;background:#22372f;overflow:hidden;}
.blurred-photo{position:absolute;inset:-10px;background:radial-gradient(circle at 17% 22%,#ffe3a5 0 3px,transparent 11px),radial-gradient(circle at 74% 17%,#ffe6ba 0 5px,transparent 14px),radial-gradient(circle at 88% 49%,#f3b75b 0 6px,transparent 16px),radial-gradient(circle at 34% 62%,#dca35f 0 6px,transparent 20px),radial-gradient(circle at 65% 85%,#d8bd81 0 3px,transparent 13px),linear-gradient(135deg,#17382f 5%,#3e5140 45%,#886240 100%);filter:blur(5px);transform:scale(1.04);}
.polaroid-preview::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#10241e44);box-shadow:inset 0 0 30px #13231c33;}
.polaroid-preview svg{position:relative;z-index:1;width:56px;height:56px;stroke:#f6e6bca6;stroke-width:1.2;filter:drop-shadow(0 2px 3px #0003);}
.polaroid-preview>span{position:absolute;z-index:1;bottom:13px;left:8px;right:8px;font:500 7px/1.5 'DM Sans',sans-serif;letter-spacing:2px;color:#f4e9cebc;}
.polaroid-note{padding:18px 8px 0;}
.gallery-empty h3{font:700 31px/1.15 'Mountains of Christmas',Georgia,serif;color:#56322e;margin:0 0 12px;}
.gallery-empty p{font:400 11px/1.6 'DM Sans',sans-serif;margin:0;color:#78624d;}
.gallery-empty p strong{display:block;color:#285440;font:400 24px/1.3 'Londrina Solid',sans-serif;margin-top:5px;letter-spacing:.3px;}
#galleryPhotoCount{font:400 10px/1.6 'DM Sans',sans-serif;color:#e2c8aa;text-align:center;max-width:310px;margin:0;}
.photo-wall{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding:30px 10px 35px;}
.photo-wall:empty{display:none;}
.photo-polaroid{position:relative;padding:10px 10px 34px;border:0;background:#f3ead7;box-shadow:0 6px 17px #27061066;transform:rotate(-2deg);cursor:pointer;transition:transform .2s ease;color:#5e3e34;}
.photo-polaroid:nth-child(3n+2){transform:rotate(2.5deg);}.photo-polaroid:nth-child(3n){transform:rotate(-.5deg);}
.photo-polaroid::before{content:'';position:absolute;z-index:1;top:-12px;left:36%;width:28%;height:24px;background:#e7d4a173;transform:rotate(-5deg);box-shadow:0 1px 1px #0001;}
.photo-polaroid img{display:block;width:100%;aspect-ratio:1;object-fit:cover;}
.photo-polaroid span{display:block;font:400 20px/1.2 'Mervale Script',cursive;margin-top:13px;}
.photo-polaroid:hover{transform:rotate(0) translateY(-5px);}.photo-polaroid:focus-visible{outline:3px solid #e4ba74;outline-offset:5px;}
.gallery-consent{text-align:center;font:400 9px/1.5 'DM Sans',sans-serif;color:#d6b69f;margin:16px 0 8px;}
#galleryEmpty[hidden]{display:none;}
.photo-viewer{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;margin:0;padding:20px 28px;background:#1d0d15f7;color:#fff0d3;overflow:hidden;}
.photo-viewer:not([open]){display:none;}.photo-viewer::backdrop{background:#1d0d15;}
.photo-viewer-toolbar{display:flex;align-items:center;gap:24px;height:46px;font:500 12px/1.4 'DM Sans',sans-serif;}.photo-viewer-toolbar>span{margin-right:auto;}.photo-viewer-toolbar a{color:#f3dbad;text-decoration:none;padding:10px;}
.photo-viewer button{border:1px solid #e5c89155;color:#f4dfbd;background:#ffffff08;cursor:pointer;}
#closePhotoViewer{width:40px;height:40px;font:400 27px/1 'DM Sans',sans-serif;border-radius:50%;}
.photo-viewer-stage{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:22px;align-items:center;height:calc(100% - 78px);touch-action:pan-y;}
#photoViewerImage{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;justify-self:center;min-height:0;}
.photo-viewer-stage>button{width:44px;height:54px;font:400 36px/1 'DM Sans',sans-serif;border-radius:3px;}
.photo-viewer-hint{text-align:center;font:400 10px/1.5 'DM Sans',sans-serif;color:#cfb69c;margin:10px 0 0;}
.photo-viewer button:focus-visible,.photo-viewer a:focus-visible{outline:2px solid #e4ba74;outline-offset:4px;}
@media(max-width:1100px){.rules-redesign{gap:35px;}.jumper-inspection{max-width:360px;}.rules-welcome h2{font-size:38px;}.photo-wall{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:760px){.rules-redesign{grid-template-columns:1fr;gap:28px;padding:10px 5px 25px;}.rules-welcome h2{font-size:35px;}.rules-welcome p{font-size:12px;}.rules-welcome h3{font-size:29px;}.rule-divider{margin-top:17px;}.rules-welcome .rules-punchline{font-size:23px;}.jumper-inspection{max-width:380px;}.photo-gallery-heading{flex-direction:column;text-align:center;gap:20px;}.photo-gallery-heading h2{font-size:31px;}.photo-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px;}.photo-gallery{padding:0 2px;}.gallery-empty{min-height:360px;}.polaroid-stack{width:230px;}.polaroid-back-one{transform:translate(-28px,6px) rotate(-11deg);}.polaroid-back-two{transform:translate(28px,2px) rotate(10deg);}.photo-viewer{padding:12px;}.photo-viewer-toolbar{gap:9px;}.photo-viewer-stage{grid-template-columns:30px minmax(0,1fr) 30px;gap:5px;}.photo-viewer-stage>button{width:30px;height:45px;font-size:29px;}.gallery-empty-message{padding:22px 18px;}.photo-polaroid{padding:7px 7px 20px;}.photo-polaroid span{font-size:17px;}}
@media(prefers-reduced-motion:reduce){.photo-polaroid{transition:none;}}

#photoViewerImage{grid-column:2;grid-row:1;}#previousPhoto{grid-column:1;grid-row:1;}#nextPhoto{grid-column:3;grid-row:1;}

html.photo-viewer-open,html.photo-viewer-open body{overflow:hidden!important;height:100dvh;}

@media(max-width:760px){.gallery-empty{min-height:425px;padding:32px 22px 20px;gap:23px;}.polaroid-display{width:min(300px,94%);}.gallery-empty-message{padding:11px 11px 22px;}.gallery-empty h3{font-size:29px;}.polaroid-note{padding-top:17px;}.backing-left{transform:translate(-10px,2px) rotate(-5deg);}.backing-right{transform:translate(10px,1px) rotate(5deg);}.polaroid-preview>span{font-size:6px;letter-spacing:1.7px;}}
/* Keep the whole preview visible beside its heading on shorter desktop screens. */
@media(min-width:761px) and (max-height:850px){
 .photo-gallery:has(#galleryEmpty:not([hidden])){position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:18px;height:100%;padding-bottom:16px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .photo-gallery-heading{grid-column:1;grid-row:1;flex-direction:column;text-align:center;gap:14px;padding:0;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .photo-gallery-heading h2{font-size:30px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-empty{grid-column:2;grid-row:1;min-height:0;padding:4px 12px;gap:11px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .polaroid-display{width:clamp(165px,26vh,220px);}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .polaroid-preview{aspect-ratio:1.9;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-empty-message{padding:9px 9px 14px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .polaroid-note{padding:11px 0 0;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-empty h3{font-size:23px;margin-bottom:7px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-empty p{font-size:9px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-empty p strong{font-size:20px;margin-top:3px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .polaroid-preview svg{width:35px;height:35px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .polaroid-preview>span{font-size:4px;letter-spacing:1px;bottom:6px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) #galleryPhotoCount{font-size:8px;max-width:240px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-consent{position:absolute;bottom:0;left:0;width:50%;margin:0;font-size:8px;}
 .photo-gallery:has(#galleryEmpty:not([hidden])) .gallery-upload-status{grid-column:1/-1;font-size:10px;}
}

#galleryLoadMore{display:block;margin:8px auto 24px;}#galleryLoadMore[hidden]{display:none;}
.attendee-empty{text-align:center;padding:35px 15px;color:#e8d3b5;font:400 15px/1.6 'DM Sans',sans-serif;}.attendee-empty[hidden]{display:none;}

.festive-rule{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-bottom:1px solid #e2c58b25;}.festive-rule:last-child{border-bottom:0;}.rule-number{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px dashed #d5bd83;color:#e4c98e;font:24px 'Londrina Solid',sans-serif;}.rules-welcome .festive-rule h2,.rules-welcome .festive-rule h3{font:700 clamp(25px,2.5vw,36px)/1.15 'Mountains of Christmas',serif;margin:0 0 10px;}.rules-welcome .festive-rule p{margin:0 0 7px;}.rules-welcome .festive-rule .rules-punchline{font-size:12px;}
