.gis-slider {
    position: relative;
    z-index: 1; /* ensures the whole component stacks above page siblings */      
    width: 97%;
    margin: 0 auto 20px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e5e5; 
}
.gis-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 768 / 388;
    background: #ffffff;
}
.gis-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.9s ease, visibility 0.9s, transform 0.9s ease;
}
.gis-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 2;
}
.gis-slide-image {
    width: 100%;
    height: 100%;
}
.gis-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
    margin-top: -20px;
    margin-bottom: -20px;
}
/* Caption now sits BELOW the image, always fully visible, never overlapping */
.gis-caption-bar {
    position: relative;
    z-index: 5; /* sits above dots/nav if they visually creep down */
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #222; 
    text-align: center;
    min-height: 20px;
    transition: opacity 0.4s ease;
    font-family: "Arial Unicode MS", Arial, sans-serif;
}
/* Prev/Next buttons */
.gis-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.gis-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.08);
}
.gis-prev { left: 15px; }
.gis-next { right: 15px; }
/* Dots */
.gis-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.gis-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gis-dot.active {
    background: #333;
    transform: scale(1.2);
}
@media (max-width: 600px) {
    .gis-nav { width: 34px; height: 34px; font-size: 16px; }
    .gis-caption-bar { font-size: 14px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .gis-slide, .gis-nav, .gis-dot, .gis-caption-bar { transition: none !important; }
}