
body {
    /* font-family: Arial, sans-serif; */
    /* font-family: 'Times New Roman', Times, serif; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gallery {
    clear: both; /* Clears any floating elements before the gallery */
    justify-content: center;
    text-align: center;
    width: 100vw;
}

.gallery-image {
    /* width: 32vw; */
    /* min-width: 133px; */
    width: auto;
    height: auto;
    max-width: 400px;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
    background-size: cover; /* Make the image cover the entire container */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    max-width: 100vw;
    width: 100vw;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 17, 19, 0.952);
    animation: fadeIn 0.3s;
}
.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: auto;
    display: block;
    /* width: 80%; */
    max-width: 80vw;
}

#caption{
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background-color: white;
    border: 2px solid black;
    color: black;
    font-size: 1.2rem;
    padding: 0.25rem 1rem;
    border-radius: 0.3rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}







/* Extra Small Devices */
@media (max-width: 575px) {
    .gallery-image {
        width: 30vw;
        height: 30vw;
    }
}

/* Small Devices */
@media (min-width: 576px) and (max-width: 767px) {
    .gallery-image {
        width: 32vw;
        height: 32vw;
    }
}

/* Medium Devices */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-image {
        width: 23vw;
        height: 23vw;
    }
}

/* Large Devices */
@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-image {
        width: 23vw;
        height: 23vw;
    }
}



/* Extra Large Devices */
@media (min-width: 1200px) {
    .gallery-image {
        width: 19vw;
        height: 19vw;
        max-width: 400px;
    }
}