/* Gallery styles */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    /* padding: 50px; */
}

#gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out;
}

#gallery img:hover {
    transform: scale(1.05);
}

#videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

#videos #video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out;
}

#videos #video:hover {
    transform: scale(1.05);
}

/* @media only screen and (max-width: 768px) {
    #gallery img, #videos #video {
        width: 50%;
        height: 100px;
    }
} */

#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    z-index: 1001;
}

#modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 80%;
    max-width: 1200px;
}

#modal img {
    width: 100%;
    height: 80vh;
    object-fit: contain;
}

.close-button, .prev-button, .next-button {
    color: white;
    position: absolute;
    font-size: 50px;
    cursor: pointer;
}

.close-button {
    top: 5px;
    right: 20px;
}

.prev-button {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.next-button {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.close-button:hover, .prev-button:hover, .next-button:hover {
    color: #ccc;
}

#image-description {
    color: white;
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
}

#video-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    z-index: 1001;
}

#video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 80%;
    max-width: 1200px;
}

#video-modal iframe {
    width: 100%;
    height: 80vh;
}

.close-button {
    color: white;
    position: absolute;
    font-size: 50px;
    cursor: pointer;
}

#video-modal .close-button {
    top: 5px;
    right: 20px;
}

.close-button:hover {
    color: #ccc;
}