body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    grid-gap: 10px;
    padding: 10px;
}

/* For screens smaller than 900px (3 columns * 300px), adjust to 2 or 1 columns */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr; /* 1 column for small screens */
    }
}

.gallery img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* .gallery img:hover {
    transform: scale(1.05);
} */

.gallery video {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery video:hover {
    transform: scale(1.05);
}

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

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

.lightbox.active {
    display: flex;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.close:hover {
    color: rgb(154, 154, 154);
}

.contain 
{
    margin-top: 5%;
    max-width: 1000px;
}

.contain-centered{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

button {
    margin: 0px;
    padding: 0px;
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.button-container {
    display: flex;
    margin-bottom: 100px;
    margin-top: 10px;
    justify-content: center;
    align-self: flex-end;
    width: 100%;
}

.arrows {
    padding: 0px;
    margin: 0px;
    height: 35px;
    width: 35px;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
    pointer-events: none;
}