/* Design Inforegister-brandijuhtimine-karussell (Codex v46), imported by tools/import-design.py and changed in the theme on 27.10.2026:
   dots and pause button under the image, crossfade between images (see brand-gallery.js). */
/* Real EVUL profile captures. Straight view; no perspective or image transforms. */
body[data-page="brand"] .hero-grid { grid-template-columns:minmax(0,1fr) minmax(0,480px); gap:clamp(36px,5vw,70px); }
.brand-gallery-examples { width:100%; max-width:480px; min-width:0; justify-self:end; color:#d5e7ef; }
.brand-gallery-examples button,.brand-gallery-viewer button { font-family:var(--heading); cursor:pointer; }
.brand-gallery-examples :is(button,a):focus-visible,.brand-gallery-viewer :is(button,a,[tabindex]):focus-visible { outline:3px solid #83e1f4; outline-offset:4px; }
.brand-gallery-example-window { position:relative; display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; width:100%; }
.brand-gallery-example-open { position:relative; touch-action:pan-y; display:block; width:100%; aspect-ratio:1600 / 1906; padding:0; border:1px solid #d5e7ef66; border-radius:8px; background:#102d48; overflow:hidden; box-shadow:0 14px 32px #00000026; cursor:pointer !important; text-align:left; }
.brand-gallery-example-open img { display:block; width:100%; max-width:none; height:100%; object-fit:contain; object-position:center top; opacity:1; transition:opacity 125ms ease; }
/* The previous image fades out on top of the next one, so no background shows in between. */
.brand-gallery-example-open img.brand-gallery-fading { position:absolute; inset:0; transition:opacity 250ms ease; }
.brand-gallery-example-open img.brand-gallery-faded { opacity:0; }
/* Under the image: the dots centred, pause/play small and quiet at the image's right edge
   (the arrows take 44px on each side). */
.brand-gallery-dots { position:relative; display:flex; align-items:center; justify-content:center; gap:2px; margin-top:12px; padding-inline:44px; }
.brand-gallery-play { position:absolute; top:50%; right:44px; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:transparent; color:#d5e7ef99; transform:translateY(-50%); }
.brand-gallery-play:hover { background:#ffffff12; color:#fff; }
.brand-gallery-play svg { width:16px; height:16px; }
.brand-gallery-dot { position:relative; width:30px; height:30px; padding:0; border:0; background:transparent; }
.brand-gallery-dot::before { content:""; position:absolute; top:50%; left:50%; width:10px; height:10px; border-radius:5px; background:#d5e7ef66; transform:translate(-50%,-50%); transition:width .2s ease, background-color .2s ease; }
.brand-gallery-dot:hover::before { background:#d5e7efb3; }
.brand-gallery-dot[aria-current="true"]::before { width:24px; background:#83e1f4; }
.brand-gallery-example-controls { display:flex; align-items:center; gap:6px; }
.brand-gallery-example-arrow { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; flex-shrink:0; border:0; border-radius:4px; background:transparent; color:#d5e7ef; }
.brand-gallery-example-arrow:hover { background:#ffffff08; color:#fff; }
.brand-gallery-example-count { min-width:44px; text-align:center; white-space:nowrap; font:400 14px/1.5 var(--heading); font-variant-numeric:tabular-nums; color:#d5e7ef; }
.brand-gallery-example-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.brand-gallery-example-error { position:absolute; inset:25% 16px auto; text-align:center; color:#fff; font-size:15px; pointer-events:none; }
.brand-gallery-examples svg,.brand-gallery-viewer svg { width:20px; height:20px; display:block; fill:currentColor; flex-shrink:0; }
.brand-gallery-examples [hidden],.brand-gallery-viewer [hidden] { display:none !important; }
/* A native modal supplies background inertness and Escape support. */
html[data-visual-style="reference"] dialog.brand-gallery-viewer { width:min(1160px,calc(100% - 40px)); max-width:none; height:min(940px,calc(100dvh - 40px)); max-height:none; margin:auto; padding:0; overflow:hidden; border:1px solid #83e1f440; border-radius:8px; background:#0b2339; color:#fff; box-shadow:0 20px 80px #0006; }
dialog.brand-gallery-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.brand-gallery-viewer::backdrop { background:#030e19d9; }
.brand-gallery-viewer-head { display:flex; align-items:center; gap:16px; padding:16px 20px; border-bottom:1px solid #83e1f430; background:#0b2339; }
.brand-gallery-viewer .brand-gallery-viewer-title { flex:1; min-width:0; margin:0; font:500 16px/1.5 var(--heading); color:#fff; overflow-wrap:anywhere; }
.brand-gallery-viewer-head .brand-gallery-example-controls { flex-shrink:0; }
.brand-gallery-viewer-close { display:inline-flex; justify-content:center; align-items:center; flex-shrink:0; width:44px; height:44px; padding:0; border:1px solid #83e1f44d; border-radius:6px; color:#fff; background:transparent; }
.brand-gallery-viewer-close:hover { background:#83e1f426; }
.brand-gallery-viewer-scroll { overflow:auto; overscroll-behavior:contain; min-height:0; background:#102d48; scrollbar-gutter:stable; }
.brand-gallery-viewer-scroll img { display:block; width:100%; height:auto; max-width:none; margin:0; }
.brand-gallery-viewer-state { padding:24px; text-align:center; font-size:16px; color:#d5e7ef; }
.brand-gallery-viewer-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 24px; padding:12px 20px; border-top:1px solid #83e1f430; background:#0b2339; }
.brand-gallery-viewer-foot p { margin:0; font-size:13px; color:#bdd4e5; }
.brand-gallery-viewer-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:#83e1f4; font:500 14px/1.5 var(--heading); text-underline-offset:4px; }
.brand-gallery-viewer-link:hover { color:#fff; text-decoration:underline; }
@media(max-width:1000px) {
 body[data-page="brand"] .hero-grid { grid-template-columns:minmax(0,1fr); gap:36px; }
 .brand-gallery-examples { justify-self:start; }
}
@media(max-width:600px) {
 .brand-gallery-examples { max-width:none; }

 .brand-gallery-example-controls { gap:2px; }
 html[data-visual-style="reference"] dialog.brand-gallery-viewer { width:calc(100% - 16px); height:calc(100dvh - 16px); }
 .brand-gallery-viewer-head { flex-wrap:wrap; gap:8px; padding:10px 12px; }
 .brand-gallery-viewer .brand-gallery-viewer-title { flex-basis:calc(100% - 60px); font-size:15px; }
 .brand-gallery-viewer-head .brand-gallery-example-controls { order:3; width:100%; justify-content:center; }
 .brand-gallery-viewer-foot { padding:8px 12px; gap:0; }
 .brand-gallery-viewer-foot p { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .brand-gallery-example-open img,.brand-gallery-dot::before { transition:none; } }
