/* ===================================
   HOSPITAL GALLERY SECTION
   =================================== */

.hospital-gallery-section {
    padding: 80px 0;
    background: #FFFFFF;
    position: relative;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.gallery-title {
    font-size: 36px;
    font-weight: 800;
    color: #0B2C54;
    margin-bottom: 20px;
    line-height: 1.3;
}

.gallery-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Spanning Items for Visual Interest */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 44, 84, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

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

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

.gallery-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-item-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.gallery-item-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 250px);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .gallery-item {
        height: 250px;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}