
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #3d3d3d;
}

* {
    box-sizing: border-box;
}


/*Slider*/

.slider {
    width: 100%;
    margin: 0 auto;
}

.slick-slide {
    /*margin: 0 20px;*/
    /*width: 50%;*/
    /*height: 400px;*/
    /*background: red;*/
}

.slick-slide img {
    width: 100%;
    /*width: 850px;*/
    /*height: 450px;*/
}

.slick-slide {
    transition: all ease-in-out .3s;
    opacity: .2;
}

.slick-active {
    opacity: .5;
}

.slick-current {
    opacity: 1;
}


/*Content*/

.content_wrap {
    width: 50%;
    margin: 50px auto;
}


/*Infobox*/

.infobox {
    display: flex;
    margin-bottom: 50px;
}

.infobox img {
    height: 150px;
    width: 150px;
    border-radius: 100%;
}

.infobox div {
    margin-left: 30px;
    line-height: 0.8;
}

.infobox h2 {
    font-size: 20px;
}

.infobox_tel a, .infobox_mail a {
    color: #328f6c;
    text-decoration: none;
}


.content {
    margin-bottom: 50px;
}


.head {
    font-size: 18px;
}


/*.album {*/
/*    margin-bottom: 20px;*/
/*}*/

/*.album a {*/
/*    text-decoration: none;*/
/*}*/


/*Hover albums*/

.hover {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.hover:hover {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}

.count {
    display: none;
    color: #fff;
    font-size: 18px;
    line-height: 80px;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
}

.hover:hover .count {
    display: block;
}


.hover-open {
    display: block;
    position: relative;
    width: 280px;
    height: 280px;
}

.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.open {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    color: #fff;
    font-size: 20px;
    transition: opacity .4s linear
}

.open:hover {
    opacity: 1;
}


/*----------------------------*/

/*Albums*/

/*!*https://mycollages.ru/standartnye-shablony/  - Коллажи для обложки альбома*!*/

#albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 20px;
}


.album[data-id="1"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage1.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}


.album[data-id="2"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage2.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.album[data-id="3"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage3.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.album[data-id="4"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage4.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.album[data-id="5"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage5.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.album[data-id="6"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage6.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.album[data-id="7"] {
    /*height: 280px;*/
    /*width: 280px;*/
    background: url(../img/covers/collage7.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}


@media (min-width: 1024px)  {
   .album {
       width: calc(100% / 3 - 20px);
       aspect-ratio: 1 / 1;
   }
}

@media (min-width: 500px) and (max-width: 1024px) {
    .album {
        width: calc(100% / 2 - 20px);
        aspect-ratio: 1 / 1;
    }
}

@media (min-width: 300px) and (max-width: 500px) {
    .album {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}

.album {
    /*height: 280px;*/
    /*width: 280px;*/
    cursor: pointer;
    display: inline-block;
    margin-bottom: 25px;
}

.album h4 {
    font-weight: 500;
    position: absolute;
    color: #328f6c;
    font-size: 16px;
    margin: 0;
}

/*Albums pictures*/


/*.album-picture {*/
/*    display: flex;*/
/*    justify-content: start;*/
/*    flex-wrap: wrap;*/
/*    gap: 20px;*/
/*}*/

.picture img {
    width: 280px;
    height: 280px;
}


/**/
.album-picture {
    display: none;
}

.album-picture.active {
    /*display: block;*/
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 20px;
}


#back-button {
    display: none;
    margin-bottom: 20px;
    /*margin: 10px;*/
    /*padding: 10px;*/
    /*border: 1px solid #000;*/
    cursor: pointer;
    color: grey;
}


/*.certificates h3 {*/
/*    margin: 30px 0;*/
/*}*/

#certificates img {
    width: 500px;
}

.about-my-self {
    text-align: justify;
    margin-bottom: 50px;
}



@media (max-width: 400px) {
    .content_wrap {
        width: 85%;
    }
}

@media (min-width: 967px) and (max-width: 1160px) {
    .content_wrap {
        width: 60%;
    }
}

@media (min-width: 300px) and (max-width: 967px) {
    .content_wrap {
        width: 70%;
    }
}

@media (min-width: 300px) and (max-width: 520px) {
    .infobox {
        display: block;
        text-align: center;
    }

    .infobox div {
        margin-left: 0;
    }

}

.album img {
    width: 100%;
}

.name-album {
    display: none;
    font-size: 20px;
    margin-bottom: 10px
}

#certificates {
    display: flex;
    gap: 20px;
}