/* ================================
   Gallery Page Styles
   Neon Green Theme
   ================================ */

/* Override accent color to neon green */
.gallery-theme {
    --accent: #39ff14;
    --accent-glow: rgba(57, 255, 20, 0.5);
}

/* Hero adjustments for Gallery page */
.gallery-hero {
    min-height: 60vh;
    padding-top: 120px;
    background:
        linear-gradient(135deg, transparent 40%, rgba(57, 255, 20, 0.03) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(57, 255, 20, 0.08) 0%, transparent 50%);
}

.gallery-hero .hero-visual {
    display: none;
}

/* Active nav link styling */
.nav-menu a.active {
    color: #39ff14;
}

/* ================================
   Alternating Section Backgrounds
   ================================ */
.gallery-theme #photos {
    background: var(--gray-900);
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
}

/* ================================
   Photo Grid Section
   ================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    transition: all var(--transition-normal);
}

.photo-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Placeholder styling */
.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-600);
    gap: 0.5rem;
}

.photo-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.photo-placeholder span {
    font-size: 0.875rem;
}

/* ================================
   Video Grid Section
   ================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    transition: all var(--transition-normal);
}

.video-item:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive video embed container */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Placeholder styling */
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    color: var(--gray-600);
    gap: 0.5rem;
}

.video-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.video-placeholder span {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.video-placeholder p {
    font-size: 0.75rem;
    color: var(--gray-700);
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 50vh;
        padding-top: 100px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Lightbox
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.photo-item img {
    cursor: pointer;
}
