.gallery{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 0;
    list-style: none;
}

.gallery-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 0 auto;
    width: 70%;
    height: 100%;
    padding: 0;
    list-style: none;
}

.gallery-img{
    width: 360px;
    height: 210px;
    margin-right: 0;
    margin-bottom: 10px;
    cursor: pointer;
}

.gallery-img button {
    outline: none;
    border: none;
    background: none;
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.5); 
  }
  

.modal-content {
    background-color: none;
    margin: 5% auto;
    padding: 20px;
    width: 80%; 
}


.modal-header {
    padding: 2px 16px;
    color: white;
}
  
.modal-body {
    padding: 2px 16px;
    position: relative;
    height: 100%;
}
  
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 1000px;
    height: 600px;
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
    --swiper-theme-color: white;
}



.loader {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 5px solid rgb(255, 255, 255);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 

#loader{
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.5); 
}



@media screen and (max-width: 550px) {
    .gallery{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        padding: 0;
        list-style: none;
    }
    
    .gallery-list{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        padding: 0;
        list-style: none;
    }
    
    .gallery-img{
        width: 360px;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .modal-content {
        background-color: none;
        margin: 5% auto;
        padding: 20px;
        width: 90%;
        height: 50%; 
    }
}

@media screen and (max-width: 350px) {
    .modal-content {
        background-color: none;
        margin: 20% auto;
        padding: 20px;
        width: 90%;
        height: 20%; 
    }
}