html{
    font-family: 'Italiana','Arsenal','Cinzel','Comfortaa','Montserrat','Raleway', sans-serif;
}
main{
    width: 100vw;
    position: relative;
    --gold: #ffd978;
    --lightBrown1: rgb(189, 149, 122);
    --lightBrown2: rgb(175, 165, 142);
    --lightBrown3: rgb(215, 173, 136);
    --lightBrown4: rgb(213, 189, 157);
}
svg{
    overflow: inherit;
}
nav{
    background: #a7a7a7;
}
.main_title{
    position: absolute;
    width: 100%;
    text-align: center;
    top: 10px;
}
.main_title > div{
    width: 30%;
    padding: 10px 20px;
    margin: 0 auto;
}

.tutorials_text{
    width: 80%;
    margin: 5% auto;
    text-align: center;
}
.tutorials_text_title{
    margin:  0 0 30px 0;
}


.gallery_photos, .gallery_videos{
    width: 100%;
    padding: 2% 5%;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: calc(70px + 24 * ((100vw - 320px)/(1440 - 320)));;

}
.gallery_photos > svg{
    position: absolute;
    top:0;
    width: 100%;
    margin-top: -0.1vh;
}
.gallery_photos_elem{
    display: flex;
    flex-direction: column;
    max-width: 400px;
    align-items: center;
    justify-content: center;
}
.gallery_photos_elem > video{
    height: auto;
    width: 100%;
    background-color: white;
}
.gallery_photos_elem:first-child > video{
    height: 80%;
}

.gallery_photo{
    max-width: 400px;
    position: relative;
    cursor: pointer;
}
.gallery_photo > img, .gallery_photo video{
    max-width: 100%;
}
.gallery_photo_title{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 2% 0;
    font-size:calc(16px + 2 * ((100vw - 800px)/(1440 - 800)));
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}
.gallery_procedure,.gallery_type, .gallery_number{
    box-shadow: 0 0 12px 0 rgba(95, 99, 103, 0.4);
    text-align: center;
    margin: 2% 0;
    padding: 2%;
    background: white;
}
.gallery_details{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gallery_videos{
    padding-bottom: 80px;
    margin-top: 50px;
}
.gallery_videos .main_title > div{
    margin: 0 auto;
}
.gallery_videos .gallery_photos_elem .gallery_photo_title .gallery_procedure,
.gallery_videos .gallery_photos_elem .gallery_photo_title .gallery_type,
.gallery_videos .gallery_photos_elem .gallery_photo_title .gallery_number{
    background: #FFFFFF;
}

.gallery_videos .gallery_photo{
    position: relative;
    cursor: pointer;
}
.button_bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s all;
}
.button_bg.active{
    opacity: 1;
    z-index: 2;
    pointer-events: all;
    transition: 0.2s all;
}
.button_video{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s all;
    max-width: 40px;
    max-height: 40px;
}




@media screen and (max-width: 800px) {

    .main_title > div{
        width: 80%;
        margin: 0 auto;
    }
    .gallery_videos .main_title > div{
        margin: 0 auto;
    }

    #button_to_procedure{
        width: 80%;
    }
}