.gallery-list{
   width: 100%;
   display: flex;
   flex-direction: row;
   gap:1rem;
   padding: 1rem;
   margin: 2rem auto;
   flex-wrap: wrap;
   justify-content: center;
}
.gallery-item{
   display: block;
   cursor: pointer;
   border-radius: var(--radius); 
   overflow: hidden;
}
.gallery-item__img{
   display: block;
   transition: 0!important;
   width: fit-content !important;
   will-change: transform;
   backface-visibility: hidden;
}
.gallery-item:is(:hover, :focus) .gallery-item__img{
   /*transform:scale(1.05);*/
}
.gallery-item:has(.gallery-item__img:hover, .gallery-item__img:focus){
   -webkit-box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.31);
   -moz-box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.31);
   box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.31);
   transform:scale(1.05);
}




body{
    position: relative;
}

 .galleryPopup__substrate{
    background: #000000e8;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;

 }
.galleryPopup{
   border-radius: 5px;
   max-width: 40%;
   height: auto;
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 1002;
}


.galleryPhoto__wrapper{
   padding: 1rem;
   background: #f5f5f5;
   position: relative;
   border-radius: var(--radius);
  
}
.hideScroll{
   -webkit-scrollbar: none;
   -ms-overflow-style: none; 
   overflow: hidden;
}




.galleryPhoto__btn{
   position: absolute;
   top: 50%;
   transition: .4s;
   border:2px solid #fff;
}
.galleryPhoto__prev{
   left: -2%;
   background: url('../img/chevron-left.svg')no-repeat;
   opacity: 0;
}
.galleryPhoto__next{
   right: -2%;
   background: url('../img/chevron-right.svg')no-repeat; 
   opacity: 0;
}
.galleryPhoto__btnClose{
   background: url('../img/cross.svg')no-repeat;
   top: 0;
   right: 0;
}



.galleryPhoto__next,
.galleryPhoto__prev,
.galleryPhoto__btnClose{
   border-radius: 50%;
   outline: none;
   border: none;
   width: 40px;
   height: 40px;
   position: absolute;
   -webkit-box-shadow: 0px 0px 18px 0px rgba(60, 60, 60, 0.2);
   -moz-box-shadow: 0px 0px 18px 0px rgba(60, 60, 60, 0.2);
   box-shadow: 0px 0px 18px 0px rgba(60, 60, 60, 0.2);
   /*transition: .4s;*/
  /* background: url('../img/cross.svg')no-repeat;*/
   background-position: center;
   background-size: 60%;
   background-color: #fff;
   z-index: 10;
   border: 2px solid var(--color-theme-primary);

}
.galleryPhoto__btn:is(:hover){
   -webkit-box-shadow: 0px 0px 43px 13px rgba(0, 0, 0, 0.2);
   -moz-box-shadow: 0px 0px 43px 13px rgba(0, 0, 0, 0.2);
   box-shadow: 0px 0px 43px 13px rgba(0, 0, 0, 0.2);
   background-color: #eceaea;
   
}
.galleryPhoto:is(:hover) .galleryPhoto__btn{
   opacity: 1;
}


.galleryPhoto__wrapperBtns{
   position: absolute;
   top: -2%;
   right: -2%;
}
.galleryPhoto__img{
   width:100%;
}
.galleryPhoto__wrapper img{
   max-height: 70vh;
   border-radius: var(--radius);
}








@media screen and (max-width: 700px){
   .galleryPopup{
     /* max-width: 80%; */
     max-width: 100%!important; 
     width: 90%;
   }
}




