/* Gallery Section */
.gallery-sec {
    background-color: #f8f9fa; /* Light background for the section */
    padding: 60px 0;
}

.gallery-container {
    position: relative;
    max-width: 1100px;
    /* Set a standard height for the gallery container */
    height: 500px; /* Adjust this value as needed for your desired image height */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-slides {
    display: flex;
    /* Ensure the slides take the full height of the container */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-img {
    width: 100%;
    /* Images will now fill the height of the container */
    height: 100%;
    display: none; /* Hidden by default */
    object-fit: cover; /* Ensures images cover the area without distortion, cropping if necessary */
    border-radius: 10px;
}

.gallery-img.active {
    display: block; /* Show active image */
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.gallery-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-btn.prev {
    left: 15px;
}

.gallery-btn.next {
    right: 15px;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2); /* Subtle border for visibility */
}

.gallery-dots .dot.active {
    background-color: #007bff; /* Bootstrap primary blue */
    transform: scale(1.2);
    border-color: #007bff;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) { /* Added a breakpoint for tablets/laptops */
    .gallery-container {
        height: 400px; /* Slightly smaller height on medium screens */
    }
}

@media (max-width: 768px) {
    .gallery-container {
        height: 350px; /* Standard height for mobile landscape */
        border-radius: 5px; /* Slightly less rounded corners on mobile */
    }
    .gallery-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .gallery-dots .dot {
        width: 10px;
        height: 10px;
    }
}


@media (max-width: 768px) {
    .section-heading {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .gallery-sec {
        padding: 40px 0;
    }
    .gallery-container {
        height: 250px; /* Standard height for mobile portrait */
    }
    .gallery-btn {
        padding: 6px 10px;
        font-size: 1rem;
    }
    .gallery-btn.prev {
        left: 8px;
    }
    .gallery-btn.next {
        right: 8px;
    }
    .gallery-dots {
        bottom: 10px;
        gap: 6px;
    }
       .section-heading {
        font-size: 22px;
    }
}

/* General Section Heading Styling (if not already in home.css) */

