.gallery-detail-page {
    min-height: 100vh;
    background: #ffffff;
}

.gallery-detail-banner {
    padding-top: 140px;
    border-bottom: 1px solid #e5e7eb;
}

.gallery-detail-banner-inner {
    max-width: 1160px;
    width: 90%;
    margin: 0 auto;
    padding: 24px 0 18px;
}

.gallery-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #111827;
    margin-bottom: 8px;
    text-transform: none;
}

.gallery-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #6b7280;
}

.gallery-detail-breadcrumb a {
    color: #f97316;
    text-decoration: none;
}

.gallery-detail-container {
    max-width: 1160px;
    width: 90%;
    margin: 0 auto;
    padding: 28px 0 56px;
}

.gallery-detail-viewer {
    display: grid;
    gap: 20px;
}

.gallery-detail-description {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.gallery-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-detail-card {
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #d1d5db;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.gallery-detail-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 10, 20, 0.9);
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-content {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    text-align: center;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: calc(86vh - 30px);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-counter {
    margin-top: 8px;
    color: #f9fafb;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-close {
    top: 18px;
    right: 18px;
    font-size: 1.5rem;
}

.gallery-lightbox-prev {
    left: 18px;
}

.gallery-lightbox-next {
    right: 18px;
}

.gallery-detail-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.gallery-detail-empty i {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

@media (max-width: 768px) {
    .gallery-detail-banner {
        padding-top: 120px;
    }

    .gallery-detail-title {
        font-size: 1.45rem;
    }

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

    .gallery-detail-card img {
        height: 170px;
    }

    .gallery-lightbox {
        padding: 12px;
    }

    .gallery-lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-lightbox-prev {
        left: 10px;
    }

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