/* ============================================
   KAROKA BBQ — GALLERY PAGE STYLES
   ============================================ */

.gallery-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gallery-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.1);
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.6) 0%,
            transparent 50%,
            rgba(10, 10, 10, 1) 100%);
    z-index: 1;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.gallery-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: #FAFAFA;
}

.gallery-hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    color: #CC0000;
}

/* FILTER SECTION */
.gallery-filter-section {
    background: #0A0A0A;
    padding: 40px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid rgba(204, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.gallery-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #B0B0B0;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.gallery-tab:hover {
    background: rgba(204, 0, 0, 0.1);
    color: #FAFAFA;
    border-color: rgba(204, 0, 0, 0.3);
}

.gallery-tab.active {
    background: #CC0000;
    color: #FAFAFA;
    border-color: #CC0000;
    box-shadow: 0 5px 20px rgba(204, 0, 0, 0.4);
}

/* MAIN GALLERY */
.gallery-main {
    background: #0A0A0A;
    padding: 60px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #1A1A1A;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-zoom-icon,
.gallery-play-icon {
    font-size: 2rem;
    color: #FAFAFA;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-zoom-icon,
.gallery-item:hover .gallery-play-icon {
    transform: scale(1);
}

.gallery-item-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(204, 0, 0, 0.8);
    color: #FFF;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gallery-hero {
        height: 40vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .gallery-filter-section {
        top: 60px;
        padding: 20px 0;
    }

    .gallery-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}