/* Homepage image showcase. Image files and their proportions remain intact. */
#gallery-multiview.mv-gallery.mv-compact-card{min-width:0;align-self:start;margin:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
#gallery-multiview.mv-compact-card::before{display:none}
#gallery-multiview .mv-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 auto 12px;max-width:580px}
#gallery-multiview.mv-compact-card .mv-heading .mv-title{margin:0;padding:0;color:var(--soft);font-size:12px;line-height:1.5;font-weight:500;letter-spacing:0}
#gallery-multiview .mv-heading-meta{display:flex;align-items:center;gap:12px;flex:none}
#gallery-multiview .mv-sample{color:var(--muted);font-size:10px;line-height:1.5}
#gallery-multiview .mv-figure{max-width:580px;margin:0 auto}
#gallery-multiview .mv-stage{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--text);cursor:zoom-in;isolation:isolate}
.visual-refinement #gallery-multiview.mv-gallery .mv-stage .mv-photo{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain;opacity:0;pointer-events:none;transform:none;transition:opacity .35s ease!important;transition-duration:.35s!important}
.visual-refinement #gallery-multiview.mv-gallery .mv-stage .mv-photo.is-active{opacity:1}
.visual-refinement #gallery-multiview.mv-gallery.mv-reduced-motion .mv-stage .mv-photo{transition:none!important;transition-duration:0s!important}
#gallery-multiview .mv-expand{position:absolute;z-index:2;right:10px;bottom:10px;display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(12,14,15,.6);color:#fff;font:18px/1 sans-serif}
#gallery-multiview .mv-count{color:var(--soft);font:11px/1.5 ui-monospace,monospace;letter-spacing:.04em}
#gallery-multiview .mv-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:580px;margin:10px auto 0}
#gallery-multiview .mv-thumb{position:relative;display:block;min-width:0;height:48px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:4px;background:transparent;color:#fff;cursor:pointer;text-align:start;font:inherit}
#gallery-multiview .mv-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
#gallery-multiview .mv-thumb span{position:absolute;inset:auto auto 3px 4px;max-width:calc(100% - 8px);padding:2px 5px;border-radius:3px;background:rgba(10,12,14,.76);color:#fff;font-size:9px;line-height:1.3;white-space:nowrap}
#gallery-multiview .mv-thumb[aria-pressed="true"]{border-color:var(--accent);color:var(--text);box-shadow:0 0 0 1px var(--accent)}
#gallery-multiview .mv-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;max-width:580px;margin:10px auto 0}
#gallery-multiview .mv-navigation{display:flex;gap:6px}
#gallery-multiview .mv-play{margin-inline-start:auto}
#gallery-multiview .mv-button,.mv-dialog .mv-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;margin:0;padding:8px 13px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--soft);font:inherit;font-size:12px;line-height:1.4;cursor:pointer;appearance:none}
#gallery-multiview.mv-compact-card .mv-button{gap:7px;min-height:36px;padding:6px 10px;font-size:10px}
#gallery-multiview .mv-button:hover,.mv-dialog .mv-button:hover{background:var(--raised);color:var(--text)}
#gallery-multiview .mv-button:disabled{opacity:.45;cursor:default}
#gallery-multiview .mv-button>span[aria-hidden]{font-size:20px;line-height:1}
#gallery-multiview .mv-button .mv-play-symbol{font-size:12px}
#gallery-multiview .mv-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#gallery-multiview button:focus-visible,.mv-dialog button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#gallery-multiview [hidden],.mv-dialog [hidden],dialog.mv-dialog:not([open]){display:none!important}
#gallery-multiview .mv-error,.mv-dialog .mv-error{margin:0;padding:30px 18px;background:var(--raised);color:var(--soft);font-size:13px;line-height:1.6;text-align:center}
#gallery-multiview .mv-main-error{position:absolute;inset:0;z-index:3;display:grid;place-content:center}
dialog.mv-dialog{width:min(1240px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font:inherit;box-shadow:0 24px 80px #0006}
dialog.mv-dialog::backdrop{background:rgba(0,0,0,.72)}
.mv-dialog .mv-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px}
.mv-dialog .mv-dialog-title{margin:0;min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.5;font-weight:500}
.mv-dialog .mv-close{flex:none}
.mv-dialog .mv-dialog-stage{display:grid;place-items:center;height:min(68dvh,700px);max-height:calc(100dvh - 202px);min-height:90px;overflow:hidden;background:var(--bg);touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.mv-dialog .mv-dialog-photo{display:block;width:100%;height:100%;min-height:0;object-fit:contain;pointer-events:none}
.mv-dialog .mv-dialog-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px 12px;padding:12px 18px 0;direction:ltr}
.mv-dialog .mv-dialog-choices{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
.mv-dialog .mv-dialog-choices .mv-button{padding:6px 12px;font-size:11px}
.mv-dialog .mv-dialog-choices .mv-button[aria-pressed="true"]{border-color:var(--accent);background:var(--raised);color:var(--text)}
.mv-dialog .mv-arrow{padding:0;font-size:25px}
.mv-dialog .mv-dialog-count{grid-column:1/-1;margin:5px 0 0;color:var(--muted);font:11px/1.6 ui-monospace,monospace;text-align:center}
.mv-dialog .mv-dialog-caption{margin:0;padding:16px 18px 19px;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@media(min-width:901px){
 #gallery-multiview.mv-gallery.mv-compact-card{display:grid;grid-template-columns:minmax(0,498px) 72px;justify-content:center;align-content:start;column-gap:10px;row-gap:10px}
 #gallery-multiview .mv-heading{grid-column:1/-1;width:100%;max-width:none;margin:0}
 #gallery-multiview .mv-figure{grid-column:1;grid-row:2;width:100%;max-width:none;margin:0}
 #gallery-multiview .mv-thumbs{grid-column:2;grid-row:2;align-self:stretch;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(0,1fr));gap:6px;width:72px;max-width:none;min-height:0;height:100%;margin:0}
 #gallery-multiview .mv-thumb{width:100%;height:100%;min-height:0}
 #gallery-multiview .mv-thumb span{font-size:8px}
 #gallery-multiview .mv-toolbar{grid-column:1/-1;width:100%;max-width:none;margin:0}
}
@media(max-width:700px){
 #gallery-multiview.mv-gallery.mv-compact-card{padding:16px}
 #gallery-multiview .mv-heading{gap:8px;margin-bottom:10px}
 #gallery-multiview .mv-heading-meta{gap:8px}
 #gallery-multiview .mv-sample{font-size:9px}
 #gallery-multiview .mv-thumbs{gap:6px;margin-top:8px}
 #gallery-multiview .mv-thumb{height:44px}
 #gallery-multiview .mv-thumb span{font-size:8px;padding:2px 4px}
 #gallery-multiview .mv-toolbar{margin-top:8px}
 #gallery-multiview.mv-compact-card .mv-button{min-height:44px;padding:7px 9px}
 dialog.mv-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 .mv-dialog .mv-dialog-header{padding:10px 12px}
 .mv-dialog .mv-dialog-title{font-size:14px}
 .mv-dialog .mv-dialog-stage{height:min(65dvh,550px);max-height:calc(100dvh - 204px)}
 .mv-dialog .mv-dialog-controls{gap:4px 6px;padding:10px 10px 0}
 .mv-dialog .mv-dialog-choices{gap:3px}
 .mv-dialog .mv-dialog-choices .mv-button{min-width:0;flex:1;padding:5px 4px;font-size:10px}
 .mv-dialog .mv-dialog-caption{padding:13px 12px 16px;font-size:11px}
}
@media(max-width:360px){
 #gallery-multiview .mv-play-label{display:none}
 #gallery-multiview .mv-sample{display:none}
 .mv-dialog .mv-dialog-controls{gap:4px}
 .mv-dialog .mv-dialog-choices .mv-button{font-size:9px;padding-inline:2px}
}
@media(pointer:coarse){#gallery-multiview.mv-compact-card .mv-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){
 .visual-refinement #gallery-multiview.mv-gallery .mv-stage .mv-photo{transition:none!important;transition-duration:0s!important}
}
