.gallery {
    width: 100%;
}

.gallery__description {
    width: 100%;
    height: auto;
    line-height: 20px;
    background-color: var(--element-background-color);
    border-bottom: 5px solid var(--element-shadow-color);
    padding: 45px;
    margin-top: 75px;
}

.gallery__description__title {
    margin-bottom: 25px;
}

.gallery__description__text {
    line-height: 20px;
}

.gallery__content {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    grid-auto-rows: 1fr;
    grid-gap: 13px;
    margin-top: 13px;
}

.gallery__content::before {
    content: '';
    width: 0;
    padding-bottom: 100%;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.gallery__content > *:first-child {
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.gallery__content__item {
    width: 100%;
    height: 100%;
    background-color: var(--main-background-color);
    position: relative;
}
    
.gallery__content__item__image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery__content__item__image-container__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button--gallery {
    width: 178px;
    height: 60px;
    position: absolute;
    left: 15px;
    bottom: 15px;
}

.no__images {
    width: 100%;
    height: 100%;
    background-color: var(--nav-inactive-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.no__images__text {
    font-size: 30px;
    /* font-weight: 800; */
    color: var(--nav-active-color);
}

/*==========================================================*/
/***********************LIGHT-SLIDER*************************/
/*==========================================================*/

.lightslider {
    width: 100%;
    height: 100%;
    background-color: rgba(33, 31, 32, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.lightslider .exit {
    width: 24px;
    height: 24px;
    background-image: url(../img/icons/close.svg);
    position: absolute;
    top: 50px;
    right: 50px;
}

.lightslider .exit:hover {
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    border-radius: 100px;
    
}

.lightslider img {
    vertical-align: middle;
}

/* Slideshow container */
.slideshow-container,
.slideshow-container--single {
    max-width: 600px;
    position: relative;
    margin-bottom: 25px;
}

/* Hide the images by default */
/* .mySlides {
    display: none;
} */

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    background-color: rgba(0,0,0,0.4);
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    border: 3px var(--primary-color) solid;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.sliderActive, .dot:hover {
    background-color: var(--primary-color);
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/*==========================================================*/
/*********************MEDIA-QUARRIES*************************/
/*==========================================================*/



/* @media only screen and (max-width: 830px) {
    
    #gallery #contact__banner .banner,
    #gallery #contact__banner.bottom .banner{
        width: 100%;
        padding: 0px 15px;
    }
    
    #gallery #projects {
        padding: 0px 15px;
    }
    
    #gallery #contact__banner .banner form .input__fields {
        display: none;
    }
    
    #gallery #contact__banner .banner form .button__send {
        width: 100%;
        padding: 0 15px;
        padding-top: 4px;
    }
    
    #gallery .button__next {
        font-size: 18px;
    }
}

@media only screen and (max-width: 695px) {
    
    #gallery #slider {
        height: auto;
    }
    
    #gallery #slider .slider__text {
        height: auto;
    }
    #gallery #projects {
        padding: 0 15px;
        grid-template-columns: repeat(1, minmax(250px, 1fr));
    }
} */

/*==========================================================*/
/**********************MEDIA-QUERY***************************/
/*==========================================================*/

@media only screen and (max-width: 1360px) {

    #main__center {
        width: 1000px;
    }

    .call-box--wide {
        width: 100%;
    }

    .call-box--wide .secound__field {
        margin-right: 0px;
    }
}

@media only screen and (max-width: 1050px) { 
    #main__center {
        width: 100%;
    }
    
    .gallery {
        width: 830px;
    }
}

@media only screen and (max-width: 890px) { 
    .gallery {
        width: 670px;
    }

    .gallery__content {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media only screen and (max-width: 720px) { 
    .gallery {
        width: 430px;
    }

    .gallery__description__title {
        line-height: 35px;
    }

    .gallery__content {
        grid-template-columns: repeat(1, minmax(230px, 1fr));
    }
}

@media only screen and (max-width: 550px) { 

    .banner {
        height: 280px;
        padding-top: 40px;
    }

    .gallery {
        width: 325px;
    }

    .gallery__description__title {
        line-height: 25px;
    }
}

@media only screen and (max-width: 360px) {
    .gallery {
        width: 270px;
    }

}

@media only screen and (max-width: 300px) { 
    .gallery {
        width: 230px;
    }
}