.galeries {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 52rem;
    margin: auto;
}

.galery {
    display: grid;
    gap: 2rem;
    background-color: #181818;
    border-radius: 0.25rem;
    padding: min(2rem, 5vw);
}

.galery__title {
    font-size: 1.5rem;
    text-align: center;
}

.galery__section {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    background-color: #282828;
    border-radius: 0.25rem;
    margin: auto;
    text-align: center;
}

.images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.images img {
    min-width: 180px;
    width: 23rem;
    height: 16rem;
    object-fit: cover;
}


#image-viewer {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 700px;
    max-height: 90%;
}
.modal-content { 
    animation-name: zoom;
    animation-duration: 0.3s;
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
#image-viewer .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 90%;
    }
}