
/* ============================= */
/* VARIABLE HEADER */
/* ============================= */
:root {
    --header-height: 90px;
}

/* ============================= */
/* THUMBNAILS */
/* ============================= */
.video-thumbnail,
.podcast-thumbnail {
    position: relative;
    cursor: pointer;
}

.video-thumbnail .img-video,
.podcast-thumbnail .img-podcast {
    display: block;
    width: 100%;
    height: 450px;
    mix-blend-mode: multiply;
}

@media screen and (min-width: 768px) {
    .video-thumbnail .img-video,
    .podcast-thumbnail .img-podcast {
        aspect-ratio: 11 / 10;
    }
}

@media screen and (max-width: 768px) {
    .video-thumbnail .img-video,
    .podcast-thumbnail .img-podcast {
        height: 330px;
    }
}

/* ============================= */
/* PLAY BUTTON */
/* ============================= */
.video-play-btn,
.podcast-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.video-play-btn img,
.podcast-play-btn img {
    width: 20px;
    height: 30px;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ============================= */
/* BLOC PARENT - contexte popup */
/* ============================= */
@media screen and (max-width: 1024px) {
    .single-poste-detail__content--top {
        position: relative;
    }
}

/* ============================= */
/* FANCYBOX STRUCTURE */
/* ============================= */

/* Desktop > 1024px : plein écran */
.fancybox__container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9000 !important;
}

@media screen and (max-width: 1024px) {
    .fancybox__container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 100 !important;

        @media screen and (max-width : 1024px) { padding: 10px 0 !important;}
    }
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.75) !important;
}

/* ============================= */
/* SLIDE - desktop               */
/* ============================= */
.fancybox__slide.has-inline {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: calc(var(--header-height) + 110px) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 40px !important;
    box-sizing: border-box;
}

/* ============================= */
/* SLIDE - mobile/tablette       */
/* ============================= */
@media screen and (max-width: 1024px) {
    .fancybox__slide.has-inline {
        justify-content: center !important;
        align-items: center !important;
        padding: 40px 10px 10px 10px !important;
    }
}

/* ============================= */
/* CONTENU */
/* ============================= */
.fancybox__content {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ============================= */
/* POPUP VIDEO */
/* ============================= */
.media-popup {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

.media-popup__inner {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;

    @media screen and (min-width : 1024px) { max-height: 480px;}
    
    @media screen and (max-width:1024px ) {
        margin-top: 1rem;
    }
}

/* ============================= */
/* IFRAME */
/* ============================= */
.media-popup iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ============================= */
/* BOUTON FERMER */
/* ============================= */
.fancybox__content > .carousel__button.is-close {
    position: absolute;
    top: -55px !important;
    left: 0;
    border: 2px solid white;
    border-radius: 8px;
}

.fancybox__content > .carousel__button.is-close::before {
    content: "Fermer";
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: underline;
    font-size: 18px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

@media screen and (max-width: 1024px) {
    .fancybox__content > .carousel__button.is-close {
        top: -40px !important;
    }
}

/* ============================= */
/* PODCAST PLAYER */
/* ============================= */
@media (max-width: 640px) {
    .shk[data-fixed-type=auto] {
        bottom: inherit !important;
        padding: 0 10px;
    }
}

.shk-player {
    background-color: white !important;
    margin-top: 15rem !important;
    
    @media screen and (max-width:1024px) {
        top: 130px !important;
    }

    @media screen and (max-width:768px) {
        top: 100px !important;
    }

    @media screen and (max-width : 480px) {
        top: 80px !important;
    }
}

@media screen and (max-width: 1024px) {
    .shk-player {
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .shk-player {
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 500px) {
    .shk-player {
        margin-top: 0 !important;
    }
}

.shk-bar,
.shk-controls_extra {
    background: white !important;
}

.shk-btn,
.shk-time,
.shk-artist,
.shk-title,
.shk-title_wrap[data-overflow] .shk-title_inner:after {
    fill: black !important;
    color: black !important;
}

/* ============================= */
/* DIVERS */
/* ============================= */
.single-back.is-hidden {
    display: none;
}

/* ============================= */
/* SLIDE - ajustement mobile     */
/* ============================= */
@media screen and (max-width: 768px) {
    .single-poste-detail__content--top {
        min-height: 200px;
    }
}

@media screen and (max-width: 1024px) {
    .single-poste-detail__content--top:has(.fancybox__container) {
        padding: 6rem 0 !important;
        @media screen and (max-width : 500px) {
            padding: 1.5rem 0 !important;
        }
    }

    .single-poste-detail.popup-open {
        padding: 0 !important;
    }
}

