/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    margin: 0 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.back-btn,
.btn {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #fff;
    border-radius: 3px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    margin: 0 10px;
}

/* Intro & Titles */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

.intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.home-buttons {
    text-align: center;
}

/* Responsive Gallery Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* always 5 columns on wide screens */
    gap: 15px;
    /* space between images */
}

.grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

@media (min-width: 481px) and (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Gallery Items */
.gallery-item {
    display: flex;
    flex-direction: column;
}

.gallery-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-link img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.gallery-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 12px 0;
    color: #333;
    background: #f8f8f8;
    border-radius: 0 0 8px 8px;
    margin-top: -10px;
    transition: color 0.3s ease, background 0.3s ease;
}

.gallery-link:hover .gallery-title {
    color: #0066cc;
    background: #f0f0f0;
}

/* Grid Item hover zoom (for videos/images) */
.grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    max-width: 100%;
}

.grid-item:hover img,
.grid-item:hover video {
    transform: scale(1.05);
}

/* Titles inside grid item */
.grid-item .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
}

/* Video */
video {
    width: 100%;
    max-width: 800px;
}

/* Prevent overflow on mobile */
html,
body {
    overflow-x: hidden;
}

/* Mobile nav stack */
@media (max-width: 480px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 5px 0;
    }
}
