.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.photo-gallery img {
    width: calc(25% - 1rem);
    cursor: pointer;
}

.modal {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
    height: 80%;
    width: 70%;
    padding: 1rem;
}

.modal-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex: 1;
}

.modal-left-arrow,
.modal-right-arrow {
    height: 2rem;
    width: 2rem;
}

.modal-right-arrow {
    transform: scale(-1, 1)
}

.modal-content {
    display: flex;
    flex: 7;
    overflow: hidden;
    width: 100%;
}

#modal-img {
    flex: 1;
}

.show {
    display: block;
}

.hide {
    display: none;
}

@media screen and (max-width: 1200px) {
    .photo-gallery img {
        width: calc(50% - 1rem);
    }

    .modal-container {
        width: 90%;
        height: 55%;
    }
}

@media screen and (max-width: 875px) {
    .modal-container {
        width: 90%;
        height: 45%;
    }
}

@media screen and (max-width: 675px) {
    .modal-container {
        width: 90%;
        height: 40%;
    }
}

@media screen and (max-width: 525px) {
    .modal-container {
        width: 90%;
        height: 30%;
    }
}