/* My Selfie Box V89 — galerie client festive ; styles compatibles HTML/CSS natifs. */
.festive-gallery{--party-ink:#17383e;--party-gold:#e8b947;--party-line:#ebdfca;--party-bg:#fbf8f1;color:var(--party-ink);padding-bottom:42px}
.festive-gallery [hidden]{display:none!important}
.festive-gallery .gallery-intro{display:grid;grid-template-columns:minmax(150px,260px) minmax(0,1fr);gap:24px;margin:30px 0 30px;padding:25px 24px;border:1px solid #ede4d4;border-radius:24px;background:radial-gradient(circle at 96% 9%,rgba(232,185,71,.21) 0 3px,transparent 4px),radial-gradient(circle at 93% 22%,rgba(232,185,71,.44) 0 2px,transparent 3px),radial-gradient(circle at 77% 3%,rgba(232,185,71,.26) 0 3px,transparent 4px),linear-gradient(130deg,#fffefb,#fbf7ef);box-shadow:0 12px 34px rgba(30,49,50,.07)}
.festive-gallery .gallery-cover-shell{position:relative;width:100%;height:210px;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#e5c776,#f8e7c4);box-shadow:0 9px 22px rgba(25,52,55,.1)}
.festive-gallery .gallery-cover{width:100%;height:100%;border-radius:0;box-shadow:none;object-fit:cover}
.festive-gallery .gallery-cover-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-size:58px;color:#17383e}
.festive-gallery .gallery-cover-placeholder span{font:800 16px Montserrat,sans-serif;letter-spacing:.02em}
.festive-gallery .gallery-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,360px);align-items:center;gap:18px;width:100%}
.festive-gallery .gallery-heading-copy{min-width:0}
.festive-gallery .gallery-head .eyebrow{color:#a17926;letter-spacing:.18em;font-size:.8rem;font-weight:800;text-transform:uppercase}
.festive-gallery .gallery-head h2{font:800 clamp(1.6rem,3vw,2.7rem)/1.18 Montserrat,sans-serif;letter-spacing:-.025em;margin:9px 0 15px;overflow-wrap:anywhere}
.festive-gallery .gallery-date-line{font-weight:600;font-size:1rem;color:#52666b}
.festive-gallery .gallery-date-line span:first-child{color:#a37923;font-size:1.25rem}
.festive-gallery .gallery-script{font:italic 600 clamp(1.4rem,2.4vw,2rem)/1.25 'Brush Script MT','Segoe Script',cursive;color:#b48421;margin:19px 0 4px;transform:rotate(-2deg)}
.festive-gallery .gallery-head-actions{display:grid;grid-template-columns:1fr;gap:14px;align-self:center;width:100%}
.festive-gallery .gallery-main-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:10px}
.festive-gallery .gallery-action{display:flex!important;align-items:center;justify-content:center;min-height:51px;padding:12px 14px;border-radius:999px!important;font-size:.91rem;white-space:normal;line-height:1.22}
.festive-gallery .gallery-action[style*='none']{display:none!important}
.festive-gallery .expiry-box{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #f0d99a;border-radius:16px;background:rgba(244,226,188,.25);min-height:68px}
.festive-gallery .expiry-symbol{font-size:2rem;color:#a87b24;line-height:1}
.festive-gallery .expiry{margin:0!important;color:#8c6a24!important;font-weight:800;font-size:.89rem;line-height:1.48}
.festive-gallery .gallery-grid-heading{display:flex;align-items:center;gap:14px;margin:24px 0 20px}
.festive-gallery .gallery-grid-heading h3{margin:0 0 4px;font:800 clamp(1rem,1.8vw,1.3rem) Montserrat,sans-serif;color:#17383e}
.festive-gallery .gallery-grid-heading p{margin:0;color:#687173;font-size:.95rem}
.festive-gallery .gallery-grid-icon{font-size:28px;line-height:1.4}
.festive-gallery .photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.festive-gallery .photo-card{position:relative;overflow:hidden;border:1px solid #f0ece4;border-radius:19px;background:#fff;box-shadow:0 10px 22px rgba(25,40,43,.08);transition:box-shadow .2s,transform .2s}
@media(hover:hover){.festive-gallery .photo-card:hover{transform:translateY(-3px);box-shadow:0 16px 29px rgba(25,40,43,.14)}}
.festive-gallery .photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border:0}
.festive-gallery .photo-card button.photo-open{width:100%;display:block;border:0;border-radius:0;overflow:hidden;cursor:zoom-in}
.festive-gallery .photo-card .media-preview{width:100%;aspect-ratio:4/3;min-height:0;padding:34px 12px 14px}
.festive-gallery .photo-card .media-preview video{max-height:100%;object-fit:contain}
.festive-gallery .media-audio .media-preview{background:linear-gradient(135deg,#fff8ec,#e7f3f1);color:#17383e}
.festive-gallery .media-audio .media-preview audio{width:100%}
.festive-gallery .media-kind-badge{position:absolute;top:12px;left:12px;z-index:2;border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.94);color:#28414a;box-shadow:0 4px 9px rgba(0,0,0,.08);font-size:.7rem;font-weight:800;letter-spacing:.035em;pointer-events:none}
.festive-gallery .badge-gif{background:#f0dfff;color:#733baa}.festive-gallery .badge-audio{background:#e8f5f7;color:#246273}.festive-gallery .badge-video{background:#f6e7ca;color:#6b4a24}
.festive-gallery .fav-btn{top:10px;right:10px;width:44px;height:44px}
.festive-gallery .photo-actions{padding:10px 12px 12px}
.festive-gallery .photo-actions .btn{border-radius:999px;min-height:44px;font-size:.81rem;width:100%;padding:11px 8px}
.festive-gallery .photo-actions .media-open-btn{margin:0 0 9px;background:#fffaf0;color:#17383e;border:1px solid #ddd6c8}
.festive-gallery .download-note{margin:22px 2px 10px;color:#778084;font-size:.82rem;text-align:center}
.festive-gallery .gallery-state{display:flex;gap:23px;align-items:center;max-width:900px;padding:32px 36px;border-radius:23px;border:1px solid #eedeb5;background:linear-gradient(120deg,#fffdf7,#fbf4e6);margin:24px auto 12px;box-shadow:0 10px 30px rgba(20,50,53,.05)}
.festive-gallery .gallery-state-import{background:linear-gradient(120deg,#f3fafb,#eaf6f6);border-color:#d5e9eb}
.festive-gallery .gallery-state-icon{flex:0 0 96px;font-size:59px;text-align:center;line-height:1.3}
.festive-gallery .gallery-state h3{font:800 clamp(1.14rem,2vw,1.5rem)/1.3 Montserrat,sans-serif;color:#17383e;margin:0 0 12px}
.festive-gallery .gallery-state p{color:#58696c;line-height:1.65;margin:0;font-size:1rem}
.festive-gallery .gallery-state .gallery-state-lock{margin-top:12px;font-weight:800;color:#976e21;font-size:.93rem}
.festive-gallery .selection-bar{margin-top:16px}
@media(max-width:1100px){.festive-gallery .gallery-head{grid-template-columns:1fr}.festive-gallery .gallery-main-actions{max-width:560px}.festive-gallery .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.festive-gallery .gallery-intro{grid-template-columns:150px 1fr;padding:18px;gap:18px}.festive-gallery .gallery-cover-shell{height:172px}.festive-gallery .gallery-script{font-size:1.5rem}.festive-gallery .gallery-head-actions{grid-column:1/-1}.festive-gallery .gallery-head{display:contents}.festive-gallery .gallery-grid-heading{margin:18px 0}.festive-gallery .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.festive-gallery .gallery-state{padding:23px;gap:12px}.festive-gallery .gallery-state-icon{flex-basis:62px;font-size:41px}}
@media(max-width:480px){.festive-gallery .gallery-intro{grid-template-columns:1fr}.festive-gallery .gallery-cover-shell{height:180px}.festive-gallery .gallery-heading-copy{padding:0 3px}.festive-gallery .gallery-head h2{font-size:1.72rem}.festive-gallery .gallery-head-actions{grid-column:auto}.festive-gallery .gallery-main-actions{grid-template-columns:1fr 1fr}.festive-gallery .gallery-action{font-size:.85rem!important;min-height:54px}.festive-gallery .photo-grid{grid-template-columns:1fr}.festive-gallery .gallery-grid-heading{align-items:flex-start}.festive-gallery .gallery-state{flex-direction:column;text-align:center;padding:22px 17px}.festive-gallery .gallery-state-icon{flex:auto}.festive-gallery .expiry-box{margin-top:0}}
@media(prefers-reduced-motion:reduce){.festive-gallery .photo-card{transition:none}.festive-gallery .photo-card:hover{transform:none}}

/* V91 · Finitions premium fidèles à la maquette ; aucune décoration bitmap. */
.msb-gallery-open .private-hero{display:none}
.msb-gallery-open .login-section{padding-top:24px}
.msb-gallery-open .festive-gallery{position:relative;padding-top:42px}
.msb-gallery-open .festive-gallery::before{content:"✧  Des souvenirs qui font sourire  ✧";position:absolute;top:0;right:5px;font:italic 600 18px/1.2 'Brush Script MT','Segoe Script',cursive;color:#b28b38;letter-spacing:.02em}
.festive-gallery .gallery-intro{position:relative;grid-template-columns:minmax(210px,290px) minmax(0,1fr);gap:32px;padding:25px 29px;background:radial-gradient(circle at 98% 3%,#dfb956 0 3px,transparent 4px),radial-gradient(circle at 87% 5%,#eacb7a 0 2px,transparent 3px),radial-gradient(circle at 92% 13%,#e6ba58 0 2px,transparent 3px),linear-gradient(135deg,#fffefb,#fbf9f3);border-radius:25px;border:1px solid #eadfc9;box-shadow:0 10px 30px rgba(40,47,37,.075)}
.festive-gallery .gallery-cover-shell{height:205px;border-radius:19px;background:linear-gradient(148deg,#f5ebce,#f8f2e4);border:1px solid #e7dcbf;box-shadow:0 8px 16px rgba(29,45,46,.07)}
.festive-gallery .gallery-cover-placeholder{font-size:16px;gap:10px;background:radial-gradient(circle at 9% 20%,#e7c167 0 2px,transparent 3px),radial-gradient(circle at 86% 75%,#e7c167 0 2px,transparent 3px)}
.festive-gallery .gallery-cover-placeholder svg{width:48px;height:48px;color:#638183;stroke-linejoin:round}
.festive-gallery .gallery-cover-placeholder span{font-size:14px;color:#516b6e;font-weight:700;letter-spacing:.01em}
.festive-gallery .gallery-head{grid-template-columns:minmax(0,1fr) minmax(270px,370px);gap:22px}
.festive-gallery .gallery-head h2{font-size:clamp(1.5rem,3.2vw,2.35rem)}
.festive-gallery .gallery-script{font-size:clamp(1.4rem,2.2vw,1.85rem);margin-top:16px}
.festive-gallery .gallery-state{max-width:975px;margin:18px auto 28px;padding:26px 34px;gap:20px;border-radius:21px;box-shadow:0 7px 20px rgba(35,55,52,.045)}
.festive-gallery .gallery-state-icon{flex:0 0 56px;font-size:0;line-height:0;display:grid;place-items:center}
.festive-gallery .gallery-state-icon svg{display:block;width:54px;height:54px;color:#4b7676}
.festive-gallery .gallery-state h3{margin-bottom:9px;font-size:clamp(1.08rem,1.65vw,1.45rem)}
.festive-gallery .gallery-state p{font-size:.95rem;line-height:1.65}
.festive-gallery .gallery-state .gallery-state-lock{font-weight:700;font-size:.86rem;color:#98752d;position:relative;padding-left:21px}
.festive-gallery .gallery-state .gallery-state-lock::before{content:'🔒';position:absolute;left:0;top:0;font-size:.79rem;filter:grayscale(1)}
.festive-gallery .gallery-grid-icon{font-size:0;flex:0 0 34px;line-height:0}
.festive-gallery .gallery-grid-icon svg{width:32px;height:32px;color:#c79731}
.festive-gallery .gallery-grid-heading{margin-top:24px;position:relative}
.festive-gallery .gallery-grid-heading::after{content:'✧';position:absolute;right:1rem;color:#c59b3f;font-size:26px}
.festive-gallery .photo-card{border-radius:19px;box-shadow:0 7px 20px rgba(25,40,43,.07)}
.festive-gallery .photo-card img{aspect-ratio:4/3}
.festive-gallery .photo-actions{padding:9px 11px 11px}
.festive-gallery .download-note{font-size:.78rem;color:#788688;max-width:750px;margin:17px auto;text-align:center}
@media(max-width:1100px){.festive-gallery .gallery-intro{grid-template-columns:minmax(160px,230px) minmax(0,1fr)}.festive-gallery .gallery-head{grid-template-columns:1fr}.festive-gallery .gallery-head-actions{max-width:100%}}
@media(max-width:760px){.msb-gallery-open .festive-gallery{padding-top:31px}.msb-gallery-open .festive-gallery::before{font-size:14px}.festive-gallery .gallery-intro{grid-template-columns:140px 1fr;gap:18px;padding:20px}.festive-gallery .gallery-cover-shell{height:150px}.festive-gallery .gallery-state{gap:12px;padding:23px}.festive-gallery .gallery-state-icon{flex-basis:43px}.festive-gallery .gallery-state-icon svg{width:41px;height:41px}.festive-gallery .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.festive-gallery .gallery-intro{grid-template-columns:112px 1fr;padding:14px;gap:12px}.festive-gallery .gallery-cover-shell{height:133px}.festive-gallery .gallery-cover-placeholder svg{width:38px;height:38px}.festive-gallery .gallery-cover-placeholder span{font-size:11px}.festive-gallery .gallery-heading-copy{padding:0}.festive-gallery .gallery-head h2{font-size:1.4rem;margin:6px 0 9px}.festive-gallery .gallery-script{font-size:1.25rem;margin-top:9px}.festive-gallery .gallery-head-actions{grid-column:1/-1}.festive-gallery .gallery-main-actions{grid-template-columns:1fr 1fr}.festive-gallery .gallery-state{flex-direction:row;text-align:left;gap:8px;padding:17px 14px}.festive-gallery .gallery-state-icon{flex:0 0 31px;align-self:flex-start}.festive-gallery .gallery-state-icon svg{width:31px;height:31px}.festive-gallery .photo-grid{grid-template-columns:1fr}.festive-gallery .gallery-grid-heading::after{display:none}}
