/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
}

.gallery-item {
    flex: 1 1 calc(20% - 10px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    padding-left: 10px;
    margin-bottom: 20px;
}
#myModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
    overflow: hidden; /* Prevent body scrolling when modal is open */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 600px;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Modal Content for Small Screens */
@media only screen and (max-width: 570px) {
    .modal-content {
        width: 300px;
        height: auto;
    }
}
