/* ========================================================
   Metro IVF - Gallery & Newspaper Media Section Styles
   ======================================================== */

.gallery-hero {
    background: linear-gradient(135deg, #0b1e33 0%, #153254 100%);
    color: #ffffff;
    padding: 90px 0 60px;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 197, 66, 0.12) 0%, rgba(244, 197, 66, 0) 70%);
    pointer-events: none;
}

.gallery-filter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-tab-btn {
    padding: 12px 24px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid var(--border-light, #e2e8f0);
    color: var(--primary-slate, #0b1e33);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-tab-btn i {
    color: var(--champagne-gold, #c89b53);
    transition: color 0.3s ease;
}

.gallery-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 30, 51, 0.08);
    border-color: var(--champagne-gold, #c89b53);
}

.gallery-tab-btn.active {
    background: var(--primary-slate, #0b1e33);
    color: #ffffff;
    border-color: var(--primary-slate, #0b1e33);
    box-shadow: 0 8px 24px rgba(11, 30, 51, 0.2);
}

.gallery-tab-btn.active i {
    color: var(--brand-yellow, #f4c542);
}

/* Gallery Grid System */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Highlight Featured Newspaper Clips */
.newspaper-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(0, 0, 0, 0.05));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 30, 51, 0.12);
    border-color: rgba(200, 155, 83, 0.4);
}

.gallery-img-box {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8fafc;
    cursor: pointer;
}

.newspaper-card .gallery-img-box {
    height: 320px;
    background: #f1f5f9;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.newspaper-card .gallery-img {
    object-fit: contain;
    padding: 10px;
    background: #fdfdfd;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 30, 51, 0.85) 0%, rgba(11, 30, 51, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-zoom-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-yellow, #f4c542);
    color: var(--primary-slate, #0b1e33);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-card:hover .gallery-zoom-btn {
    transform: scale(1);
}

.gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-newspaper {
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
}

.badge-hospital {
    background: rgba(14, 165, 233, 0.9);
    color: #ffffff;
}

.badge-gallery {
    background: rgba(200, 155, 83, 0.9);
    color: #ffffff;
}

.gallery-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-slate, #0b1e33);
    margin-bottom: 6px;
    line-height: 1.35;
}

.gallery-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.gallery-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.gallery-card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-card-footer i {
    color: var(--champagne-gold, #c89b53);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 18, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-box {
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-img-wrapper {
    max-height: 75vh;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.lightbox-img-wrapper img {
    max-height: 75vh;
    max-width: 90vw;
    object-fit: contain;
}

.lightbox-caption-bar {
    margin-top: 16px;
    text-align: center;
    color: #ffffff;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.lightbox-meta {
    font-size: 0.9rem;
    color: var(--brand-yellow, #f4c542);
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close-btn:hover {
    background: var(--brand-yellow, #f4c542);
    color: var(--primary-slate, #0b1e33);
    transform: rotate(90deg);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.lightbox-nav-btn:hover {
    background: var(--brand-yellow, #f4c542);
    color: var(--primary-slate, #0b1e33);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close-btn {
        top: -40px;
        right: 10px;
    }
    .gallery-hero {
        padding: 60px 0 40px;
    }
    .newspaper-card .gallery-img-box {
        height: 250px;
    }
}
