
.gallery-slider {
position: relative;
max-width: 900px;
margin: 1rem auto;
user-select: none;
-webkit-user-select: none;
overflow: hidden;
border-radius: 16px;
box-shadow: 0 8px 30px rgba(0,0,0,.08);
background: #000;
}
.gallery-viewport {
position: relative;
aspect-ratio: 16/9;        /* Adjust if you want a different shape */
display: grid;
place-items: center;
background: #111;
}
.gallery-image {
width: 100%;
height: 100%;
object-fit: contain;       /* contain keeps full image visible */
display: block;
background: #000;
}
.gallery-caption {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: .6rem .9rem;
font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
color: #f5f5f5;
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.75) 100%);
}
.gallery-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 5;
border: none;
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(255,255,255,.14);
backdrop-filter: blur(6px);
cursor: pointer;
font-size: 22px;
display: grid;
place-items: center;
transition: background .2s ease, transform .08s ease;
color: #fff;
}
.gallery-btn:hover { background: rgba(255,255,255,.22); }
.gallery-btn:active { transform: translateY(-50%) scale(.98); }
.gallery-btn.prev { left: .6rem; }
.gallery-btn.next { right: .6rem; }

.gallery-dots {
position: absolute;
left: 0; right: 0; bottom: .5rem;
display: flex;
gap: .35rem;
justify-content: center;
align-items: center;
z-index: 4;
}
.gallery-dots button {
width: 8px; height: 8px; border-radius: 50%;
border: none; background: rgba(255,255,255,.35);
padding: 0; cursor: pointer;
}
.gallery-dots button[aria-current="true"] { background: #fff; }
@media (hover: none) {
.gallery-btn { background: rgba(255,255,255,.22); }
}
