/* ── Gallery Page Styles ── */

/* Navigation */
.gallery-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(183, 168, 106, 0.1);
}

/* ── Hero Banner ── */
.gallery-hero {
    position: relative;
    height: 400px;
    padding-top: 70px;
    background: linear-gradient(160deg, #08080a 0%, #12120e 40%, #0e0e0e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-icon-wrapper {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-icon {
    width: 56px !important;
    height: 56px !important;
    fill: #b7a86a !important;
    filter: drop-shadow(0 0 12px rgba(183, 168, 106, 0.4));
}

.hero-content h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    letter-spacing: 16px;
    color: #b7a86a;
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 40px rgba(183, 168, 106, 0.15);
}

.hero-breadcrumb {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-breadcrumb a {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-sep {
    color: rgba(183, 168, 106, 0.5);
    font-size: 14px;
}

.breadcrumb-current {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: #b7a86a;
    text-transform: uppercase;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(183, 168, 106, 0.5), transparent);
    z-index: 3;
}

/* ── Filter Bar ── */
.gallery-filter-bar {
    background: #0a0a08;
    border-bottom: 1px solid rgba(183, 168, 106, 0.1);
    padding: 20px 40px;
    position: sticky;
    top: 70px;
    z-index: 50;
}

.filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: "Bebas Neue", sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(183, 168, 106, 0.06);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(183, 168, 106, 0.3);
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn.active {
    color: #0e0e0e;
    background: #b7a86a;
    border-color: #b7a86a;
    box-shadow: 0 4px 20px rgba(183, 168, 106, 0.2);
}

/* ── Gallery Section ── */
.gallery-section {
    background-color: #0e0e0e;
    padding: 60px 40px 80px;
    min-height: 60vh;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Masonry-style Grid ── */
.gallery-grid {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(183, 168, 106, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: rgba(183, 168, 106, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Filter animation classes */
.gallery-item.fade-in {
    animation: galleryFadeIn 0.4s ease forwards;
}

.gallery-item.fade-out {
    animation: galleryFadeOut 0.3s ease forwards;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes galleryFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ── Thumbnail ── */
.gallery-thumb {
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.06);
}

/* ── Overlay ── */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(183, 168, 106, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    width: 40px !important;
    height: 40px !important;
    fill: #ffffff !important;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.overlay-tag {
    font-family: "Bebas Neue", sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #b7a86a;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(183, 168, 106, 0.4);
    padding: 3px 10px;
    border-radius: 4px;
}

/* ── Caption ── */
.gallery-caption {
    padding: 14px 16px;
    border-top: 1px solid rgba(183, 168, 106, 0.08);
}

.gallery-caption h3 {
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.gallery-caption span {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: rgba(183, 168, 106, 0.6);
    letter-spacing: 0.5px;
}

/* ── Empty State ── */
.gallery-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 64px !important;
    height: 64px !important;
    fill: rgba(183, 168, 106, 0.25) !important;
}

.gallery-empty p {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── Footer ── */
.gallery-footer {
    background: #0a0a08;
    border-top: 1px solid rgba(183, 168, 106, 0.12);
    padding: 30px 40px;
    text-align: center;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 10px;
    opacity: 0.6;
}

.footer-inner p {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* ── GLightbox Custom Skin ── */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(14, 14, 14, 0.85);
    border: 1px solid rgba(183, 168, 106, 0.2);
    border-radius: 8px;
}

.glightbox-clean .gclose svg,
.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg {
    fill: #b7a86a;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    border-color: rgba(183, 168, 106, 0.5);
    background: rgba(14, 14, 14, 0.95);
}

.gdesc-inner .gslide-title {
    font-family: "Bebas Neue", sans-serif !important;
    font-size: 18px !important;
    letter-spacing: 3px !important;
    color: #b7a86a !important;
}

.gdesc-inner .gslide-desc {
    font-family: "Poppins", sans-serif !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.glightbox-clean .gslide-description {
    background: rgba(10, 10, 8, 0.92) !important;
    border-top: 1px solid rgba(183, 168, 106, 0.15);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links li a {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .gallery-hero {
        height: 280px;
    }

    .gallery-section {
        padding: 40px 20px 60px;
    }

    .gallery-filter-bar {
        padding: 16px 20px;
    }

    .filter-inner {
        gap: 8px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 12px;
    }

    .gallery-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 16px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links li a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .nav-logo-item img {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        letter-spacing: 8px;
    }

    .gallery-grid {
        columns: 1;
    }
}

/* ── Responsive 768px ── */
@media (max-width: 768px) {
    .gallery-hero {
        height: 280px;
    }

    .gallery-section {
        padding: 40px 20px 60px;
    }

    .gallery-filter-bar {
        padding: 14px 20px;
        top: 70px;
    }

    .filter-inner {
        gap: 8px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .gallery-grid {
        columns: 2;
        gap: 12px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: 8px;
    }
}

/* ── Responsive 480px ── */
@media (max-width: 480px) {
    .gallery-hero {
        height: 240px;
    }

    .gallery-section {
        padding: 28px 12px 40px;
    }

    .gallery-filter-bar {
        padding: 12px 16px;
        overflow-x: auto;
    }

    .filter-inner {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .gallery-grid {
        columns: 1;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: clamp(28px, 10vw, 44px);
        letter-spacing: 5px;
    }
}