/* Bilingual control and requested small line at the top of every page. */
.site-bismillah{margin:7px 0 0;text-align:center;color:#738087;font-size:11px;font-weight:600;line-height:1.35;letter-spacing:.2px}
.language-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #dfe8ea;border-radius:10px;background:#fff;white-space:nowrap}
.language-switch button{min-height:30px;padding:4px 8px;border-radius:7px;background:transparent;color:#627178;font-size:11px;font-weight:700}
.language-switch button.is-active{background:#e7f5f8;color:var(--teal-deep)}
.language-switch .language-divider{color:#aab5b9;font-size:10px;user-select:none}
html[data-theme="dark"] .site-bismillah{color:#a7b5ba}
html[data-theme="dark"] .language-switch{background:#1b252a;border-color:#36474e}
html[data-theme="dark"] .language-switch button{color:#c4d0d4}
html[data-theme="dark"] .language-switch button.is-active{background:#263d43;color:#a7e6f0}
@media(max-width:650px){.site-bismillah{margin:6px 0 0;font-size:10px}.topbar{height:auto;min-height:78px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.top-right{gap:5px;flex-wrap:wrap;justify-content:flex-end}.language-switch{gap:1px;padding:2px}.language-switch button{min-height:29px;padding:3px 6px;font-size:10px}}
@media(max-width:390px){.topbar{row-gap:5px}.top-right{gap:4px}.top-right .primary{padding:7px 8px;font-size:10px}}

/* Gallery is deliberately a local-only UI preview, not a live upload flow. */
.gallery-page{display:none;max-width:1732px;margin:18px 34px 30px 270px;color:var(--ink)}
body[data-view="gallery"] .main>:not(.topbar):not(.mobile-nav):not(.site-bismillah):not(.site-status-guide):not(#galleryPage){display:none!important}
body[data-view="gallery"] .main>#galleryPage{display:block!important}
.gallery-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px}
.gallery-heading h2{margin:3px 0 4px;font-size:25px;line-height:1.3}.gallery-heading p{margin:0;color:var(--muted);font-size:13px}
.gallery-preview-badge,.gallery-local-label,.gallery-display-caption,.gallery-result-count{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;background:#eaf7f1;color:#187553;font-size:11px;font-weight:700;white-space:nowrap}
.gallery-preview-notice{display:flex;align-items:flex-start;gap:10px;margin:0 0 15px;padding:12px 15px;border:1px solid #eedbb8;border-radius:12px;background:#fff8eb;color:#72592d;font-size:12px;line-height:1.55}
.gallery-preview-notice strong{flex:0 0 auto;color:#67491b}.gallery-workspace{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:15px;align-items:start}
.gallery-approval-note{display:flex;align-items:flex-start;gap:10px;margin:0 0 15px;padding:10px 14px;border:1px solid #cfe5da;border-radius:12px;background:#eff8f3;color:#41624f;font-size:11px;line-height:1.55}
.gallery-approval-note strong{flex:0 0 auto;color:#28543c}
html[data-theme="dark"] .gallery-approval-note{background:#1d342b;border-color:#375b46;color:#c0dbc8}
html[data-theme="dark"] .gallery-approval-note strong{color:#a5d7b4}
@media(max-width:650px){.gallery-approval-note{flex-direction:column;gap:3px;padding:10px 12px;font-size:10px}}
.gallery-panel{min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--white);box-shadow:0 5px 18px #122a3810}
.gallery-upload-panel,.gallery-display-panel,.gallery-library-panel{padding:17px}.gallery-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
.gallery-panel-heading>div{display:flex;align-items:center;gap:9px;min-width:0}.gallery-panel-heading h3{margin:0;color:var(--ink);font-size:15px;line-height:1.35}
.gallery-step{display:inline-grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:9px;background:#e7f5f8;color:var(--teal-deep);font-size:12px;font-weight:800}
.gallery-local-label{background:#f1f4f5;color:#64737a;font-size:10px}.gallery-display-caption{background:#fff5e8;color:#9b6823;font-size:10px}
.admin-role-preview{margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--white)}
.admin-role-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-role-preview-heading h3{margin:0;font-size:14px}
.admin-role-preview-note{margin:8px 0 10px;color:var(--muted);font-size:10px;line-height:1.5}
.admin-role-form{display:grid;gap:10px}.admin-role-select-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.admin-role-form label{display:grid;gap:4px;color:var(--ink);font-size:11px;font-weight:700}.admin-role-form select{min-height:36px;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-size:11px}
.admin-role-permissions{margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:9px}.admin-role-permissions legend{padding:0 4px;color:var(--muted);font-size:10px;font-weight:700}
.admin-role-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.admin-role-permission-grid label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:500}.admin-role-permission-grid input{accent-color:var(--teal)}
.admin-role-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-role-actions button{min-height:34px;padding:7px 10px;font-size:10px}
.admin-role-state{margin:10px 0;color:var(--teal-deep);font-size:11px;font-weight:700}.admin-role-message{margin-top:10px;padding:10px;border:1px solid #cfe5da;border-radius:9px;background:#eff8f3;color:#41624f;font-size:11px;line-height:1.5}.admin-role-message p{margin:4px 0}.admin-role-message ul{margin:6px 0 0;padding-left:20px}.admin-role-message small{display:block;margin-top:7px;color:var(--muted)}
html[data-theme="dark"] .admin-role-preview{background:#1b252a;border-color:#33434a}html[data-theme="dark"] .admin-role-form select{background:#202d32;border-color:#3b4b51;color:#e0e8ea}html[data-theme="dark"] .admin-role-permissions{border-color:#3b4b51}html[data-theme="dark"] .admin-role-message{background:#1d342b;border-color:#375b46;color:#c0dbc8}
.gallery-form-grid,.gallery-transition-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gallery-field{display:grid;gap:5px;min-width:0;color:#53636a;font-size:11px;font-weight:700}
.gallery-field input,.gallery-field select{width:100%;min-width:0;min-height:39px;padding:8px 10px;border:1px solid #dfe7e9;border-radius:9px;background:#fff;color:#253238;font-size:12px;line-height:1.4}
.gallery-field input:focus,.gallery-field select:focus{outline:3px solid #d2eef3;border-color:var(--teal)}.gallery-wide{grid-column:1/-1}
.gallery-file-field{position:relative;display:flex;align-items:center;gap:11px;min-height:65px;padding:10px 12px;border:1px dashed #a9cdd5;border-radius:11px;background:#f5fbfc;color:#29434b;cursor:pointer}
.gallery-file-field input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.gallery-file-field:focus-within{outline:3px solid #f5aa49;outline-offset:2px}
.gallery-file-field strong,.gallery-file-field small{display:block}.gallery-file-field strong{font-size:12px}.gallery-file-field small{margin-top:2px;color:#77868c;font-size:10px;font-weight:500}
.gallery-file-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e2f2f5;color:#14758c;font-size:23px}
.gallery-add-button{min-height:39px;padding:8px 13px;border-radius:9px;font-size:12px;font-weight:700}.gallery-local-status{margin:11px 0 0;color:#7b898f;font-size:10px;line-height:1.5}
.gallery-optimization-note{margin:-5px 0 0;color:#77868c;font-size:10px;font-weight:500;line-height:1.5}.gallery-compression-status:empty{display:none}.gallery-compression-status{margin:6px 0 0;color:var(--teal-deep);font-size:10px;font-weight:700;line-height:1.4}html[data-theme="dark"] .gallery-optimization-note{color:#aab9be}
.gallery-stage{position:relative;display:grid;place-items:center;overflow:hidden;min-height:245px;border-radius:12px;background:#172830;color:#fff;isolation:isolate}
.gallery-stage-visual{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden}.gallery-stage-visual>img,.gallery-stage-visual>.gallery-art{width:100%;height:100%;object-fit:contain;transition:transform .25s ease}.gallery-stage-visual>.gallery-art{object-fit:cover}
.gallery-stage:after{position:absolute;inset:0;z-index:1;content:"";background:linear-gradient(180deg,#07141a03 34%,#07141a9c 100%);pointer-events:none}
.gallery-stage-overlay{position:absolute;z-index:2;right:14px;bottom:13px;left:14px;display:grid;gap:2px;text-shadow:0 1px 6px #0009}.gallery-stage-overlay strong{font-size:15px}.gallery-stage-overlay small{font-size:10px;color:#e2eaec}
.gallery-stage-chip{justify-self:start;margin-bottom:3px;padding:2px 7px;border:1px solid #ffffff66;border-radius:999px;background:#13232966;font-size:9px}
.gallery-display-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}.gallery-stage-buttons{display:flex;align-items:center;gap:6px}
.gallery-stage-buttons button{min-height:34px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-size:11px;font-weight:700}
.gallery-auto-control{display:flex;align-items:center;gap:6px;color:#53636a;font-size:11px;font-weight:700}.gallery-auto-control input{accent-color:var(--teal);width:16px;height:16px;margin:0}
.gallery-transition-controls{grid-template-columns:.75fr 1.25fr}.gallery-transition-choice{grid-column:1/-1}.gallery-transition-choice.is-disabled{opacity:.52}
.gallery-display-note{margin:9px 0 0;color:#849197;font-size:10px;line-height:1.5}
.gallery-library-panel{margin-top:15px}.gallery-library-heading{align-items:flex-start}.gallery-library-heading>div{align-items:flex-start}.gallery-library-heading h3{margin:0 0 3px}.gallery-library-heading p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.gallery-result-count{background:#eef5f7;color:#55717a;font-size:10px}
.gallery-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end;padding:0 0 13px;border-bottom:1px solid var(--line)}.gallery-clear-button{min-height:39px;border:1px solid #dfe7e9;border-radius:9px;background:#fff;color:#617178;font-size:11px;font-weight:700}
.gallery-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:14px}.gallery-card{overflow:hidden;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--white)}.gallery-card.is-selected{border-color:#51b6c8;box-shadow:0 0 0 2px #cdebf0}
.gallery-card-art-button{position:relative;display:block;width:100%;height:126px;padding:0;overflow:hidden;background:#eaf1f2}.gallery-card-art-button>img,.gallery-card-art-button>.gallery-art{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.gallery-demo-tag{position:absolute;top:8px;left:8px;padding:3px 7px;border-radius:999px;background:#0e232bbd;color:#fff;font-size:9px;font-weight:700}
.gallery-card-body{display:grid;gap:3px;padding:10px}.gallery-card-body>strong{overflow:hidden;color:var(--ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.gallery-card-body>span:not(.gallery-category-chip){overflow:hidden;color:#728188;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.gallery-card-body>small{overflow:hidden;color:#89959a;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.gallery-category-chip{justify-self:start;padding:2px 7px;border-radius:999px;background:#eff6f7;color:#52757e;font-size:9px}.gallery-card-actions{display:flex;gap:6px;margin-top:4px}.gallery-select-button,.gallery-rotate-button{min-height:29px;padding:4px 7px;border:1px solid #e1e8ea;border-radius:7px;background:#fff;color:#586970;font-size:9px;font-weight:700}.gallery-select-button{background:#eaf7f9;color:#006c89;border-color:#d0eaee}
.gallery-empty-state{grid-column:1/-1;margin:0;padding:20px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);text-align:center;font-size:12px}.gallery-library-footnote{margin:12px 0 0;color:#96a1a6;font-size:9px}
.gallery-art{position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#567c73,#c9d9b4 47%,#e8c48e)}.gallery-art:before,.gallery-art:after{position:absolute;content:"";pointer-events:none}.gallery-art:before{inset:0;background:linear-gradient(160deg,transparent 40%,#183b4055 41% 55%,transparent 56%),linear-gradient(25deg,#294d4c66 0 28%,transparent 29% 100%)}.gallery-art:after{top:18%;right:18%;width:42px;height:42px;border-radius:50%;background:#fff4c7bb;box-shadow:0 0 36px 8px #fff0b966}
.gallery-art.art-friends{background:linear-gradient(145deg,#e4b078,#9d665b 46%,#3a6471)}.gallery-art.art-friends:before{background:radial-gradient(ellipse at 50% 90%,#182c3999 0 22%,transparent 23%),linear-gradient(120deg,transparent 24%,#ffffff30 25% 28%,transparent 29%)}.gallery-art.art-gathering{background:linear-gradient(135deg,#213f4b,#528a90 48%,#e7b678)}.gallery-art.art-gathering:before{background:radial-gradient(ellipse at 50% 90%,#16282cb0 0 32%,transparent 33%),linear-gradient(0deg,#101d2b55,transparent 60%)}
.gallery-art-label{position:relative;z-index:1;max-width:80%;padding:7px 11px;border:1px solid #ffffff70;border-radius:999px;background:#0d222b55;color:#fff;text-align:center;text-shadow:0 2px 7px #17272a;font-size:12px;font-weight:700}

/* Twenty selectable slideshow transitions. */
@keyframes gallery-fade{from{opacity:.05}to{opacity:1}}
@keyframes gallery-slide-left{from{opacity:.15;transform:translateX(14%)}to{opacity:1;transform:translateX(0)}}
@keyframes gallery-slide-right{from{opacity:.15;transform:translateX(-14%)}to{opacity:1;transform:translateX(0)}}
@keyframes gallery-slide-up{from{opacity:.15;transform:translateY(14%)}to{opacity:1;transform:translateY(0)}}
@keyframes gallery-slide-down{from{opacity:.15;transform:translateY(-14%)}to{opacity:1;transform:translateY(0)}}
@keyframes gallery-zoom-in{from{opacity:.15;transform:scale(.82)}to{opacity:1;transform:scale(1)}}
@keyframes gallery-zoom-out{from{opacity:.15;transform:scale(1.18)}to{opacity:1;transform:scale(1)}}
@keyframes gallery-flip-x{from{opacity:.2;transform:perspective(700px) rotateY(72deg)}to{opacity:1;transform:perspective(700px) rotateY(0)}}
@keyframes gallery-flip-y{from{opacity:.2;transform:perspective(700px) rotateX(70deg)}to{opacity:1;transform:perspective(700px) rotateX(0)}}
@keyframes gallery-rotate-in{from{opacity:.1;transform:rotate(-10deg) scale(.82)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes gallery-rotate-out{from{opacity:.1;transform:rotate(10deg) scale(1.12)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes gallery-blur-in{from{opacity:.2;filter:blur(12px)}to{opacity:1;filter:blur(0)}}
@keyframes gallery-wipe-left{from{opacity:.2;clip-path:inset(0 0 0 100%)}to{opacity:1;clip-path:inset(0)}}
@keyframes gallery-wipe-right{from{opacity:.2;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes gallery-wipe-up{from{opacity:.2;clip-path:inset(100% 0 0 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes gallery-wipe-down{from{opacity:.2;clip-path:inset(0 0 100% 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes gallery-bounce-in{0%{opacity:.2;transform:scale(.7)}70%{opacity:1;transform:scale(1.04)}100%{transform:scale(1)}}
@keyframes gallery-swing-in{from{opacity:.2;transform:rotate(-7deg);transform-origin:top center}to{opacity:1;transform:rotate(0);transform-origin:top center}}
@keyframes gallery-diagonal-in{from{opacity:.15;transform:translate(-9%,9%) scale(.94)}to{opacity:1;transform:translate(0) scale(1)}}
@keyframes gallery-scale-up{from{opacity:.2;transform:scale(.65)}to{opacity:1;transform:scale(1)}}
.gallery-stage.tx-fade .gallery-stage-visual{animation:gallery-fade .7s ease both}.gallery-stage.tx-slide-left .gallery-stage-visual{animation:gallery-slide-left .7s ease both}.gallery-stage.tx-slide-right .gallery-stage-visual{animation:gallery-slide-right .7s ease both}.gallery-stage.tx-slide-up .gallery-stage-visual{animation:gallery-slide-up .7s ease both}.gallery-stage.tx-slide-down .gallery-stage-visual{animation:gallery-slide-down .7s ease both}.gallery-stage.tx-zoom-in .gallery-stage-visual{animation:gallery-zoom-in .7s ease both}.gallery-stage.tx-zoom-out .gallery-stage-visual{animation:gallery-zoom-out .7s ease both}.gallery-stage.tx-flip-x .gallery-stage-visual{animation:gallery-flip-x .7s ease both}.gallery-stage.tx-flip-y .gallery-stage-visual{animation:gallery-flip-y .7s ease both}.gallery-stage.tx-rotate-in .gallery-stage-visual{animation:gallery-rotate-in .7s ease both}.gallery-stage.tx-rotate-out .gallery-stage-visual{animation:gallery-rotate-out .7s ease both}.gallery-stage.tx-blur-in .gallery-stage-visual{animation:gallery-blur-in .7s ease both}.gallery-stage.tx-wipe-left .gallery-stage-visual{animation:gallery-wipe-left .7s ease both}.gallery-stage.tx-wipe-right .gallery-stage-visual{animation:gallery-wipe-right .7s ease both}.gallery-stage.tx-wipe-up .gallery-stage-visual{animation:gallery-wipe-up .7s ease both}.gallery-stage.tx-wipe-down .gallery-stage-visual{animation:gallery-wipe-down .7s ease both}.gallery-stage.tx-bounce-in .gallery-stage-visual{animation:gallery-bounce-in .75s ease both}.gallery-stage.tx-swing-in .gallery-stage-visual{animation:gallery-swing-in .75s ease both}.gallery-stage.tx-diagonal-in .gallery-stage-visual{animation:gallery-diagonal-in .7s ease both}.gallery-stage.tx-scale-up .gallery-stage-visual{animation:gallery-scale-up .7s ease both}
@media(prefers-reduced-motion:reduce){.gallery-stage[class*="tx-"] .gallery-stage-visual{animation:none!important}}

html[data-theme="dark"] .gallery-panel{background:#1b252a;border-color:#33434a;box-shadow:none}html[data-theme="dark"] .gallery-preview-notice{background:#2b281f;border-color:#594a30;color:#ddc99f}html[data-theme="dark"] .gallery-preview-notice strong{color:#f1d49a}html[data-theme="dark"] .gallery-preview-badge{background:#203b32;color:#89d9b2}html[data-theme="dark"] .gallery-local-label,html[data-theme="dark"] .gallery-result-count{background:#24343a;color:#b7c5c9}html[data-theme="dark"] .gallery-display-caption{background:#3a3021;color:#e9c27b}html[data-theme="dark"] .gallery-step{background:#203a41;color:#9ee0eb}html[data-theme="dark"] .gallery-field{color:#b8c5c9}html[data-theme="dark"] .gallery-field input,html[data-theme="dark"] .gallery-field select,html[data-theme="dark"] .gallery-clear-button,html[data-theme="dark"] .gallery-stage-buttons button,html[data-theme="dark"] .gallery-select-button,html[data-theme="dark"] .gallery-rotate-button{background:#202d32;border-color:#3b4b51;color:#e0e8ea}html[data-theme="dark"] .gallery-file-field{background:#202e33;border-color:#46616a;color:#d5e2e5}html[data-theme="dark"] .gallery-file-field small,html[data-theme="dark"] .gallery-local-status,html[data-theme="dark"] .gallery-display-note,html[data-theme="dark"] .gallery-library-heading p,html[data-theme="dark"] .gallery-library-footnote{color:#aab9be}html[data-theme="dark"] .gallery-card{background:#1b252a;border-color:#39494f}html[data-theme="dark"] .gallery-card.is-selected{border-color:#5ac1d3;box-shadow:0 0 0 2px #27484f}html[data-theme="dark"] .gallery-category-chip{background:#253a40;color:#a8d5dd}html[data-theme="dark"] .gallery-select-button{background:#203a41;color:#a7e0e9;border-color:#36545b}html[data-theme="dark"] .gallery-empty-state{border-color:#3a4a50;color:#aab7bb}
@media(max-width:1170px){.gallery-page{width:auto;max-width:none;margin:14px 23px 25px 225px}}
@media(max-width:900px){.gallery-page{margin:14px 22px 24px}.gallery-workspace{grid-template-columns:minmax(0,1fr)}.gallery-stage{min-height:270px}}
@media(max-width:650px){.gallery-page{margin:10px 0 20px}.gallery-heading{align-items:flex-start;gap:8px;margin-bottom:12px}.gallery-heading h2{font-size:21px}.gallery-heading p{max-width:260px;font-size:11px}.gallery-preview-badge{padding:4px 8px;font-size:9px}.gallery-preview-notice{flex-direction:column;gap:3px;padding:10px 12px;font-size:10px}.gallery-upload-panel,.gallery-display-panel,.gallery-library-panel{padding:13px}.gallery-panel-heading h3{font-size:13px}.gallery-workspace{gap:11px}.gallery-form-grid,.gallery-transition-controls{grid-template-columns:1fr}.gallery-wide,.gallery-transition-choice{grid-column:auto}.gallery-stage{min-height:230px}.gallery-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-card-art-button{height:116px}.gallery-card-body{padding:8px}.gallery-card-body>strong{font-size:11px}.gallery-display-controls{align-items:flex-start;flex-direction:column}.gallery-library-heading{align-items:flex-start}.gallery-result-count{padding:4px 7px;font-size:9px}}
@media(max-width:380px){.gallery-filter-grid{grid-template-columns:1fr}.gallery-card-grid{gap:7px}.gallery-card-art-button{height:100px}.gallery-stage{min-height:205px}}

@media(max-width:650px){.admin-role-select-grid{grid-template-columns:1fr}}


/* Fullscreen album windows and photo detail viewer — all interactions are page-local. */
body.gallery-overlay-lock{overflow:hidden}
.gallery-album-mode{display:none;position:fixed;inset:0;z-index:40;overflow:auto;padding:clamp(15px,3vw,42px);background:linear-gradient(135deg,#edf7fa 0%,#fff1e4 52%,#e8f5f8 100%);overscroll-behavior:contain}
.gallery-album-mode.is-open{display:block}
.gallery-album-mode-shell{width:min(1440px,100%);min-height:100%;margin:0 auto}
.gallery-album-mode-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:5px 0 16px;border-bottom:1px solid #c9dce1}
.gallery-album-mode-header h2{margin:3px 0 2px;color:#20363d;font-size:clamp(24px,3vw,36px);line-height:1.2}
.gallery-album-mode-header p{margin:0;color:#61787f;font-size:13px}
.gallery-album-mode-kicker{color:#087c99;font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase}
.gallery-overlay-close{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #d8e4e7;border-radius:50%;background:#fff;color:#465c63;font-size:27px;line-height:1;box-shadow:0 3px 12px #17364112}
.gallery-album-mode-notice{margin:16px 0 20px;padding:10px 13px;border:1px solid #edd7b5;border-radius:11px;background:#fff8ec;color:#795b2b;font-size:12px}
.gallery-album-windows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.gallery-album-window{overflow:hidden;border:1px solid #d5e1e4;border-radius:16px;background:#fff;box-shadow:0 12px 30px #18384414}
.gallery-album-window-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e6edef;background:#fbfdfd;color:#254149}
.gallery-album-window-bar strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.gallery-window-dots{flex:0 0 auto;color:#e69b70;font-size:10px;letter-spacing:2px;white-space:nowrap}
.gallery-album-window-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px;background:#f2f7f8}
.gallery-album-window-photo,.gallery-album-window-empty{display:block;position:relative;width:100%;aspect-ratio:1.35;overflow:hidden;padding:0;border-radius:7px;background:#e6eef0}
.gallery-album-window-photo img,.gallery-album-photo-preview img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.gallery-album-window-photo:hover img,.gallery-album-photo-preview:hover img{transform:scale(1.045)}
.gallery-album-window-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;color:#73848a;font-size:11px}
.gallery-album-window-open{min-height:33px;padding:6px 11px;border:1px solid #cce6ec;border-radius:8px;background:#e9f6f8;color:#086c82;font-size:11px;font-weight:800}
.gallery-album-photos{margin-top:10px}
.gallery-album-photos-heading{display:flex;align-items:center;gap:15px;margin:0 0 16px;padding:8px 0 13px;border-bottom:1px solid #c9dce1}
.gallery-album-photos-heading h3{margin:0;color:#20363d;font-size:20px}
.gallery-album-photos-heading p{margin:2px 0 0;color:#657b81;font-size:11px}
.gallery-album-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gallery-album-photo-card{overflow:hidden;border:1px solid #d5e1e4;border-radius:13px;background:#fff;box-shadow:0 8px 20px #18384410}
.gallery-album-photo-preview{display:block;width:100%;aspect-ratio:1.35;overflow:hidden;padding:0;background:#e6eef0}
.gallery-photo-viewer{display:none;position:fixed;inset:0;z-index:52;align-items:center;justify-content:center;padding:24px;background:#0c171bd9;backdrop-filter:blur(6px);overscroll-behavior:contain}
.gallery-photo-viewer.is-open{display:flex}
.gallery-photo-viewer-shell{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);width:min(1120px,100%);max-height:min(780px,calc(100vh - 48px));overflow:hidden;border:1px solid #32464d;border-radius:17px;background:#fff;box-shadow:0 22px 80px #0006}
.gallery-photo-viewer-media{position:relative;display:grid;place-items:center;min-width:0;min-height:360px;overflow:hidden;background:#101c20}
.gallery-photo-viewer-media>img{width:100%;height:100%;max-height:min(780px,calc(100vh - 48px));object-fit:contain}
.gallery-photo-viewer-side{min-width:0;overflow:auto;padding:50px 20px 18px;background:#fff}
.gallery-photo-viewer-close{position:absolute;top:12px;right:12px;z-index:2}
.gallery-viewer-mode-actions{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:14px;border-bottom:1px solid #e7ecee}
.gallery-viewer-mode-actions button{min-height:36px;padding:7px 12px;font-size:11px}
.gallery-social-demo h3{margin:15px 0 1px;color:#263940;font-size:15px}
.gallery-social-demo-note{margin:0 0 12px;color:#829197;font-size:10px;line-height:1.45}
.gallery-reactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.gallery-reaction-button{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:38px;padding:7px 9px;border:1px solid #e0e8ea;border-radius:9px;background:#f8fbfb;color:#50636a;font-size:10px;text-align:left}
.gallery-reaction-button b{color:#43565d;font-size:10px}
.gallery-reaction-button.is-selected{border-color:#80c8d5;background:#e8f6f8;color:#006c89;box-shadow:inset 0 0 0 1px #c5e9ee}
.gallery-comment-list{display:grid;gap:8px;margin:14px 0 10px}
.gallery-comment-item{display:grid;gap:1px;padding:8px 10px;border-radius:10px;background:#f2f6f7;color:#485a61;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.gallery-comment-item strong{color:#24424a;font-size:10px}
.gallery-comment-empty{margin:8px 0;color:#8a989d;font-size:10px}
.gallery-comment-form{display:flex;gap:7px}
.gallery-comment-form input{min-width:0;flex:1;height:38px;padding:8px 10px;border:1px solid #dfe7e9;border-radius:9px;background:#fbfdfd;color:#253238;font-size:11px}
.gallery-comment-form button{min-height:38px;padding:7px 12px;font-size:10px}
.gallery-comment-status{min-height:16px;margin:6px 0 0;color:#2a8062;font-size:9px;line-height:1.4}
.gallery-album-mode .gallery-album-mode-shell{padding-bottom:26px}
.gallery-album-mode .gallery-overlay-close:hover,.gallery-album-window-open:hover{filter:brightness(.97)}
.gallery-album-mode-button{width:100%;min-height:40px;margin:0 0 13px;padding:8px 12px;font-size:11px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-theme="dark"] .gallery-album-mode{background:linear-gradient(135deg,#17272d 0%,#30291f 52%,#182b30 100%)}
html[data-theme="dark"] .gallery-album-mode-header{border-color:#3a4a50}
html[data-theme="dark"] .gallery-album-mode-header h2,html[data-theme="dark"] .gallery-album-photos-heading h3{color:#e5eff1}
html[data-theme="dark"] .gallery-album-mode-header p,html[data-theme="dark"] .gallery-album-photos-heading p{color:#a9b9be}
html[data-theme="dark"] .gallery-album-mode-kicker{color:#7dd5e3}
html[data-theme="dark"] .gallery-album-mode-notice{background:#352c1d;border-color:#57462b;color:#f0cd91}
html[data-theme="dark"] .gallery-album-window,html[data-theme="dark"] .gallery-album-photo-card,html[data-theme="dark"] .gallery-photo-viewer-shell,html[data-theme="dark"] .gallery-photo-viewer-side{background:#1b252a;border-color:#3b4b51}
html[data-theme="dark"] .gallery-album-window-bar{background:#202d32;border-color:#3b4b51;color:#e0eaec}
html[data-theme="dark"] .gallery-album-window-grid{background:#182328}
html[data-theme="dark"] .gallery-album-window-footer{color:#c4d1d5}
html[data-theme="dark"] .gallery-album-window-open{background:#203a41;border-color:#36545b;color:#a7e0e9}
html[data-theme="dark"] .gallery-overlay-close,html[data-theme="dark"] .gallery-reaction-button,html[data-theme="dark"] .gallery-comment-item,html[data-theme="dark"] .gallery-comment-form input{background:#253239;border-color:#3b4b51;color:#e0eaec}
html[data-theme="dark"] .gallery-social-demo h3,html[data-theme="dark"] .gallery-comment-item strong,html[data-theme="dark"] .gallery-reaction-button b{color:#e0eaec}
html[data-theme="dark"] .gallery-social-demo-note,html[data-theme="dark"] .gallery-comment-empty{color:#9eafb5}
html[data-theme="dark"] .gallery-reaction-button.is-selected{background:#203a41;border-color:#5ac1d3;color:#a7e0e9}
@media(max-width:950px){.gallery-album-windows{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-album-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-photo-viewer-shell{grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr)}}
@media(max-width:650px){.gallery-album-mode{padding:14px 12px 24px}.gallery-album-mode-header h2{font-size:25px}.gallery-album-mode-header p{font-size:11px}.gallery-album-mode-notice{font-size:10px}.gallery-album-windows{grid-template-columns:1fr;gap:12px}.gallery-album-window-grid{gap:4px}.gallery-album-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-album-photos-heading{align-items:flex-start;gap:9px}.gallery-album-photos-heading h3{font-size:17px}.gallery-album-photos-heading .secondary{padding:7px 9px;font-size:10px}.gallery-photo-viewer{align-items:flex-start;padding:8px}.gallery-photo-viewer-shell{grid-template-columns:minmax(0,1fr);width:100%;max-height:calc(100dvh - 16px);overflow:auto;border-radius:13px}.gallery-photo-viewer-media{min-height:38vh;max-height:48vh}.gallery-photo-viewer-media>img{height:38vh;max-height:48vh}.gallery-photo-viewer-side{overflow:visible;padding:17px 14px 15px}.gallery-photo-viewer-close{top:8px;right:8px;width:36px;height:36px}.gallery-viewer-mode-actions{padding-right:38px}.gallery-social-demo h3{margin-top:12px}.gallery-album-mode-button{min-height:39px}}
@media(max-width:380px){.gallery-album-photo-grid{gap:7px}.gallery-reactions{gap:5px}.gallery-reaction-button{padding:6px;font-size:9px}}
.gallery-photo-viewer.is-fullscreen{padding:0;background:#081014}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{width:100%;height:100%;max-height:none;border:0;border-radius:0;grid-template-columns:minmax(0,1fr) minmax(300px,26vw)}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media>img{max-height:100vh}
@media(max-width:650px){.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{grid-template-columns:minmax(0,1fr);height:100dvh;max-height:none}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{min-height:50dvh;max-height:55dvh}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media>img{height:50dvh;max-height:55dvh}}
/* Simple Photos/Albums navigation; no search or filter controls in this gallery. */
.gallery-browse-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:5px;border:1px solid var(--line);border-radius:11px;background:#f4f8f9}
.gallery-browse-tab{min-height:40px;border:1px solid transparent;border-radius:8px;background:transparent;color:#61747b;font-size:12px;font-weight:800;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.gallery-browse-tab.is-active,.gallery-browse-tab[aria-selected="true"]{border-color:#d4e9ed;background:#fff;color:var(--teal-deep);box-shadow:0 2px 8px #17364110}
.gallery-album-browser-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.gallery-album-browser-card{display:grid;gap:5px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);text-align:left;box-shadow:0 4px 13px #122a3809;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.gallery-album-browser-card:hover,.gallery-album-browser-card:focus-visible{transform:translateY(-2px);border-color:#9fd3dc;box-shadow:0 8px 20px #122a3815}
.gallery-album-browser-collage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:3px;overflow:hidden;aspect-ratio:1.6;border-radius:8px;background:#e8f0f2}
.gallery-album-browser-collage img{width:100%;height:100%;min-height:0;object-fit:cover}
.gallery-album-browser-card strong{overflow:hidden;padding:2px 2px 0;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.gallery-album-browser-card small{padding:0 2px 2px;color:var(--muted);font-size:10px}
.gallery-album-browser-detail-heading{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:1px 0 13px;border-bottom:1px solid var(--line)}
.gallery-album-browser-detail-heading h4{margin:0;color:var(--ink);font-size:16px;line-height:1.3}
.gallery-album-browser-detail-heading p{margin:3px 0 0;color:var(--muted);font-size:10px}
html[data-theme="dark"] .gallery-browse-tabs{background:#182328;border-color:#33434a}
html[data-theme="dark"] .gallery-browse-tab{color:#b6c4c8}
html[data-theme="dark"] .gallery-browse-tab.is-active,html[data-theme="dark"] .gallery-browse-tab[aria-selected="true"]{background:#20343a;border-color:#36545b;color:#a7e0e9}
html[data-theme="dark"] .gallery-album-browser-card{background:#1b252a;border-color:#39494f;color:#e0eaec}
html[data-theme="dark"] .gallery-album-browser-card small,html[data-theme="dark"] .gallery-album-browser-detail-heading p{color:#aab9be}
html[data-theme="dark"] .gallery-album-browser-detail-heading{border-color:#33434a}
@media(max-width:950px){.gallery-album-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.gallery-browse-tabs{margin-bottom:11px}.gallery-browse-tab{min-height:38px}.gallery-album-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-album-browser-card{padding:7px}.gallery-album-browser-card strong{font-size:10px}.gallery-album-browser-card small{font-size:9px}.gallery-album-browser-detail-heading{gap:8px}.gallery-album-browser-detail-heading .secondary{padding:7px 9px;font-size:10px}}
@media(max-width:650px){.gallery-photo-viewer.is-fullscreen{padding:0}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{width:100vw;height:100dvh;max-height:none;grid-template-columns:minmax(0,1fr);overflow:auto}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{min-height:52dvh;max-height:58dvh}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media>img{width:100%;height:52dvh;max-height:58dvh;object-fit:contain}}
@media(min-width:651px) and (max-width:1024px){.gallery-photo-viewer.is-fullscreen{padding:0}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{width:100vw;height:100dvh;max-height:none;grid-template-columns:minmax(0,1fr) minmax(260px,32vw);border-radius:0}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{min-height:100dvh}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media>img{width:100%;height:100dvh;max-height:100dvh;object-fit:contain}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-side{max-height:100dvh}}


/* Album-scoped navigation and slideshow controls inside the photo viewer. */
.gallery-viewer-arrow{position:absolute;top:50%;z-index:4;display:grid;place-items:center;width:46px;height:46px;padding:0;transform:translateY(-50%);border:1px solid #ffffffb8;border-radius:50%;background:#f8fcfdee;color:#18343c;box-shadow:0 4px 18px #0005;font-size:32px;font-weight:500;line-height:1;transition:background .16s ease,transform .16s ease}
.gallery-viewer-arrow:hover{transform:translateY(-50%) scale(1.06);background:#fff}
.gallery-viewer-arrow:disabled{opacity:.45;cursor:not-allowed}
.gallery-viewer-arrow-previous{left:14px}
.gallery-viewer-arrow-next{right:14px}
.gallery-viewer-position{margin:10px 0 2px;text-align:center;color:#65767d;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.gallery-viewer-display-options{margin:12px 0 14px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fbfdfd}
.gallery-viewer-display-options h3{margin:0 0 9px;color:#263940;font-size:13px}
.gallery-viewer-auto-control{display:flex;align-items:center;gap:7px;margin:0 0 10px;color:#53636a;font-size:11px;font-weight:700}
.gallery-viewer-auto-control input{width:16px;height:16px;margin:0;accent-color:var(--teal)}
.gallery-viewer-transition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gallery-viewer-transition-grid .gallery-field{font-size:10px}
.gallery-viewer-transition-choice{grid-column:1/-1}
.gallery-viewer-transition-choice.is-disabled{opacity:.52}
html[data-theme="dark"] .gallery-viewer-arrow{background:#253239eF;border-color:#64777d;color:#e0eaec}
html[data-theme="dark"] .gallery-viewer-position,html[data-theme="dark"] .gallery-viewer-auto-control{color:#c4d0d4}
html[data-theme="dark"] .gallery-viewer-display-options{background:#202d32;border-color:#3b4b51}
html[data-theme="dark"] .gallery-viewer-display-options h3{color:#e0eaec}
@media(max-width:650px){.gallery-viewer-arrow{width:40px;height:40px;font-size:29px}.gallery-viewer-arrow-previous{left:9px}.gallery-viewer-arrow-next{right:9px}.gallery-viewer-display-options{padding:10px}.gallery-viewer-transition-grid{gap:7px}}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-close{position:fixed;top:12px;right:12px;z-index:60}


/* Button-first gallery and local-only member submission demo. */
.gallery-demo-note{display:flex;align-items:flex-start;gap:9px;margin:0 0 16px;padding:10px 13px;border:1px solid #eedbb8;border-radius:11px;background:#fff8eb;color:#72592d;font-size:11px;line-height:1.5}
.gallery-demo-note strong{flex:0 0 auto;color:#67491b}
.gallery-actions{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) auto;gap:9px;max-width:780px;margin:0 0 18px}
.gallery-action-button,.gallery-add-open{min-height:45px;padding:9px 16px;border:1px solid #dfe8ea;border-radius:10px;background:#fff;color:#51656d;font-size:13px;font-weight:800}
.gallery-action-button.is-active,.gallery-action-button[aria-pressed="true"]{border-color:#b9e0e6;background:#eaf7f9;color:var(--teal-deep);box-shadow:inset 0 0 0 1px #d3edf1}
.gallery-add-open{white-space:nowrap}
.gallery-browse-view,.gallery-submissions{max-width:1120px;margin:0 0 18px;padding:17px;border:1px solid var(--line);border-radius:15px;background:var(--white);box-shadow:0 5px 18px #122a3810}
.gallery-browse-view[hidden],.gallery-submissions[hidden],.gallery-album-browser-detail[hidden]{display:none!important}
.gallery-view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.gallery-view-heading h3{margin:0;color:var(--ink);font-size:16px}
.gallery-view-heading p{margin:3px 0 0;color:var(--muted);font-size:11px}
.gallery-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-top:0}
.gallery-photo-grid .gallery-card{overflow:hidden}
.gallery-photo-image{display:block;width:100%;aspect-ratio:1.15;object-fit:cover;background:#e8eff1}
.gallery-submissions{padding:15px}
.gallery-submission-list{display:grid;gap:9px}
.gallery-submission-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fbfdfd}
.gallery-submission-copy{display:grid;gap:3px;min-width:0}
.gallery-submission-copy>strong{overflow:hidden;color:var(--ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.gallery-submission-copy>small{color:var(--muted);font-size:10px}
.gallery-submission-state{color:#9a7028;font-size:10px;font-weight:800}
.gallery-submission-state.is-approved{color:#24835e}
.gallery-approve-demo{flex:0 0 auto;min-height:35px;padding:7px 10px;font-size:10px}
.gallery-upload-modal{display:none;position:fixed;inset:0;z-index:60;align-items:center;justify-content:center;overflow:auto;padding:18px;background:#122630b8;backdrop-filter:blur(5px)}
.gallery-upload-modal.is-open{display:flex}
.gallery-upload-dialog{--ink:#252326;--muted:#66737a;--line:#ead9bc;--white:#fffaf2;position:relative;width:min(530px,100%);padding:25px;border:1px solid #efd9b3;border-radius:17px;background:linear-gradient(145deg,#fff7e8 0%,#ffefd2 100%);color:#252326;box-shadow:0 24px 90px #0004}
.gallery-upload-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f1f5f6;color:#62737a;font-size:23px}
.gallery-upload-dialog>.eyebrow{margin:0 42px 5px 0}
.gallery-upload-dialog>h3{margin:0 38px 4px 0;color:var(--ink);font-size:21px;line-height:1.35}
.gallery-upload-dialog>p{margin:0 28px 14px 0;color:var(--muted);font-size:11px}
.gallery-modal-demo-note{margin:11px 0;padding:9px 11px;border:1px solid #eedbb8;border-radius:9px;background:#fff8eb;color:#72592d;font-size:10px;line-height:1.5}
#gallerySubmissionForm{display:grid;gap:12px;margin-top:14px}
.gallery-upload-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0}
.gallery-upload-type legend{margin:0 0 6px;color:var(--ink);font-size:11px;font-weight:800}
.gallery-upload-type label{display:flex;align-items:center;gap:7px;min-height:39px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fafcfc;color:#52656c;font-size:10px;font-weight:700}
.gallery-upload-type input{width:15px;height:15px;margin:0;accent-color:var(--teal)}
.gallery-field{color:#53636a}
.gallery-field input{min-height:39px}
.gallery-selected-files,.gallery-form-status{min-height:15px;margin:-5px 0 0;color:var(--muted);font-size:10px;line-height:1.45}
.gallery-form-status{margin:0;color:var(--teal-deep);font-weight:700}
.gallery-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:3px}
.gallery-form-actions button{min-height:39px;padding:8px 12px;font-size:11px}
html[data-theme="dark"] .gallery-demo-note,html[data-theme="dark"] .gallery-modal-demo-note{background:#2b281f;border-color:#594a30;color:#ddc99f}
html[data-theme="dark"] .gallery-demo-note strong{color:#f1d49a}
html[data-theme="dark"] .gallery-action-button{background:#1b252a;border-color:#33434a;color:#e0eaec}
html[data-theme="dark"] .gallery-action-button.is-active,html[data-theme="dark"] .gallery-action-button[aria-pressed="true"]{background:#203a41;border-color:#36545b;color:#a7e0e9}
html[data-theme="dark"] .gallery-browse-view,html[data-theme="dark"] .gallery-submissions{background:#1b252a;border-color:#33434a;box-shadow:none}
html[data-theme="dark"] .gallery-view-heading h3,html[data-theme="dark"] .gallery-submission-copy>strong{color:#e0eaec}
html[data-theme="dark"] .gallery-submission-card{background:#202d32;border-color:#3b4b51;color:#d5e1e4}
html[data-theme="dark"] .gallery-upload-close{background:#253239;color:#e0eaec}
html[data-theme="dark"] .gallery-submission-state.is-approved{color:#91d6b3}
@media(max-width:950px){.gallery-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
  .gallery-demo-note{flex-direction:column;gap:2px;padding:9px 11px;font-size:10px}
  .gallery-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:14px}
  .gallery-action-button,.gallery-add-open{min-height:42px;padding:8px 10px;font-size:11px}
  .gallery-add-open{grid-column:1/-1}
  .gallery-browse-view,.gallery-submissions{padding:12px;border-radius:12px}
  .gallery-view-heading{align-items:flex-start}
  .gallery-view-heading h3{font-size:14px}
  .gallery-view-heading p{font-size:10px}
  .gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .gallery-album-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .gallery-submission-card{align-items:flex-start;flex-direction:column;gap:8px;padding:10px}
  .gallery-approve-demo{width:100%}
  .gallery-upload-modal{align-items:flex-end;padding:8px}
  .gallery-upload-dialog{max-height:calc(100dvh - 16px);overflow:auto;padding:21px 16px 16px;border-radius:16px}
  .gallery-upload-dialog>h3{font-size:19px}
  .gallery-upload-type{grid-template-columns:1fr}
}
@media(max-width:380px){.gallery-photo-grid{gap:6px}.gallery-upload-dialog{padding-right:13px;padding-left:13px}}
.gallery-photo-preview-button{display:block;width:100%;padding:0;overflow:hidden;background:#e8eff1;cursor:zoom-in}
.gallery-photo-caption{display:block;overflow:hidden;padding:8px 10px;color:var(--ink);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.gallery-photo-viewer-visual{display:grid;width:100%;height:100%;place-items:center;overflow:hidden}
.gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:min(780px,calc(100vh - 48px));object-fit:contain;transition:transform .24s ease}
.gallery-viewer-title{margin:0 34px 3px 0;color:#263940;font-size:20px;line-height:1.3}
.gallery-viewer-album{margin:0;color:#718187;font-size:11px}
.gallery-viewer-display-options[hidden],.gallery-viewer-multiple-choice[hidden],.gallery-viewer-transition-choice[hidden]{display:none!important}
.gallery-viewer-display-options{display:grid;gap:10px}
.gallery-viewer-display-options h3{margin:0}
.gallery-viewer-display-options .gallery-field{font-size:10px}
.gallery-viewer-display-options select,.gallery-viewer-display-options input[type=number]{width:100%;min-height:37px;padding:7px 9px;border:1px solid #dfe7e9;border-radius:8px;background:#fff;color:#253238;font-size:11px}
.gallery-viewer-multiple-choice{min-width:0;margin:0;padding:8px;border:1px solid #dfe7e9;border-radius:9px}
.gallery-viewer-multiple-choice legend{padding:0 4px;color:#53636a;font-size:10px;font-weight:700}
.gallery-viewer-transition-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:280px;overflow:auto}
.gallery-viewer-transition-item{display:flex;align-items:center;gap:6px;min-width:0;padding:5px 6px;border-radius:6px;background:#f4f8f9;color:#52656c;font-size:9px;font-weight:600;cursor:pointer}
.gallery-viewer-transition-item input{flex:0 0 auto;width:14px;height:14px;margin:0;accent-color:var(--teal)}
.gallery-viewer-transition-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gallery-viewer-start{width:100%;min-height:38px;padding:8px 11px;font-size:11px}
.gallery-viewer-slideshow-status{min-height:14px;margin:0;color:#b64a39;font-size:10px}
.gallery-photo-viewer-visual.tx-fade{animation:gallery-fade .7s ease both}.gallery-photo-viewer-visual.tx-slide-left{animation:gallery-slide-left .7s ease both}.gallery-photo-viewer-visual.tx-slide-right{animation:gallery-slide-right .7s ease both}.gallery-photo-viewer-visual.tx-slide-up{animation:gallery-slide-up .7s ease both}.gallery-photo-viewer-visual.tx-slide-down{animation:gallery-slide-down .7s ease both}.gallery-photo-viewer-visual.tx-zoom-in{animation:gallery-zoom-in .7s ease both}.gallery-photo-viewer-visual.tx-zoom-out{animation:gallery-zoom-out .7s ease both}.gallery-photo-viewer-visual.tx-flip-x{animation:gallery-flip-x .7s ease both}.gallery-photo-viewer-visual.tx-flip-y{animation:gallery-flip-y .7s ease both}.gallery-photo-viewer-visual.tx-rotate-in{animation:gallery-rotate-in .7s ease both}.gallery-photo-viewer-visual.tx-rotate-out{animation:gallery-rotate-out .7s ease both}.gallery-photo-viewer-visual.tx-blur-in{animation:gallery-blur-in .7s ease both}.gallery-photo-viewer-visual.tx-wipe-left{animation:gallery-wipe-left .7s ease both}.gallery-photo-viewer-visual.tx-wipe-right{animation:gallery-wipe-right .7s ease both}.gallery-photo-viewer-visual.tx-wipe-up{animation:gallery-wipe-up .7s ease both}.gallery-photo-viewer-visual.tx-wipe-down{animation:gallery-wipe-down .7s ease both}.gallery-photo-viewer-visual.tx-bounce-in{animation:gallery-bounce-in .75s ease both}.gallery-photo-viewer-visual.tx-swing-in{animation:gallery-swing-in .75s ease both}.gallery-photo-viewer-visual.tx-diagonal-in{animation:gallery-diagonal-in .7s ease both}.gallery-photo-viewer-visual.tx-scale-up{animation:gallery-scale-up .7s ease both}
html[data-theme="dark"] .gallery-viewer-title{color:#e0eaec}html[data-theme="dark"] .gallery-viewer-album{color:#aab9be}html[data-theme="dark"] .gallery-viewer-display-options select,html[data-theme="dark"] .gallery-viewer-display-options input[type=number],html[data-theme="dark"] .gallery-viewer-multiple-choice{background:#202d32;border-color:#3b4b51;color:#e0eaec}html[data-theme="dark"] .gallery-viewer-multiple-choice legend{color:#c4d0d4}html[data-theme="dark"] .gallery-viewer-transition-item{background:#253239;color:#d5e1e4}
@media(max-width:650px){.gallery-photo-viewer-visual>img{max-height:48vh}.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual>img{width:100%;height:52dvh;max-height:58dvh}.gallery-viewer-title{font-size:18px}.gallery-viewer-transition-list{max-height:280px}}
@media(prefers-reduced-motion:reduce){.gallery-photo-viewer-visual[class*="tx-"]{animation:none!important}}


/* Photo-first viewer controls: compact icons below the photo. */
.gallery-photo-viewer-media{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0;overflow-x:hidden;overflow-y:auto}
.gallery-photo-viewer-visual{position:relative;flex:0 0 auto;width:100%;height:min(660px,calc(100vh - 112px));min-height:300px}
.gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:none;object-fit:contain}
.gallery-viewer-mode-actions{position:relative;z-index:5;display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:10px;min-height:58px;margin:0;padding:8px 14px;border:0;border-top:1px solid #ffffff18;background:#111e22}
.gallery-viewer-icon-button{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #64777d;border-radius:10px;background:#253239;color:#e7f0f2;box-shadow:none}
.gallery-viewer-icon-button svg{width:20px;height:20px}
.gallery-viewer-icon-button:hover{background:#354b52;border-color:#8ca1a7}
.gallery-viewer-slideshow-toggle{min-height:40px;min-width:106px;padding:7px 15px;border-radius:10px;font-size:12px;font-weight:750;box-shadow:none}
.gallery-viewer-display-options{align-self:stretch;flex:0 0 auto;max-width:100%;margin:0 12px 12px}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{min-height:0;height:100dvh}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual{height:calc(100dvh - 64px);min-height:300px}
html[data-theme="dark"] .gallery-viewer-icon-button{background:#202d32;border-color:#51656c;color:#e0eaec}
html[data-theme="dark"] .gallery-viewer-icon-button:hover{background:#2c3c42;border-color:#82949a}
@media(max-width:1024px){.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{height:100dvh}}
@media(max-width:650px){
  .gallery-photo-viewer-shell{overflow:auto}
  .gallery-photo-viewer-media{min-height:0;max-height:none;overflow:visible}
  .gallery-photo-viewer-visual{height:min(42dvh,420px);min-height:220px}
  .gallery-viewer-mode-actions{min-height:54px;gap:9px;padding:7px 12px}
  .gallery-viewer-icon-button{flex-basis:38px;width:38px;height:38px}
  .gallery-viewer-icon-button svg{width:19px;height:19px}
  .gallery-viewer-slideshow-toggle{min-height:38px;min-width:100px;padding:6px 13px}
  .gallery-viewer-display-options{max-height:44dvh;overflow:auto;margin:0 10px 10px}
  .gallery-photo-viewer-side{max-height:none}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{overflow:auto}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{height:auto;min-height:0;max-height:none}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual{height:52dvh;min-height:240px}
}

/* Active slideshow is an edge-to-edge image surface with only compact playback controls. */
.gallery-photo-viewer.is-slideshow-active{padding:0;background:#081014;backdrop-filter:none}
.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-shell{position:relative;display:block;width:100vw;height:100vh;max-width:none;max-height:none;overflow:hidden;border:0;border-radius:0;background:#081014;box-shadow:none}
@supports(height:100dvh){.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-shell{height:100dvh}}
.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-side,.gallery-photo-viewer.is-slideshow-active .gallery-viewer-mode-actions,.gallery-photo-viewer.is-slideshow-active .gallery-viewer-display-options,.gallery-photo-viewer.is-slideshow-active .gallery-viewer-arrow{display:none!important}
.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-media{position:absolute;inset:0;display:grid;width:100%;height:100%;min-height:0;max-height:none;place-items:center;overflow:hidden}
.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-visual{position:absolute;inset:0;width:100%;height:100%;min-height:0;flex:none}
.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:none;object-fit:cover}
.gallery-photo-viewer.is-slideshow-active .gallery-photo-viewer-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:60}
.gallery-viewer-playback-control{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:61;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border:1px solid #ffffffb8;border-radius:50%;background:#f8fcf2e8;color:#17363e;box-shadow:0 3px 14px #0007;font-size:14px;font-weight:900;line-height:1}
.gallery-viewer-playback-control:hover{background:#fff;transform:scale(1.04)}
.gallery-viewer-playback-control[hidden]{display:none!important}
@media(max-width:650px){.gallery-viewer-playback-control{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));width:36px;height:36px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.gallery-viewer-playback-control{transition:none}}


/* Fullscreen manual photo viewing with a discreet bottom caption and inline photo-card social controls. */
.gallery-photo-viewer-shell{display:block;grid-template-columns:minmax(0,1fr);width:min(1000px,100%);max-height:min(900px,calc(100dvh - 32px));background:#081014}
.gallery-photo-viewer-media{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;min-height:0;max-height:calc(100dvh - 32px);overflow:hidden;background:#081014}
.gallery-photo-viewer-visual{position:relative;flex:1 1 auto;width:100%;height:min(72dvh,760px);min-height:220px;place-items:center}
.gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:none;object-fit:contain}
.gallery-viewer-caption{position:absolute;z-index:3;right:56px;bottom:12px;left:56px;width:max-content;max-width:calc(100% - 112px);margin:0 auto;padding:4px 10px;border:1px solid #ffffff28;border-radius:999px;background:#07111480;color:#ffffffd9;text-align:center;text-shadow:0 1px 5px #000b;font-size:11px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.gallery-viewer-mode-actions{flex:0 0 auto;min-height:58px}
.gallery-viewer-display-options{z-index:8;max-height:calc(100dvh - 100px);overflow:auto;border-color:#ffffff35;background:#152329f2;box-shadow:0 10px 36px #0008}
.gallery-photo-viewer.is-fullscreen{padding:0;background:#081014;backdrop-filter:none}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{position:relative;display:block;width:100vw;height:100dvh;max-width:none;max-height:none;overflow:hidden;border:0;border-radius:0;background:#081014;box-shadow:none}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{width:100%;height:100dvh;min-height:0;max-height:none;overflow:hidden}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual{flex:1 1 auto;width:100%;height:auto;min-height:0}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:none;object-fit:contain}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-side{display:none!important}
.gallery-photo-viewer.is-fullscreen .gallery-viewer-display-options{position:absolute;right:12px;bottom:68px;left:12px;width:min(560px,calc(100% - 24px));margin:0 auto;background:#152329f2}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:70}
.gallery-photo-viewer.is-fullscreen .gallery-viewer-arrow{z-index:5}
.gallery-photo-social{display:grid;gap:6px;padding:7px 8px 9px;border-top:1px solid var(--line);background:var(--white)}
.gallery-inline-reactions{display:flex;align-items:center;justify-content:center;gap:6px}
.gallery-inline-reaction{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;padding:0;border:1px solid #e4ebed;border-radius:50%;background:#f8fbfb;color:#53666c;font-size:15px;line-height:1;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.gallery-inline-reaction:hover{transform:translateY(-1px) scale(1.06)}
.gallery-inline-reaction[aria-pressed="true"]{border-color:#75c4d2;background:#e7f6f8;box-shadow:0 0 0 2px #d8f0f3}
.gallery-inline-comment-form{display:flex;gap:5px;min-width:0}
.gallery-inline-comment-form input{min-width:0;flex:1;height:31px;padding:5px 8px;border:1px solid #e0e8ea;border-radius:999px;background:#f8fbfb;color:var(--ink);font-size:9px}
.gallery-inline-comment-submit{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;padding:0;border:1px solid #d7e9ed;border-radius:50%;background:#eaf7f9;color:var(--teal-deep);font-size:14px;font-weight:800}
.gallery-inline-comment-list{gap:5px;max-height:100px;overflow:auto;margin:0}
.gallery-inline-comment-list:empty,.gallery-inline-comment-status:empty{display:none}
.gallery-inline-comment-item{padding:6px 8px;font-size:9px}
.gallery-inline-comment-status{margin:0;color:#2a8062;font-size:8px;line-height:1.35}
html[data-theme="dark"] .gallery-photo-social{background:#1b252a;border-color:#33434a}
html[data-theme="dark"] .gallery-inline-reaction{background:#253239;border-color:#3b4b51;color:#e0eaec}
html[data-theme="dark"] .gallery-inline-reaction[aria-pressed="true"]{background:#203a41;border-color:#5ac1d3}
html[data-theme="dark"] .gallery-inline-comment-form input{background:#202d32;border-color:#3b4b51;color:#e0eaec}
html[data-theme="dark"] .gallery-inline-comment-submit{background:#203a41;border-color:#36545b;color:#a7e0e9}
@media(max-width:650px){
  .gallery-photo-viewer-shell{width:100%;max-height:calc(100dvh - 16px)}
  .gallery-photo-viewer-media{max-height:calc(100dvh - 16px)}
  .gallery-photo-viewer-visual{height:min(65dvh,640px);min-height:220px}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{width:100vw;height:100dvh;max-height:none;grid-template-columns:minmax(0,1fr)}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{width:100%;height:100dvh;min-height:0;max-height:none}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual{height:auto;min-height:0}
  .gallery-photo-viewer.is-fullscreen .gallery-viewer-mode-actions{min-height:54px;padding-bottom:max(7px,env(safe-area-inset-bottom))}
  .gallery-viewer-caption{bottom:10px;max-width:calc(100% - 86px);font-size:10px}
  .gallery-inline-reactions{gap:5px}
  .gallery-inline-reaction{flex-basis:27px;width:27px;height:27px;font-size:14px}
  .gallery-photo-social{gap:5px;padding:6px 6px 8px}
  .gallery-inline-comment-form input{height:29px;font-size:9px}
  .gallery-inline-comment-submit{flex-basis:29px;width:29px;height:29px}
}
@media(prefers-reduced-motion:reduce){.gallery-inline-reaction{transition:none}}

.gallery-photo-viewer.is-fullscreen .gallery-viewer-display-options h3,.gallery-photo-viewer.is-fullscreen .gallery-viewer-display-options .gallery-field,.gallery-photo-viewer.is-fullscreen .gallery-viewer-multiple-choice legend{color:#e0eaec}
.gallery-photo-viewer.is-fullscreen .gallery-social-demo-note{color:#b6c6ca}

/* Social actions use familiar labelled reaction buttons; submitted comments appear as local profile-and-bubble rows. */
.gallery-inline-reaction{display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:4px;min-width:0;width:auto;height:auto;min-height:29px;padding:4px 5px;border:1px solid transparent;border-radius:8px;background:#f0f2f5;color:#606770;font-size:10px}
.gallery-inline-reaction>span[aria-hidden="true"]{font-size:13px;line-height:1}
.gallery-inline-reaction-label{overflow:hidden;max-width:100%;color:inherit;font-size:8px;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.gallery-inline-reaction:hover{transform:none;background:#e4e6eb}
.gallery-inline-reaction[aria-pressed="true"]{border-color:#c7e0ff;background:#e7f3ff;color:#1877f2;box-shadow:none}
.gallery-inline-comment-item{display:flex;align-items:flex-start;gap:6px;padding:0;border-radius:0;background:transparent;color:var(--ink)}
.gallery-inline-comment-avatar{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:#dceef3;color:#26708a;font-size:7px;font-weight:800;line-height:1}
.gallery-inline-comment-body{display:grid;flex:1;gap:2px;min-width:0}
.gallery-inline-comment-item .gallery-inline-comment-body>strong{color:#65676b;font-size:8px;line-height:1.2}
.gallery-inline-comment-bubble{width:fit-content;max-width:100%;padding:6px 9px;border-radius:0 12px 12px 12px;background:#f0f2f5;color:#050505;font-size:9px;line-height:1.35;overflow-wrap:anywhere}
html[data-theme="dark"] .gallery-inline-reaction{background:#253239;border-color:transparent;color:#c4d0d4}
html[data-theme="dark"] .gallery-inline-reaction:hover{background:#34464d}
html[data-theme="dark"] .gallery-inline-reaction[aria-pressed="true"]{background:#203a41;border-color:#416b8c;color:#8ab4f8}
html[data-theme="dark"] .gallery-inline-comment-avatar{background:#263f48;color:#a7e0e9}
html[data-theme="dark"] .gallery-inline-comment-bubble{background:#253239;color:#e0eaec}
html[data-theme="dark"] .gallery-inline-comment-item .gallery-inline-comment-body>strong{color:#c4d0d4}
@media(max-width:650px){.gallery-inline-reactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.gallery-inline-reaction{min-height:27px;padding:4px 5px}.gallery-inline-reaction-label{font-size:8px}}

/* One-icon reaction control with a horizontal drawer that slides out to the right. */
.gallery-card{overflow:visible}
.gallery-photo-preview-button{border-radius:11px 11px 0 0}
.gallery-reaction-picker{position:relative;z-index:1;display:flex;align-items:center;width:max-content;max-width:100%;min-height:40px;gap:7px}
.gallery-reaction-picker.is-expanded{z-index:30}
.gallery-photo-reaction-control{margin:4px 9px 9px}
.gallery-reaction-trigger{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #dfe8ea;border-radius:50%;background:#f5f8f9;color:#29434b;box-shadow:0 2px 8px #17364112}
.gallery-reaction-trigger-icon{font-size:21px;line-height:1}
.gallery-reaction-drawer{position:absolute;top:50%;left:calc(100% + 7px);display:flex;align-items:center;gap:3px;width:max-content;max-width:0;overflow:hidden;padding:5px 0;border:1px solid transparent;border-radius:999px;background:#fff;box-shadow:0 5px 18px #172e3a2b;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-10px,-50%);transition:max-width .24s ease,padding .24s ease,opacity .18s ease,transform .24s ease,border-color .18s ease,visibility 0s linear .24s;z-index:40}
.gallery-reaction-picker.is-expanded .gallery-reaction-drawer{max-width:196px;padding:5px;border-color:#e2e9eb;opacity:1;visibility:visible;pointer-events:auto;transform:translate(0,-50%);transition:max-width .24s ease,padding .24s ease,opacity .18s ease,transform .24s ease,border-color .18s ease,visibility 0s}
.gallery-reaction-picker.opens-left .gallery-reaction-drawer{right:calc(100% + 7px);left:auto;transform:translate(10px,-50%)}
.gallery-reaction-picker.opens-left.is-expanded .gallery-reaction-drawer{transform:translate(0,-50%)}
.gallery-reaction-choice{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#253238;font-size:20px;line-height:1;transition:transform .16s ease,background .16s ease}
.gallery-reaction-choice:hover,.gallery-reaction-choice:focus-visible{background:#edf5f7;transform:scale(1.12)}
.gallery-reaction-choice[aria-pressed="true"]{background:#e7f3ff;box-shadow:inset 0 0 0 1px #b7d6fb}
.gallery-photo-viewer-shell{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);width:min(1260px,100%);height:min(820px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);background:#fff}
.gallery-photo-viewer-media{display:flex;flex-direction:column;min-height:0;height:100%;max-height:none;overflow:auto}
.gallery-photo-viewer-visual{position:relative;flex:1 1 auto;width:100%;height:auto;min-height:260px;place-items:center}
.gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:none;object-fit:contain;cursor:zoom-in}
.gallery-photo-viewer-side{display:flex;flex-direction:column;gap:9px;min-height:0;max-height:100%;overflow:auto;padding:50px 20px 18px;background:#fff}
.gallery-photo-viewer-title{margin:0;color:#25363c;font-size:19px;line-height:1.35;overflow-wrap:anywhere}
.gallery-viewer-position{margin:-7px 0 2px;color:#7d8c92;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}
.gallery-photo-viewer-hint{margin:-6px 0 2px;color:#829197;font-size:9px;line-height:1.4}
.gallery-viewer-section-title{margin:4px 0 0;color:#263940;font-size:13px;line-height:1.3}
.gallery-viewer-reaction-slot{min-height:42px}
.gallery-viewer-reaction-slot .gallery-reaction-picker{margin:0}
.gallery-comment-demo-note{margin:-6px 0 0;color:#829197;font-size:10px;line-height:1.45}
.gallery-viewer-comment-list{flex:1 1 auto;min-height:70px;align-content:start;margin:2px 0 0;overflow:auto}
.gallery-viewer-comment-form{flex:0 0 auto}
.gallery-viewer-comment-form button{white-space:nowrap}
.gallery-viewer-comment-status{margin:0}
.gallery-photo-viewer-media .gallery-viewer-display-options h3,.gallery-photo-viewer-media .gallery-viewer-display-options .gallery-field,.gallery-photo-viewer-media .gallery-viewer-multiple-choice legend,.gallery-photo-viewer-media .gallery-viewer-transition-item{color:#e0eaec}
.gallery-photo-viewer-media .gallery-viewer-display-options .gallery-social-demo-note{color:#b6c6ca}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{display:block;width:100vw;height:100dvh;max-width:none;max-height:none;overflow:hidden;border:0;border-radius:0;background:#081014}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{width:100%;height:100dvh;min-height:0;max-height:none;overflow:hidden}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-side,.gallery-photo-viewer.is-fullscreen .gallery-viewer-mode-actions,.gallery-photo-viewer.is-fullscreen .gallery-viewer-display-options{display:none!important}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual{flex:1 1 auto;width:100%;height:100%;min-height:0}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual>img{width:100%;height:100%;max-height:none;object-fit:contain;cursor:zoom-out}
.gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:70}
.gallery-photo-viewer.is-fullscreen .gallery-viewer-caption{bottom:max(16px,env(safe-area-inset-bottom))}
html[data-theme="dark"] .gallery-photo-viewer-title,html[data-theme="dark"] .gallery-viewer-section-title{color:#e0eaec}
html[data-theme="dark"] .gallery-photo-viewer-side{background:#1b252a}
html[data-theme="dark"] .gallery-viewer-position,html[data-theme="dark"] .gallery-comment-demo-note,html[data-theme="dark"] .gallery-photo-viewer-hint{color:#aab9be}
html[data-theme="dark"] .gallery-reaction-trigger{background:#253239;border-color:#3b4b51;color:#e0eaec}
html[data-theme="dark"] .gallery-reaction-drawer{background:#202d32;border-color:#3b4b51}
html[data-theme="dark"] .gallery-reaction-choice{color:#e0eaec}
html[data-theme="dark"] .gallery-reaction-choice:hover,html[data-theme="dark"] .gallery-reaction-choice:focus-visible{background:#34464d}
html[data-theme="dark"] .gallery-reaction-choice[aria-pressed="true"]{background:#203a41;box-shadow:inset 0 0 0 1px #416b8c}
@media(min-width:651px) and (max-width:950px){.gallery-photo-viewer-shell{grid-template-columns:minmax(0,1.08fr) minmax(270px,.92fr);width:min(100%,900px)}}
@media(max-width:650px){
  .gallery-photo-viewer{align-items:stretch;padding:0}
  .gallery-photo-viewer-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,43dvh) minmax(0,1fr);width:100vw;height:100dvh;max-height:none;border:0;border-radius:0;overflow:hidden}
  .gallery-photo-viewer-media{height:100%;min-height:0;max-height:none;overflow:hidden}
  .gallery-photo-viewer-media.has-slideshow-options{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  .gallery-photo-viewer-visual{flex:1 1 auto;height:auto;min-height:0}
  .gallery-photo-viewer-side{gap:7px;max-height:none;overflow:auto;padding:16px 14px max(14px,env(safe-area-inset-bottom))}
  .gallery-photo-viewer-title{font-size:16px}
  .gallery-viewer-position{margin:-5px 0 0}
  .gallery-photo-viewer-hint{margin:-5px 0 0}
  .gallery-viewer-section-title{margin-top:3px}
  .gallery-viewer-comment-list{min-height:45px}
  .gallery-photo-viewer-close{top:max(9px,env(safe-area-inset-top));right:max(9px,env(safe-area-inset-right));width:38px;height:38px}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100dvh}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-media{height:100dvh}
  .gallery-photo-viewer.is-fullscreen .gallery-photo-viewer-visual{height:100%;min-height:0}
  .gallery-photo-reaction-control{margin:3px 7px 7px}
  .gallery-reaction-trigger{flex-basis:34px;width:34px;height:34px}
  .gallery-reaction-trigger-icon{font-size:19px}
  .gallery-reaction-choice{flex-basis:33px;width:33px;height:33px;font-size:19px}
}
@media(prefers-reduced-motion:reduce){.gallery-reaction-drawer,.gallery-reaction-choice{transition:none!important}}


/* Slideshow settings open as a compact top-anchored popover, not a separate panel. */
.gallery-viewer-mode-actions{position:absolute;top:max(10px,env(safe-area-inset-top));right:58px;z-index:50;display:flex;align-items:center;justify-content:center;gap:8px;min-height:0;margin:0;padding:0;border:0;background:transparent}
.gallery-viewer-display-options{position:absolute;top:62px;right:12px;left:auto;z-index:55;display:grid;align-self:auto;gap:8px;width:min(360px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 84px);overflow:auto;margin:0;padding:11px;border:1px solid #ffffff3d;border-radius:12px;background:#152329f5;box-shadow:0 12px 36px #0009;overscroll-behavior:contain}
.gallery-viewer-display-options h3,.gallery-viewer-display-options .gallery-field,.gallery-viewer-multiple-choice legend,.gallery-viewer-transition-item{color:#e0eaec}
.gallery-viewer-display-options .gallery-social-demo-note{margin:0;color:#b6c6ca;font-size:9px;line-height:1.4}
.gallery-viewer-display-options select,.gallery-viewer-display-options input[type=number]{min-height:34px;padding:6px 8px;background:#202d32;border-color:#52646a;color:#f1f6f7}
.gallery-viewer-multiple-choice{padding:7px;background:#1b292e;border-color:#52646a}
.gallery-viewer-transition-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:132px;overflow:auto}
.gallery-viewer-transition-item{padding:5px 6px;background:#253239;font-size:9px}
.gallery-viewer-start{position:sticky;bottom:0;z-index:1;min-height:38px;border:1px solid #55b7c8;box-shadow:0 0 0 4px #152329f5}
.gallery-viewer-slideshow-status{color:#ffb5a5}
.gallery-photo-viewer.is-slideshow-active .gallery-viewer-mode-actions{display:none!important}
.gallery-photo-viewer.is-fullscreen .gallery-viewer-mode-actions{top:max(10px,env(safe-area-inset-top));right:58px;left:auto;width:auto;height:auto;min-height:0;padding:0;background:transparent}
.gallery-photo-viewer.is-fullscreen .gallery-viewer-display-options{display:none!important}
@media(max-width:650px){
  .gallery-viewer-mode-actions{top:max(9px,env(safe-area-inset-top));right:54px;gap:7px}
  .gallery-viewer-display-options{top:58px;right:8px;width:min(350px,calc(100% - 16px));max-width:calc(100% - 16px);max-height:calc(100dvh - 76px);padding:9px}
  .gallery-viewer-transition-list{max-height:118px}
  .gallery-photo-viewer.is-fullscreen .gallery-viewer-mode-actions{right:54px;left:auto}
}
/* Keep the multiple-choice popover compact enough that Start stays visible on short mobile screens. */
.gallery-viewer-display-options .gallery-social-demo-note{display:none!important}
.gallery-viewer-transition-list{max-height:94px}
@media(max-width:650px){.gallery-viewer-transition-list{max-height:82px}.gallery-viewer-display-options{max-height:calc(100dvh - 68px)}}
@media(max-width:650px) and (max-height:900px){
  .gallery-viewer-display-options{top:40px;gap:5px;padding:8px}
  .gallery-viewer-display-options select,.gallery-viewer-display-options input[type=number]{min-height:30px;padding:4px 7px}
  .gallery-viewer-multiple-choice{padding:5px}
  .gallery-viewer-transition-list{max-height:52px}
  .gallery-viewer-transition-item{padding:3px 5px;font-size:8px}
}
@media(max-width:650px) and (max-height:760px){
  .gallery-viewer-display-options{top:34px;gap:4px;padding:6px}
  .gallery-viewer-transition-list{max-height:34px}
  .gallery-viewer-multiple-choice{padding:4px}
}
