.image-gallery { --mint:#80e3d4; background:#0d1723; color:#eaf1f6; border:1px solid #283846; border-radius:12px; overflow:hidden; box-shadow:0 12px 32px #101c3020; text-align:left; }
.image-gallery *, .image-gallery *::before { box-sizing:border-box; }
.gallery-heading { display:flex; justify-content:space-between; gap:14px; padding:12px 18px; font-size:9px; letter-spacing:.18em; font-weight:700; }
.gallery-heading span:first-child { color:var(--mint); }
.gallery-heading span:last-child { color:#9aaeba; }
.gallery-viewport { position:relative; overflow:hidden; touch-action:pan-y pinch-zoom; }
.gallery-track { display:flex; transition:transform .65s cubic-bezier(.22,.8,.2,1); will-change:transform; }
.gallery-slide { flex:0 0 100%; width:100%; min-width:0; margin:0; }
.gallery-slide img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; user-select:none; }
.image-gallery .gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; display:grid; place-items:center; border:1px solid #ffffff80; background:#0b1628b8; color:white; font-size:20px; line-height:1; border-radius:50%!important; cursor:pointer; backdrop-filter:blur(10px); transition:background .2s,border-color .2s; }
.image-gallery .gallery-arrow:hover { background:#183b45; border-color:var(--mint); color:var(--mint); }
.gallery-prev { left:18px; }
.gallery-next { right:18px; }
.gallery-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 18px; border-bottom:1px solid #ffffff12; }
.gallery-caption { margin:0; display:flex; align-items:baseline; font-variant-numeric:tabular-nums; }
.gallery-number { font-size:20px; line-height:1; font-weight:600; color:var(--mint); }
.gallery-total { color:#8ea2b2; margin-left:5px; font-size:12px; }
.gallery-label { font-size:10px; margin-left:22px; letter-spacing:.2em; }
.gallery-hint { font-size:9px; letter-spacing:.15em; color:#8ea2b2; }
.gallery-thumbs { display:grid; grid-template-columns:repeat(3,minmax(0,100px)); justify-content:center; gap:10px; padding:12px 18px 16px; }
.image-gallery .gallery-thumb { min-width:0; position:relative; display:block; padding:0; margin:0; overflow:hidden; background:#152332; border:1px solid #ffffff20; border-radius:5px!important; cursor:pointer; color:#a9b9c7; transition:border-color .25s,background .25s; }
.gallery-thumb img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; opacity:.48; transition:opacity .25s; }
.gallery-thumb span { display:block; font-size:7px; letter-spacing:.04em; padding:6px 7px; text-align:left; }
.image-gallery .gallery-thumb.is-active { border-color:transparent; background:#183237; color:var(--mint); }
.gallery-thumb.is-active img, .gallery-thumb:hover img { opacity:1; }
.image-gallery:focus-visible { outline:3px solid var(--mint); outline-offset:-4px; }
.image-gallery button:focus { outline:none; box-shadow:none; }
.image-gallery button:focus-visible { filter:brightness(.9); }
@media(max-width:600px) {
 .gallery-heading { padding:10px 14px; font-size:8px; letter-spacing:.1em; }
 .gallery-toolbar { padding:10px 14px; }
 .gallery-hint { display:none; }
 .gallery-thumbs { padding:10px 14px 12px; gap:8px; }
 .gallery-thumb span { font-size:7px; letter-spacing:.02em; padding:7px 5px; }
 .image-gallery .gallery-arrow { width:34px; height:34px; font-size:18px; }
 .gallery-prev { left:8px; } .gallery-next { right:8px; }
}
@media(prefers-reduced-motion:reduce) { .gallery-track, .gallery-thumb img { transition:none; } }
/* Light gallery theme and interactive states */
.image-gallery { --mint:#087d83; background:#fff; color:#243b4b; border-color:#dce7ec; box-shadow:0 12px 32px #25485812; }
.gallery-heading { background:#f5fafb; }
.gallery-heading span:last-child, .gallery-total, .gallery-hint { color:#637d8b; }
.gallery-viewport { background:#edf4f7; cursor:grab; }
.image-gallery.is-dragging .gallery-viewport { cursor:grabbing; }
.gallery-track { transition:transform .5s cubic-bezier(.22,.8,.2,1); }
.gallery-toolbar { border-color:#e2ecef; flex-wrap:wrap; gap:10px; }
.gallery-label { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.image-gallery .gallery-arrow { background:#ffffffeb; border-color:#d4e4e9; color:#275869; box-shadow:0 3px 12px #23445a20; }
.image-gallery .gallery-arrow:hover { background:#e2f4f4; color:#087d83; }
.image-gallery .gallery-thumb { background:#f3f7f9; border-color:transparent; color:#557180; }
.gallery-thumb img { opacity:.8; }
.image-gallery .gallery-thumb.is-active { background:#e5f5f3; color:#066c73; }
.image-gallery .gallery-autoplay { border:1px solid #cddfe4; border-radius:4px!important; background:#f4f9fa; color:#376071; font-size:10px; padding:5px 9px; cursor:pointer; white-space:nowrap; }
.image-gallery .gallery-autoplay:hover { background:#e1f2f3; }
.image-gallery [hidden], .image-gallery.is-single .gallery-arrow, .image-gallery.is-single .gallery-thumbs, .image-gallery.is-single .gallery-hint, .image-gallery.is-single .gallery-autoplay { display:none!important; }
.image-gallery.is-single .gallery-viewport { cursor:default; }
.image-gallery.is-single .gallery-toolbar { border-bottom:0; }
@media(max-width:600px) { .gallery-label { max-width:150px; margin-left:12px; font-size:9px; } }

/* Subtle navigation: thin chevrons with a comfortable click area. */
.image-gallery .gallery-arrow,
.image-gallery .gallery-arrow:hover,
.image-gallery .gallery-arrow:active {
    width:44px; height:44px; padding:0; border:0;
    background:transparent; box-shadow:none; backdrop-filter:none;
    font-size:0; color:white; opacity:.55;
    transition:opacity .2s;
}
.image-gallery .gallery-arrow::before {
    content:""; display:block; width:10px; height:10px;
    border-top:1.5px solid currentColor; border-right:1.5px solid currentColor;
    filter:drop-shadow(0 1px 2px #0009);
}
.image-gallery .gallery-prev::before { transform:rotate(-135deg); }
.image-gallery .gallery-next::before { transform:rotate(45deg); }
.image-gallery .gallery-arrow:hover,
.image-gallery .gallery-arrow:focus-visible { opacity:1; }
.image-gallery .gallery-prev { left:4px; }
.image-gallery .gallery-next { right:4px; }
@media(prefers-reduced-motion:reduce) { .image-gallery .gallery-arrow { transition:none; } }

.image-gallery { width:100%; min-width:0; }
.image-gallery .gallery-label { min-width:0; }
