/* General styling for the photo gallery */
.photo-gallery {
    column-count: 4;
    column-gap: 10px;
    padding-top: 30px; 
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive layout - two columns for smaller screens */
@media screen and (max-width: 800px) {
    .photo-gallery {
        column-count: 2;
    }
}

/* Responsive layout - single column for very small screens */
@media screen and (max-width: 600px) {
    .photo-gallery {
        column-count: 1;
    }
}


.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-section-header {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.gallery-item.video-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .photo-gallery,
    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .photo-gallery,
    .video-gallery {
        grid-template-columns: 1fr;
    }
}