/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: var(--bg-secondary);
    position: relative;
}

.gallery .section-divider {
    background: linear-gradient(90deg, transparent 0%, var(--cyber-neon) 50%, transparent 100%);
}

.gallery-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.gallery-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
}

.gallery-item.featured {
    flex: 1;
    max-width: 350px;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cyber-border);
    background: var(--cyber-panel);
    transition: var(--transition-normal);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyber-neon);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 0 40px rgba(0, 240, 255, 0.15);
}

.gallery-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 7, 20, 0.95) 0%,
        rgba(5, 7, 20, 0.5) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--cyber-neon);
    font-family: var(--font-mono);
    font-weight: 500;
}

.gallery-meta i {
    font-size: 0.9rem;
}

.gallery-caption {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.gallery-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-cyber);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-glow {
    opacity: 0.3;
}