/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Header (Simplified) */
.header {
    background: #6b0f1a;
    padding: 15px 0;
    color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
}

/* Gallery Layout */
.gallery-section {
    padding: 60px 0;
}

.gallery-title {
    text-align: center;
    color: #6b0f1a;
    font-size: 32px;
    margin-bottom: 40px;
}

/* THE RESPONSIVE GRID
   repeat(auto-fit...) automatically changes column count
*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3; /* Keeps all boxes identical in size */
    background: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image/video to fill the square */
    transition: transform 0.5s ease;
    display: block;
}

/* Hover Effects */
.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 24px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small phones */
    }
}
