/* Basic reset for consistent styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #2e2e30;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header and logo styling */
.main-header {
    background-color: #52597d;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo img {
    height: 85px;
}

/* Style for the new video group headings */
.video-group-heading {
    /* Make the heading span all grid columns */
    grid-column: 1 / -1;
    color: #d3d3d3;
    font-family: sans-serif;
	font-size: 12px;
    /* Changed from `center` to `left` */
    text-align: left; 
    margin: 20px 0 10px 0;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: transform 0.2s;
    border: 1px solid #d3d3d3;
}

/* New wrapper to constrain and center the gallery */
.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
}

/* Gallery grid styling for larger screens (default) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: transform 0.2s;
    border: 1px solid #d3d3d3;
}

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

/* Media query for mobile devices */
@media (max-width: 480px) {
    .gallery {
        /* On smaller screens, force a single column layout */
        grid-template-columns: 1fr;
        /* Increase the gap for better spacing */
        gap: 25px;
        padding: 20px;
    }
    
    .gallery-item {
        /* Add some padding inside the gallery item */
        padding: 25px;
    }

    .gallery-item img {
        /* Ensure images take up full width */
        height: auto;
    }
}

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

.modal.visible {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal #full-video {
    max-width: 80%;
    max-height: 80%;
}
