/* SECTION */
article.cliquable{
    height: inherit;
    cursor: pointer;
    height: fit-content;
}
.content_section{
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    padding: 30px;
    height: fit-content;
    overflow: hidden;
    width: 255px;
    margin: auto;
}
.content_section.with-border{
    padding: 0;
    width: auto;
    margin: inherit;
}
.content_section.with-border img{
    border-radius: 20px;
    border: 5px solid #004aad;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    aspect-ratio: 3/2;
}
.content_section.with-border p{
    max-width: none;
    font-weight: 600;
}
#site-esat .content_section img{
    aspect-ratio: auto;
}
.content_section img.svg-icon{
    height: 100px !important;
}
.content_section img{
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
}
.content_section p{
    text-align: center;
    max-width: 200px;
}

/* OVERLAY VIDEO */
.custom-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
}
.overlay-content {
    display: flex;
    align-items: center;
    padding-top: 95px;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}
.overlay-content .nav{
    position: fixed;
    bottom: 160px;
    z-index: 20;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.overlay-content .close,.overlay-content .script {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.overlay-content .close i::before {
    font-size: 30px;
}

.video-container{
    width: 100%;
    position: relative;
    height: 100%;
    max-height: 80vh;
    max-width: 80vw;
}
.overlay-video-container{
    width: 100%;
    height: 100%;
}
.video-container video, .video-container iframe{
    height: 100%;
    object-fit: contain;
}

.section-content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 15px;
}
.section-content img{
   max-width: 70px !important;
}
.section-content p{
    font-weight: bold;
    font-size: 25px;
}

.script-overlay {
    display: none;
    position: absolute;
    padding: 30px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    overflow: auto;
}
.script-overlay .script-container{
    width: fit-content;
    margin: auto;
}
.script-overlay .script-container h2{
    font-size: 20px;
    text-align: center;
}
.script-overlay .script-container p{
   text-align: left;
}

.script-overlay::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #cacaca;
}
.script-overlay::-webkit-scrollbar-thumb {
    background: #535353;
}

.script-overlay::-moz-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #cacaca;
}
.script-overlay::-moz-scrollbar-thumb {
    background: #535353;
} 


@media (max-width: 960px){
    .content_section.with-border{
        margin: auto;
        padding: 18px;
    }
    .custom-overlay{
        align-items: center;
    }
    .custom-overlay .overlay-content{
        padding: 80px 10px 10px 10px !important;
        max-width: 100%;
        max-height: 100%;
    }
    .overlay-content video{
        max-height: 70vh;
    }
    .section-content img{
        max-width: 40px !important;
    }
    .section-content p{
       font-size: 15px;
    }
    .video-container{
        max-width: 100%;
        margin: inherit;
    }
    .video-container .portrait video, .video-container .portrait iframe{
        height: 100%;
    }
    .video-container video, .video-container iframe{
        height: calc((100vw * 9) / 16);
    }
    
    .script-overlay .script-container h2{
        font-size: 18px;
    }
    .script-overlay .script-container p{
        font-size: 15px;
     }
    .navigation-section{
        padding: 86px 0 0 0 !important;
    }
}


