/* Linov - Divi Gallery Carousel */
.linov-divi-carousel {
    position: relative;
}

/* On neutralise la pagination native Divi */
.linov-divi-carousel .et_pb_gallery_pagination {
    display: none !important;
}

/* Le conteneur de galerie reste en grille, le JS gère les éléments visibles */
.linov-divi-carousel .et_pb_gallery_items {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    overflow: visible !important;
}

.linov-divi-carousel .et_pb_gallery_item {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: none !important;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .22s ease, transform .22s ease;
}

.linov-divi-carousel .et_pb_gallery_item.linov-carousel-visible {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.linov-divi-carousel .et_pb_gallery_image,
.linov-divi-carousel .et_pb_gallery_image a {
    display: block;
    width: 100%;
}

.linov-divi-carousel .et_pb_gallery_image img {
    display: block;
    width: 100%;
    height: auto;
}

.linov-carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.linov-carousel-arrow {
    appearance: none;
    -webkit-appearance: none;
    width: 46px;
    height: 46px;
    border: 1px solid #252525;
    border-radius: 50%;
    background: transparent;
    color: #252525;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.linov-carousel-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.linov-carousel-arrow:hover:not(:disabled) {
    background: #252525;
    color: #fff;
}

.linov-carousel-arrow:disabled {
    opacity: .28;
    cursor: default;
}

.linov-carousel-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .linov-divi-carousel .et_pb_gallery_items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .linov-divi-carousel .et_pb_gallery_items {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .linov-carousel-controls {
        margin-top: 20px;
        padding-top: 20px;
    }
}
