/* ===================================================
   Clean & Modern Image Gallery Styling
   Gapat Engineering Pvt. Ltd.
=================================================== */

:root {
    --gallery-primary: #089fac;
    --gallery-primary-hover: #07828d;
    --gallery-dark: #141f2b;
}

/* 1. Clean Page Header Banner */
.gallery-page-banner {
    position: relative;
    padding: 50px 0 45px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.gallery-page-banner h1 {
    font-size: 34px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.gallery-page-banner .gallery-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.gallery-page-banner .gallery-breadcrumb a {
    color: var(--gallery-primary);
    text-decoration: none;
    font-weight: 600;
}

.gallery-page-banner .gallery-breadcrumb a:hover {
    color: var(--gallery-primary-hover);
}

.gallery-page-banner .gallery-breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

/* 2. Gallery Grid Section */
.simple-gallery-section {
    padding: 60px 0 80px;
    background-color: #f8fafc;
}

.simple-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Individual Image Card */
.simple-gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: block;
    text-decoration: none;
}

.simple-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(8, 159, 172, 0.22);
}

.simple-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Hover Icon Overlay (No text) */
.simple-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.gallery-zoom-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gallery-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ===================================================
   3. Custom Same-Page Lightbox Popup Modal
=================================================== */
.custom-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

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

.lightbox-img-wrapper img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    display: block;
    animation: lightboxZoomIn 0.25s ease forwards;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Controls */
.lightbox-btn-close {
    position: fixed;
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    outline: none;
    line-height: 1;
}

.lightbox-btn-close:hover {
    background: var(--gallery-primary);
    border-color: var(--gallery-primary);
    transform: rotate(90deg);
}

.lightbox-btn-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    outline: none;
}

.lightbox-btn-nav:hover {
    background: var(--gallery-primary);
    border-color: var(--gallery-primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn-prev {
    left: 24px;
}

.lightbox-btn-next {
    right: 24px;
}

.lightbox-counter-pill {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
}

/* Responsive Grid */
@media (max-width: 1199.98px) {
    .simple-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .simple-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .lightbox-btn-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .lightbox-btn-prev {
        left: 12px;
    }
    .lightbox-btn-next {
        right: 12px;
    }
    .lightbox-btn-close {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

@media (max-width: 575.98px) {
    .simple-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gallery-page-banner {
        padding: 35px 0 30px;
    }
    .gallery-page-banner h1 {
        font-size: 26px;
    }
}
