/* --- PROFESSIONAL SLIDESHOW STYLES --- */
.gallery-section {
    background-color: white; /* Clean background */
    padding-bottom: 3rem;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    border-radius: 10px;
    overflow: hidden; /* Keeps images contained in rounded corners */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* deep shadow for depth */
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Make images uniform in size and cover the area professionally */
.mySlides img {
    width: 100%; /* Ensure it spans the container width */
    height: 500px; /* Fixed height for desktop stability */
    object-fit: cover; /* This ensures images don't stretch/squish */
    vertical-align: middle;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3); /* Subtle dark background */
    z-index: 2; /* Ensure buttons are above images */
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with some transparency */
.prev:hover,
.next:hover {
    background-color: var(--primary); /* Uses CSS variable from style.css if linked after */
}

/* The dots/bullets/indicators */
.dot-container {
    text-align: center;
    padding-top: 15px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #c41e3a; /* Fallback Red if var not available */
    background-color: var(--secondary); /* Your Theme Gold */
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

/* Responsive height for mobile */
@media only screen and (max-width: 768px) {
    .mySlides img {
        height: 300px; /* Smaller height for phones */
    }

    .prev,
    .next {
        padding: 10px; /* Smaller buttons on mobile */
    }
}