/* --- Custom Picture Gallery Slider --- */
#sliderFrame {
    position: relative;
    max-width: 800px; /* Adjust based on how wide you want the gallery */
    margin: 20px auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    background: #111;
}

.gallery-slide {
    display: none;
    position: relative;
}


.gallery-slide img {
    vertical-align: middle;
    width: 100%;
    height: auto;
    max-height: 500px; /* Keeps tall images from breaking the layout */
    object-fit: contain; /* Ensures the whole image is visible */
}

/* Caption styling */
.gallery-slide .caption-text {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    box-sizing: border-box;
}

/* Fade animation */
.gallery-fade {
    animation-name: galFade;
    animation-duration: 1.5s;
}

@keyframes galFade {
    from {opacity: .4} 
    to {opacity: 1}
}