.slider-photo {
    padding: 32px 0;
    background-color: var(--bg);
    padding-inline: 20px;
}

@media screen and (min-width: 768px) {
    .slider-photo {
        padding: 64px 0;
        padding-inline: 20px;
    }
}

.th-dark .slider-photo {
    --dot: var(--neutre-40);
    --dot-active: var(--neutre-100);
    --bg: var(--white);
}

.th-dore .slider-photo {
    --dot: var(--ocre-40);
    --dot-active: var(--ocre-100);
    --bg: var(--white);
}

.th-light .slider-photo {
    --dot: var(--neutre-40);
    --dot-active: var(--neutre-100);
    --bg: var(--ocre-20);
}

.slider-photo--container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

@media screen and (min-width: 768px) {
    .slider-photo--container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 64px;
    }
}

@media screen and (min-width: 768px) {
    .slider-photo--title {
        max-width: 75%;
    }
}

@media screen and (min-width: 1248px) {
    .slider-photo--title {
        padding: 0;
    }
}

.slider-photo h2 {
    font-size: 28px;
    /* line-height: 48px; */
    padding: 0 20px;
    text-align: center;
    /* max-width: 534px; */
    margin: auto;
}

@media screen and (min-width: 768px) {
    .slider-photo h2 {
        font-size: 48px;
        line-height: 56px;
        margin-left: 0;
        text-align: left;
        padding-inline: 0;
    }
}

.slider-photo--list .list-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slider-photo--list {
    width: 100%;
}

.slider-photo--list .list-item img {
    height: 210px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    width: 100%;
    background-color: white;
    border-radius: 24px;
}

@media screen and (min-width: 768px) {
    .slider-photo--list .list-item img {
        height: 280px;
    }
}

.slider-photo--list .list-item--infos .name {
    font-family: var(--robotoSlab);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}

.slider-photo--list .list-item--infos .job {
    font-family: var(--roboto);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.slider-photo--btn {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    margin: auto;
}

.slider-photo .owl-stage {
    left: -50px;
}

@media screen and (min-width: 500px) {
    .slider-photo .owl-stage {
        left: 0;
    }
}

.slider-photo .owl-dots {
    display: flex;
    justify-content: center;
    width: calc(100% - 40px);
    margin: 32px auto 0 auto;
}

@media screen and (min-width: 768px) {
    .slider-photo .owl-dots {
        margin: 64px auto 0 auto;
    }
}

.slider-photo .owl-dots .owl-dot {
    height: 1px;
    width: 100%;
    background-color: var(--dot);
    transition: background-color 0.3s ease;
}

.slider-photo .owl-dots .owl-dot.active {
    background-color: var(--dot-active);
}

.slider-photo--navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
    order: 9;
}

@media screen and (min-width: 768px) {
    .slider-photo--navigation {
        width: auto;
        margin-top: 32px;
        margin-left: auto;
        justify-content: flex-start;
        order: unset;
    }
}

.slider-photo .is-placeholder {
    opacity: 0.45;
}

.slider-photo .list-item--image-placeholder {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--dot);
    background: rgba(255, 255, 255, 0.6);
    color: var(--dot-active);
    font-family: var(--roboto);
    font-size: 14px;
}

@media screen and (min-width: 768px) {
    .slider-photo .list-item--image-placeholder {
        min-height: 280px;
    }
}

.acf-block-preview .slider-photo {
    --bg: transparent;
    --dot: #d8c6a0;
    --dot-active: #8a7a5e;
}

.acf-block-preview .slider-photo.th-light {
    --bg: var(--ocre-20, #FFFBF3);
}

.acf-block-preview .slider-photo--container {
    gap: 32px;
    align-items: stretch;
}

.acf-block-preview .slider-photo h2,
.acf-block-preview .slider-photo .section-nav-title {
    color: #1f1f1f;
}

.acf-block-preview .slider-photo--title,
.acf-block-preview .slider-photo--btn {
    padding-inline: 0;
}

.acf-block-preview .slider-photo--list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.acf-block-preview .slider-photo--list .list-item {
    padding: 0;
    border-radius: 0;
    background: transparent;
    min-height: 100%;
    box-sizing: border-box;
}

.acf-block-preview .slider-photo--list .list-item img,
.acf-block-preview .slider-photo .list-item--image-placeholder {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
}

.acf-block-preview .slider-photo--list .list-item--infos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acf-block-preview .slider-photo--list .list-item--infos .name {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
}

.acf-block-preview .slider-photo--list .list-item--infos .job {
    margin: 0;
    font-size: 16px;
    line-height: 28px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acf-block-preview .slider-photo--preview-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.acf-block-preview .slider-photo--preview-thumb {
    flex: 1 1 150px;
    width: 100%;
    max-width: 150px;
    overflow: hidden;
}

.acf-block-preview .slider-photo--preview-thumb img,
.acf-block-preview .slider-photo--preview-thumb .list-item--image-placeholder {
    width: 100%;
    height: 72px;
    min-height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.acf-block-preview .slider-photo--preview-thumb-title {
    margin: 8px 0 0;
    color: var(--neutre-100, #1e1e1e);
    font-family: var(--roboto);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acf-block-preview .slider-photo .owl-dots,
.acf-block-preview .slider-photo .owl-nav {
    display: none !important;
}

.acf-block-preview .slider-photo .slider-photo--navigation {
    display: none !important;
}

@media screen and (max-width: 1199px) {
    .acf-block-preview .slider-photo--list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .acf-block-preview .slider-photo--list {
        grid-template-columns: minmax(0, 1fr);
    }
}
