/* =========================================
   CLINIC GALLERY SECTION - PREMIUM DESIGN
   ========================================= */

.clinic-gallery-section {
    background-color: var(--bg-cream);
    padding: 60px 0;
    position: relative;
}

.clinic-gallery-section .section-title {
    margin-bottom: 10px;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 1px 9px 10px 3px rgb(0 0 0 / 25%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(102, 49, 48, 0.15);
}

/* Image Wrapper */
.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    background: #f0f0f0;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Overlay Effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 49, 48, 0.85) 0%, rgba(139, 90, 90, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Remove default link styling */
.gallery-item a {
    text-decoration: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 991px) {
    .clinic-gallery-section {
        padding: 30px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .clinic-gallery-section {
        padding: 20px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
    }
}