/**
 * Photo Gallery Styles - IndusAI Week
 * Aligned with Global Theme Variables
 */

/* Reuse site-wide variables where possible */
:root {
    --gallery-item-aspect: 4/3;
    --gallery-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base wrapper inherit body background */
.gallery-wrapper {
    min-height: 100vh;
    background: transparent;
    /* Particles background from header shows through */
}

/* Header Adjustments */
.gallery-header h1 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 4px;
}

/* Filter Tabs */
.gallery-filters .filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 20, 147, 0.2);
    color: var(--color-text-gray-dark);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.gallery-filters .filter-btn:hover {
    color: white;
    border-color: var(--color-primary-pink);
    background: rgba(255, 20, 147, 0.1);
    transform: translateY(-2px);
}

.gallery-filters .filter-btn.active {
    background: var(--color-primary-pink);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

/* CSS Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Gallery Card */
.gallery-card {
    position: relative;
    cursor: pointer;
}

.media-container {
    position: relative;
    width: 100%;
    aspect-ratio: var(--gallery-item-aspect);
}

/* Video Indicator */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: white;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.gallery-card:hover .video-indicator {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hover Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.overlay-icon {
    margin-bottom: 10px;
}

/* Custom Lightbox */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    /* Higher than nav */
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 1, 15, 0.95);
    backdrop-filter: blur(15px);
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10;
}

.lightbox-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-primary-pink);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background: var(--color-primary-pink);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: -100px;
}

.lightbox-nav.next {
    right: -100px;
}

@media (max-width: 1400px) {
    .lightbox-nav.prev {
        left: 15px;
    }

    .lightbox-nav.next {
        right: 15px;
    }
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
}

.lightbox-caption h5 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* Animations */
.gallery-item.hide {
    display: none;
}

/* Font weight classes mapping */
.font-Orbitron {
    font-family: 'Orbitron', sans-serif;
}

.tracking-widest {
    letter-spacing: 0.2em;
}