/* Gallery Section */
.gallery-section {
    position: relative;
    overflow: hidden;
    background-color: #003566; /* Primary color */
    padding-bottom: 60px; /* Space for images to overlap */
}

.gallery-bg {
    background-color: #003566; /* Primary color */
    padding: 20px 0;
    z-index: 1;
}

.gallery-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.gallery-controls {
    display: flex;
    gap: 10px;
}

.gallery-controls .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-controls .btn:hover {
    background-color: #ffd700; /* Gold accent */
    transform: scale(1.1);
}

.gallery-slider {
    position: relative;
    z-index: 2;
    margin-top: 10px; /* Pull images up to overlap the rectangle */
    overflow: hidden;
}

.gallery-images {
    display: flex;
    transition: transform 0.5s ease; /* Smooth sliding effect */
}

.gallery-item {
    flex: 0 0 25%; /* 4 images per row on large screens */
    max-width: 25%;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.gallery-item img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px; /* Fixed height for all images */
    object-fit: cover; /* Ensure images are cropped proportionally */
}

.gallery-item img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Responsive Design */

/* Mobile (width < 576px) */
@media (max-width: 575px) {
    .gallery-item {
        flex: 0 0 100%; /* 1 image per row on mobile */
        max-width: 100%;
    }
}

/* Tablet (576px <= width < 992px) */
@media (min-width: 576px) and (max-width: 991px) {
    .gallery-item {
        flex: 0 0 50%; /* 2 images per row on tablets */
        max-width: 50%;
    }
}