/* Gallery Section - Examination Services Page */
.gallery-section {
    background-color: var(--color-white);
    padding: 100px 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0 0 20px 0;
}

.gallery-description {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Make middle image in second row larger */
.gallery-item.featured {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 769px) {
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-section {
        padding: 80px 0;
    }

    .gallery-grid {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-header {
        margin-bottom: 40px;
    }

    .gallery-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .gallery-description {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 50px 0;
    }

    .gallery-header {
        margin-bottom: 30px;
    }

    .gallery-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .gallery-description {
        font-size: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        aspect-ratio: 16 / 9;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
}

