/* ============================================================
   Noakhali Zila Samity — Gallery Details Page Styles
   ============================================================ */

/* ---------- Gallery Details Section ---------- */
.gallery-details-section {
    background: var(--bg-body);
    min-height: 80vh;
    padding-top: 50px;
    padding-bottom: 80px;
}

.gallery-details-header {
    margin-bottom: 40px;
}

/* ---------- Featured Image ---------- */
.featured-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-col);
    margin-bottom: 40px;
    background: var(--bg-card);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

/* ---------- Gallery Info ---------- */
.gallery-info {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.gallery-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-family: "Poppins", "Noto Sans Bengali", sans-serif;
}

.gallery-details-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.gallery-details-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-col);
    cursor: pointer;
    transition: all var(--transition-fast);
    aspect-ratio: 1;
}

.gallery-details-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-details-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.gallery-details-card:hover .gallery-details-card-image {
    transform: scale(1.1);
}

.gallery-details-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.gallery-details-card:hover .gallery-details-card-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-details-card-overlay i {
    font-size: 2.5rem;
    color: var(--brand-white);
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
}

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

/* ---------- Slider Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.lightbox-container {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--brand-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--brand-white);
    color: var(--primary-blue);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--brand-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--brand-white);
    color: var(--primary-blue);
}

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

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

.lightbox-content {
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    width: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    padding: 15px 0 0 0;
    background: transparent;
    border-top: none;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    font-family: "Poppins", "Noto Sans Bengali", sans-serif;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .gallery-details-title {
        font-size: 2rem;
    }

    .gallery-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

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

@media (max-width: 768px) {
    .gallery-details-section {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .gallery-details-title {
        font-size: 1.6rem;
    }

    .gallery-details-description {
        font-size: 0.95rem;
    }

    .gallery-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lightbox-close {
        top: -35px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery-details-title {
        font-size: 1.4rem;
    }

    .gallery-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-details-card-overlay i {
        font-size: 2rem;
    }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */

[data-theme="dark"] .featured-image-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gallery-details-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gallery-details-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .lightbox-content {
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .lightbox-caption {
    background: transparent;
    border-top: none;
}

[data-theme="dark"] .lightbox-close,
[data-theme="dark"] .lightbox-nav {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .lightbox-close:hover,
[data-theme="dark"] .lightbox-nav:hover {
    background: var(--brand-white);
    color: var(--primary-green);
}