/* =====================================================
   DIAPORAMA DES APPARTEMENTS
   ===================================================== */

.diaporama-bien {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 25px auto 35px;
    overflow: hidden;
    background-color: #000000;
    border-radius: 12px;
}

.diaporama-bien-image {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: contain;
    margin: 0 auto;
    background-color: #000000;
    cursor: zoom-in;
}

.diaporama-bien-fleche {
    position: absolute;
    top: 50%;
    z-index: 20;

    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 48px;
    text-align: center;

    cursor: pointer;
    transform: translateY(-50%);
}

.diaporama-bien-fleche:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.diaporama-bien-precedent {
    left: 15px;
}

.diaporama-bien-suivant {
    right: 15px;
}

.diaporama-bien-compteur {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 20;

    padding: 6px 10px;
    border-radius: 12px;

    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 13px;
}


/* =====================================================
   PHOTO AGRANDIE
   ===================================================== */

.diaporama-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 50px 70px;

    background-color: rgba(0, 0, 0, 0.94);
}

.diaporama-lightbox-ouverte {
    display: flex;
}

.diaporama-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 94%;
    max-height: 92%;
    object-fit: contain;
}

.diaporama-lightbox-fermer {
    position: absolute;
    top: 12px;
    right: 25px;
    z-index: 10020;

    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 52px;
    line-height: 1;

    cursor: pointer;
}

.diaporama-lightbox-fleche {
    position: absolute;
    top: 50%;
    z-index: 10020;

    padding: 10px;
    border: none;
    background: transparent;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 58px;

    cursor: pointer;
    transform: translateY(-50%);
}

.diaporama-lightbox-precedent {
    left: 15px;
}

.diaporama-lightbox-suivant {
    right: 15px;
}

.diaporama-lightbox-compteur {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 10020;

    padding: 6px 12px;
    border-radius: 12px;

    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 14px;

    transform: translateX(-50%);
}


/* =====================================================
   SMARTPHONE
   ===================================================== */

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

    .diaporama-bien {
        width: 100%;
        margin: 20px auto 30px;
        border-radius: 8px;
    }

    .diaporama-bien-image {
        height: 310px;
    }

    .diaporama-bien-fleche {
        width: 40px;
        height: 40px;
        font-size: 24px;
        line-height: 40px;
    }

    .diaporama-bien-precedent {
        left: 7px;
    }

    .diaporama-bien-suivant {
        right: 7px;
    }

    .diaporama-bien-compteur {
        right: 8px;
        bottom: 8px;
    }

    .diaporama-lightbox {
        padding: 55px 8px 45px;
    }

    .diaporama-lightbox-image {
        max-width: 98%;
        max-height: 85%;
    }

    .diaporama-lightbox-fleche {
        font-size: 42px;
        padding: 6px;
    }

    .diaporama-lightbox-precedent {
        left: 2px;
    }

    .diaporama-lightbox-suivant {
        right: 2px;
    }

    .diaporama-lightbox-fermer {
        top: 8px;
        right: 15px;
        font-size: 46px;
    }
}