/* task52: simple site for visitors who are not used to the internet (5 Dec 2026) */

/* Photo viewer: the photo fills the screen, dark background, big buttons */
.gallery-dialog,.eh52-viewer{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;inset:0;padding:0;border:0;border-radius:0;background:#0f1713;color:#fff;overflow:hidden}
.gallery-dialog[open],.eh52-viewer[open]{display:flex;flex-direction:column}
.gallery-dialog::backdrop,.eh52-viewer::backdrop{background:#0f1713}
.gallery-dialog .gallery-toolbar,.eh52-viewer .gallery-toolbar{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px 6px 16px;color:#fff}
.gallery-dialog .gallery-toolbar h2,.eh52-viewer .gallery-toolbar h2{color:#fff;font-size:.95rem;font-weight:600;line-height:1.35;margin:0}
.gallery-dialog .gallery-toolbar p,.eh52-viewer .gallery-toolbar p{color:#c9d3cd;font-size:.85rem;margin:2px 0 0}
.gallery-dialog .icon-button,.eh52-viewer .icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:1.35rem;line-height:1;cursor:pointer}
.gallery-dialog .gallery-stage,.eh52-viewer .gallery-stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:stretch;padding:0;gap:0;touch-action:pan-y}
.gallery-dialog .gallery-stage figure,.eh52-viewer .gallery-stage figure{flex:1;min-width:0;min-height:0;margin:0;display:flex;flex-direction:column;text-align:center}
.gallery-dialog .gallery-stage img,.gallery-dialog .gallery-stage video,.eh52-viewer .gallery-stage img{flex:1 1 auto;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:transparent}
.gallery-dialog .gallery-stage figcaption,.eh52-viewer .gallery-stage figcaption{flex:none;color:#dfe6e1;font-size:.85rem;line-height:1.45;padding:8px 16px 4px;max-width:900px;margin:0 auto}
.gallery-dialog .gallery-arrow,.eh52-viewer .gallery-arrow{position:absolute;top:calc(50% - 40px);z-index:2;width:52px;height:52px;background:rgba(0,0,0,.5);font-size:1.4rem}
.gallery-dialog #gallery-prev,.eh52-viewer .eh52-prev{left:8px}
.gallery-dialog #gallery-next,.eh52-viewer .eh52-next{right:8px}
.gallery-dialog .gallery-arrow[hidden],.eh52-viewer .gallery-arrow[hidden]{display:none}
.gallery-dialog .gallery-thumbs,.eh52-viewer .gallery-thumbs{flex:none;display:flex;gap:8px;overflow-x:auto;padding:8px 12px 14px;scrollbar-width:none}
.gallery-dialog .gallery-thumbs button,.eh52-viewer .gallery-thumbs button{width:72px;height:54px;flex-shrink:0;padding:0;border:3px solid transparent;border-radius:4px;background:#24302a;overflow:hidden;opacity:.75}
.gallery-dialog .gallery-thumbs button[aria-pressed=true],.eh52-viewer .gallery-thumbs button[aria-pressed=true]{border-color:#e3b951;opacity:1}
.gallery-dialog .gallery-thumbs img,.eh52-viewer .gallery-thumbs img{width:100%;height:100%;object-fit:cover}
.gallery-dialog[data-eh52-single] .gallery-thumbs,.eh52-viewer[data-eh52-single] .gallery-thumbs{display:none}
.eh52-hint{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:2;padding:6px 12px;border-radius:20px;background:rgba(0,0,0,.55);color:#fff;font-size:.8rem;pointer-events:none;transition:opacity .4s}
@media(min-width:900px){.gallery-dialog .gallery-thumbs button,.eh52-viewer .gallery-thumbs button{width:96px;height:72px}.gallery-dialog #gallery-prev,.eh52-viewer .eh52-prev{left:20px}.gallery-dialog #gallery-next,.eh52-viewer .eh52-next{right:20px}}

/* Every photo on a product page shows it can be opened */
main [data-gallery] img{cursor:zoom-in}

/* Long text blocks fold into one line each; a tap opens them */
.section.eh52-fold{padding-top:0;padding-bottom:0;background:transparent}
.eh52-fold-btn{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;margin:0;padding:22px 0;border:0;border-top:1px solid #d6ddd6;background:none;color:inherit;font:inherit;font-size:1.15rem;font-weight:600;line-height:1.35;text-align:left;cursor:pointer}
.eh52-fold-btn::after{content:'+';flex:none;font-size:1.7rem;font-weight:400;line-height:1}
.eh52-fold.is-open .eh52-fold-btn::after{content:'\2013'}
.eh52-fold-body{padding-bottom:36px}
.eh52-fold .eh52-hidehead{display:none!important}
.eh52-fold+.eh52-fold .eh52-fold-btn{border-top-color:#e3e8e3}

/* Configurator: every step is one line showing the current choice; tap to change */
#configure fieldset.eh52-acc>legend{display:flex;align-items:center;gap:10px;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none}
#configure fieldset.eh52-acc>legend .eh52-cur{margin-left:auto;font-size:.82rem;font-weight:500;color:#4c6656;text-align:right;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#configure fieldset.eh52-acc>legend::after{content:'+';flex:none;font-size:1.5rem;font-weight:400;line-height:1;margin-left:4px}
#configure fieldset.eh52-acc.is-open>legend::after{content:'\2013'}
#configure fieldset.eh52-acc:not(.is-open)>:not(legend){display:none!important}
#configure fieldset.eh52-acc:not(.is-open){padding-bottom:6px}

.eh52-crumbs{padding-top:18px;padding-bottom:0}
