.overlay_album {
    border-radius: var(--border-radius);
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 999;
    background: #FFFFFF;
    border: solid 0.5px #e5e5e5;
}

.overlay_album .overlay_album_container {
    display: table-cell;
    vertical-align: middle;
}

.overlay_album:target {
    display: table;
}

.slide_album {
    display: none;
    border-radius: 4px;
}

.slide_album.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.slide_album .slider_img_album{
    width: calc(50vw);
    height: calc(50vw/1.5);
    margin: 10px;
    border-radius: var(--border-radius);
}

.but_close_album {
    width: 40px;
    height: 40px;
    background: #4b4e50;
    margin: auto;
    position: relative;
    display: block;
    z-index: 200;
    text-indent: -9999px;
    cursor: pointer;
    position: absolute;
    right: 0%;
    margin-right: -46px;
    border-radius: 11px;
  }
  .but_close_album:before,
  .but_close_album:after {
      content: '';
      width: 28px;
      height: 6px;
      position: absolute;
      top: 40%;
      left: 17%;
      transform: rotate(45deg);
      transition: all 0.3s ease-out;
      background: #FFFFFF;
  }
  .but_close_album:after {
      transform: rotate(-45deg);
      transition: all 0.3s ease-out;
  }
  .but_close_album:hover:before,
  .but_close_album:hover:after {
      transform: rotate(180deg);
      background: #FFF;
  }

  .goods_album{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 3%;
    margin-top: 9px;
  }  

#btn-prev_album{

    cursor: pointer;
    width: calc(100% / 2);
    height: calc(97%);
    position: absolute;
    /* left: 50%;
    margin-left: calc((100vh/1.4)/2) */

}
#btn-prev_album:active{
  background-color: #444;
  background-image: url('/img/slide/left-arrow.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}

#btn-next_album{
    cursor: pointer;
    width: calc(100% / 2);
    height: calc(97%);
    position: absolute;
    left: calc(100% / 2);
}

#btn-next_album:active{
  background-color: #444;
  background-image: url('/img/slide/right-arrow.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}

#btn-prev_album:hover, #btn-next_album:hover {
    opacity: 0.6;
}

.img{
    width: 100%;
}


.goods_album .imgMini:hover, .goods_img:hover {
    opacity: 0.8;
    cursor: pointer;
}


.imgMini {
    width: calc(92% / 3);
    margin-right: 0px;
    border-radius: var(--border-radius);
    border: 1px solid #CCCCCC;
    margin-bottom: 10px;
}
.imgMini div{
    border-radius: var(--border-radius);
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.imgMini, .imgMini div{
    height: 90px;
}

.img img{
width: 100%;
}
































.flex-wrapper {

}

.slider-wrapper {
    height: 100%;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



#btn-prev{
    /* border-top: 4px solid #a36bac;
    border-left: 4px solid #a36bac;
    width: 66px;
    height: 60px;
    position: relative;
    left: 0px;
    transform: rotate(-45deg) translateX(30%);
    cursor: pointer; */
    position: absolute;
    z-index: 999;  
}


#btn-next{
    /* border-bottom: 4px solid #a36bac;
    border-right: 4px solid #a36bac;
    width: 64px;
    height: 60px;
    position: relative;
    left:-27px;
    transform: rotate(-45deg) translateX(30%);
    cursor: pointer; */
    position: absolute;
    z-index: 999;
    right: 0px;
}


#btn-prev:hover, #btn-next:hover {
    opacity: 0.6;
}


.slide {
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 4px;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.slide .slider_img{
    width: 99.98%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.but_slide{
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius:3px;
    margin: 0px 10px;
    cursor: pointer;
    border: 1px solid #CCCCCC;
}

.but_slide svg{
    fill: #1e59da !important;
}

.but_slide:hover svg{
    fill: #ffffff !important;
}

.but_slide:hover{
    background: #1e59da;
    border: 1px solid #444444;
}


.slider-wrapper:hover .but_slide{
    display: flex;
}

.slide .slider_text{
    width: 100%;
    background: #FFFFFF;
    padding: 10px;
    display: flex;
    justify-content:space-between;
}

.slider_text a{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--color-dop);
    border-radius: 3px;
    color: #FFF;
}

.slide h2{
    font-size:22px;
    color:#444444;
}

.slide p{
    font-size:14px;
    color:#444444;
}



/*  Задаем стиль в файле style
img {
    height: 100%;
    width: 100%;
}
*/

.dots-wrapper {
    display: flex;
    margin-top: -10px;
    margin-left: 58%;
}

.dot.active {
    background-color: #444444;
    opacity: 0.9;
}

.dots-wrapper span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #bbbabb;
    opacity: 0.3;
    margin-right: 10px;
    cursor: pointer;
}
.dots-wrapper span:last-child{
    margin-right: 0;
}


.slide_album_dot{
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot_album{
    background: #CCC;
    margin: 4px;
    width: 10px;
    height: 3px;
}

.dot_album.active{
    background: #000;
}


/* @media screen and (max-width: 910px)
{
    .imgMini{
        width: calc(92% / 3);
    }
    .imgMini, .imgMini div{
        height: 100px;
    }
    .imgMini{
        margin-bottom: 15px;
    }
} */

    
@media screen and (max-width: 500px)
{

    .slider_img{
        background-size:contain !important;
    }
    .but_close_album{
        top: 5px;
        right: 1%;
        margin-right: 0px !important;
    }

    .overlay_album{
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }

    .slide.active {
        justify-content: center;
    }
    .slide .slider_img{
        width: 100%;
        height: 100px;
        margin-right: 0px;
    }
    
    .slide .slider_text{
        width: 96%;
    }
    
    .slider_text a{
        position: absolute;
        margin-top: 10px;
        right: 2%;
        top:auto;
        left:auto;
    }
    
    .slider_text h2{
        font-size:24px;
        margin-top: 20px;
        margin-left: 0px;
    }
    
    #btn-prev {
        display: none;
    }
    
    #btn-next {
        display: none;
    }
    
    .dots-wrapper {
        margin-top: 10px;
        margin-left: 4%;
    }

    .slide_album .slider_img_album{
        width: calc(94vw);
        height: calc(80vh);
        margin: 10px;
    }

    
    #btn-prev_album{

        cursor: pointer;
        width: calc(100vw / 2);
        height: calc(90vh);
        position: absolute;
        top: 44px;
    }

    #btn-next_album{
        cursor: pointer;
        width: calc(100vw / 2);
        height: calc(90vh);
        position: absolute;
        left: calc(100vw / 1.8);
        top: 44px;
    }

    .imgMini{
        width: calc(95% / 2);
    }
    .imgMini, .imgMini div{
        height: 150px;
    }
    .imgMini{
        margin-bottom: 15px;
    }

}    

