/* ============================================
   GALLERY PAGE - PREMIUM STYLES
   ============================================ */

.gallery-hero {
    position: relative;
    padding: 8rem 0 var(--space-12);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
    overflow: hidden;
    text-align: center;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.gallery-hero h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out;
}

.gallery-hero p {
    font-size: var(--text-xl);
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-gray-light);
}

/* Grid */
.gallery-grid {
    display: columns;
    columns: 3 300px;
    column-gap: var(--space-6);
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--space-6);
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    cursor: pointer;
    background: rgba(44, 62, 80, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent-green);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-6) var(--space-4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.gallery-item-overlay span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-lg);
}

/* Video specific */
.video-thumbnail {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--color-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--color-white);
    box-shadow: var(--shadow-green);
    transition: all var(--transition-base);
}

.gallery-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-accent-green-light);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 2001;
}

.lightbox-nav:hover {
    background: var(--color-accent-green);
    box-shadow: var(--shadow-green);
}

.lightbox-nav.prev { left: var(--space-8); }
.lightbox-nav.next { right: var(--space-8); }

.lightbox-close {
    position: absolute;
    top: var(--space-8);
    right: var(--space-8);
    color: var(--color-white);
    font-size: 40px;
    cursor: pointer;
    transition: color var(--transition-base);
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--color-accent-green);
}

.lightbox-caption {
    position: absolute;
    bottom: var(--space-12);
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .gallery-grid {
        columns: 1;
    }
    .gallery-hero h1 {
        font-size: var(--text-4xl);
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
