/* Extra styles for index page */
.cure-photo {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.cure-photo:hover { transform: translateY(-6px) scale(1.02); }

/* News card small adjustments */
.news-card h5 { font-size: 18px; margin-bottom:8px; }
.news-card p { color: rgba(11,31,58,0.9); }

.gallery-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.gallery-media {
    position: relative;
    min-height: 180px;
    max-height: 260px;
    overflow: hidden;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main {
    cursor: pointer;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 20px 0;
}

.gallery-thumb-btn {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    display: block;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    height: 68px;
    background: #f3f6fb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(11,31,58,0.6);
    font-weight: 500;
    padding: 20px;
    text-align: center;
}

.gallery-meta {
    padding: 22px 24px 24px;
}

.gallery-meta h5 {
    margin-bottom: 12px;
    font-size: 1.18rem;
    color: #0b1f3a;
}

.gallery-meta p {
    color: rgba(11,31,58,0.82);
    line-height: 1.7;
    margin-bottom: 18px;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
    color: #4d5b73;
}

.gallery-footer span {
    background: #f3f6fb;
    padding: 8px 12px;
    border-radius: 999px;
}

.gallery-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,12,30,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox-overlay.active {
    display: flex;
}

.gallery-lightbox {
    width: min(100%, 980px);
    max-height: min(100%, 90vh);
    background: #071426;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 35px 100px rgba(0,0,0,0.35);
}

.gallery-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255,255,255,0.06);
}

.gallery-lightbox-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.gallery-lightbox-close,
.gallery-lightbox-zoom {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.45rem;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-zoom:hover {
    opacity: 1;
}

.gallery-lightbox-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: 460px;
    background: #0b2241;
}

.gallery-lightbox-media {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-lightbox-media img,
.gallery-lightbox-media video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-lightbox-sidebar {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    overflow-y: auto;
}

.gallery-lightbox-thumb-list {
    display: grid;
    gap: 12px;
}

.gallery-lightbox-thumb {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
    background: #0f264b;
}

.gallery-lightbox-thumb.active,
.gallery-lightbox-thumb:hover {
    border-color: #fff;
    transform: translateY(-2px);
}

.gallery-lightbox-thumb img,
.gallery-lightbox-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-lightbox-footer {
    margin-top: 20px;
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
}

.gallery-lightbox-footer p {
    margin: 0;
    line-height: 1.65;
}

.gallery-lightbox-media.zoomed img,
.gallery-lightbox-media.zoomed video {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.gallery-media .media-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 992px) {
    .gallery-media {
        min-height: 220px;
        max-height: 240px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-lightbox-body {
        grid-template-columns: 1fr;
    }
    .gallery-lightbox-sidebar {
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .card-service { padding:16px; }
    .news-card { padding:14px; }
    .gallery-card {
        margin-bottom: 24px;
    }
    .gallery-media {
        min-height: 180px;
        max-height: 220px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px 16px 0;
    }
    .gallery-thumb-btn {
        height: 62px;
    }
    .gallery-meta {
        padding: 18px;
    }
    .gallery-lightbox-body {
        grid-template-columns: 1fr;
    }
    .gallery-lightbox-sidebar {
        max-height: 260px;
    }
}

