@charset "utf-8";
/* ==========================================================================
   MHC HOSPITAL - GALLERY PAGE STYLESHEET (gallery.css)
   ========================================================================== */

/* --- Inner Banner --- */
.inner-banner {
    background: linear-gradient(rgba(0, 64, 128, 0.8), rgba(0, 64, 128, 0.8)), url('../images/clinic-micure.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 65px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.inner-banner h1 {
    font-size: 38px;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.breadcrumb {
    font-size: 15px;
    color: #e8f5e9;
}
.breadcrumb a {
    color: #4CAF50;
    font-weight: 600;
    transition: color 0.3s ease;
}
.breadcrumb a:hover {
    color: #ffffff;
}
.breadcrumb span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Gallery Main Section --- */
.gallery-section {
    padding: 20px 0 60px;
}

/* --- 4x4 Responsive Image Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* --- Individual Thumbnail Card --- */
.gallery-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0; /* Very light grey thin outline */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: #4CAF50; /* Accent highlight on hover */
    box-shadow: 0 12px 24px rgba(0, 64, 128, 0.12);
}

/* Image Aspect Ratio Wrapper */
.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f2f4f8;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

/* Hover Icon Overlay */
.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 64, 128, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card-overlay i {
    color: #ffffff;
    font-size: 26px;
    background: #4CAF50;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: transform 0.35s ease;
}

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

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

/* Thumbnail Caption Strip */
.gallery-caption {
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.gallery-caption h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #004080;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Professional Lightbox Popup Modal --- */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 45, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-container {
    position: relative;
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.lightbox-img-frame {
    position: relative;
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-frame img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 4px 4px 0 0;
}

.lightbox-footer-bar {
    width: 100%;
    background: #002e5a;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.lightbox-caption-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.lightbox-counter {
    font-size: 14px;
    color: #aed581;
    font-weight: 500;
}

/* Modal Navigation Controls */
.lightbox-btn-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn-close:hover {
    color: #ff5252;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 64, 128, 0.7);
    color: #ffffff;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-arrow:hover {
    background: #4CAF50;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-img-wrapper {
        height: 180px;
    }
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .lightbox-arrow-left { left: 10px; }
    .lightbox-arrow-right { right: 10px; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-img-wrapper {
        height: 220px;
    }
    .inner-banner h1 {
        font-size: 30px;
    }
}