﻿
body .lg-backdrop {
    background-color: rgba(0, 0, 0, 0.2);
}

.bloc-photos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%
}

.bloc-photos h1 {
    color: var(--color-black);
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.photogrid {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 500px;
    width: 100%;
    gap: 8px;
}

.photogrid-options {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 200px;
    width: 100%;
    gap: 16px;
}

.lg-outer {
    background: var(--Colors-BE-NOIR);
}

.lg-outer .lg-thumb-outer {
    background-color: rgba(0, 0, 0, .3) !important;
}

.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html {
    width: fit-content;
}

.lg-outer .lg-toogle-thumb {
    background-color: rgba(0, 0, 0, .45) !important;
    right: 0 !important;
}

body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object {
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
}

.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover, .lg-outer .lg-thumb-item {
    border: none!important;
}

.large-photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px 0px 0px 8px;
}

figure.large-photo.OnlyOnePhotos {
    border-radius: 8px;
}

.small-photos {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.large-photo a, .small-photo a {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-photo {
    height: 50%;
    overflow: hidden;
}

.large-photo img,
.small-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.small-photo:first-child {
    border-radius: 0 10px 0px 0;
}

figure.small-photo.last {
    border-radius: 0 0 10px 0;
}

.small-photo:last-child {
    position: relative;
    border-radius: 0px 0px 10px 0px;
}

/* Quand on a que 2 photos */

.second-photo, .second-photo img {
    display: flex;
    width: 300px;
    height: 500px;
    object-fit: cover;
    border-radius: 0 8px 8px 0;
}

.second-photo-option, .second-photo-option img {
    display: flex;
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 0 8px 8px 0;
}

.more-photos {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(128,128,128,0.2);
    backdrop-filter: blur(2px);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-photos-mobile {
    display: none;
}

.shared-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 5px;
    background: rgba(128,128,128,0.2);
    backdrop-filter: blur(2px);
    display: flex;
    padding: 5px;
    align-items: center;
    justify-content: center;
}

.shared-icon i {
    font-size: 30px;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
}

.more-photos i {
    font-size: 30px;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
}

.pswp img {
    max-width: 1200px!important;
}

/* Bloc PHOTOS SINGLE */
.gallery-single .large-photo {
    height: 500px!important;
    border-radius: 10px;
    margin: 0;
}

div#gallery .slick-dots {
    display: flex;
    list-style: none;
    position: absolute;
    top: 90%;
    left: 50%;
    gap: 10px;
}

div#gallery .slick-dots li {
    background: url(../img/../../../img/icons/Ellipse.svg);
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
div#gallery .slick-dots li button {
    display: none;
}

div#gallery .slick-dots li.slick-active {
    background: url(../img/../../../img/icons/Ellipse-active.svg);
    fill: rgba(255, 255, 255, 0.75);
    stroke-width: 0.5px;
    stroke: #FFF;
    backdrop-filter: blur(2px);
}

div#gallery .slick-dots li:not(.slick-active) {
    fill: rgba(255, 255, 255, 0.15);
    stroke-width: 0.5px;
    stroke: #FFF;
    backdrop-filter: blur(2px);
}

.small-photo .shared-icon-mobile,
.small-photo .more-photos-mobile, .shared-icon-mobile {
    display: none;
}

/* Bloc Phoos Modal Resources */

.modalResource .photogrid {
    height: 250px;
}

.modalResource.large-photo {
    width: 350px;
    height: 250px;
}

.modalResource .second-photo {
    display: none
}

/* MEDIA QUERIES */

@media (min-width: 769px) and (max-width: 1024px) {

    .bloc-photos h1 {
       color: var(--Colors-BE-NOIR, #000);
        font-family: Inter;
        font-size: 24px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

}

@media (max-width: 768px) {

    .more-photos i, .shared-icon i {
        font-size: 24px;
    }

    .bloc-photos {
        gap: 20px;
    }

    .bloc-photos h1 {
        font-size: 20px;
    }

/*    .photogrid {
        flex-direction: column;
        height: auto;
    }*/

    .more-photos-mobile i, .shared-icon-mobile i {
        color: var(--color-white);
        font-size: 20px;
        display: flex;
    }

    .photogrid .large-photo {
        width: 100%;
        border-radius: 10px;
    }

    .large-photo img {
        border-radius: 10px;
    }

    .photogrid .small-photos {
        flex-direction: row;
        width: 100%;
        height: auto;
        display: none;
    }

    .photogrid .small-photo {
        width: 50%;
    }

    .small-photo:first-child {
        border-radius: 0 0 0 10px;
    }

    .small-photo a.my-gallery-item img {
        height: 135px;
    }

    .small-photo:last-child {
        border-radius: 0px 0px 10px 0px;
        height: 136px;
    }

    .shared-icon-mobile {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .more-photos-mobile {
        display: block;
        border-radius: 5px;
        background: rgba(128,128,128,0.2);
        backdrop-filter: blur(2px);
        padding: 5px;
        position: absolute;
        bottom: 10px;
        right: 10px;
    }

    .large-photo {
        position: relative;
    }

    /* Gallery single */

    .gallery-single {
        height: 200px;
    }

    .gallery-single .large-photo {
        height: 200px !important;
        border-radius: 10px;
        margin: 0;
    }
}