/* Styles de base pour le bloc Instagram */
.neptune-feed-instagram {
    padding: 60px 0;
}

.neptune-feed-instagram__header {
    text-align: center;
    margin-bottom: 30px;
}

.neptune-feed-instagram__title {
    /* font-size: 1.6rem;
    letter-spacing: .1em; */
    text-align: left;
    text-transform: uppercase;
    font-weight: 500;
}

.neptune-feed-instagram__body {
    position: relative;
}

.neptune-feed-instagram__viewport {
    scroll-behavior: smooth;
}

.neptune-feed-instagram__track {
    gap: 20px;
}

.neptune-feed-instagram__item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mode statique : moins de 6 images */
.neptune-feed-instagram__body.is-static .neptune-feed-instagram__viewport {
    overflow: visible;
}

.neptune-feed-instagram__body.is-static .neptune-feed-instagram__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.neptune-feed-instagram__body.is-static .neptune-feed-instagram__item {
    width: 100%;
}

/* Mode carrousel */
.neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__viewport {
    overflow: hidden;
}

.neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__track {
    display: flex;
    align-items: stretch;
}

.neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__item {
    flex: 0 0 auto;
    width: calc((100% - 80px) / 5);
}

.neptune-feed-instagram__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: none;
    outline: none;
    box-shadow: none;
}

.neptune-feed-instagram__nav--prev {
    left: -40px;
}

.neptune-feed-instagram__nav--next {
    right: -40px;
}

.neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.neptune-feed-instagram__nav:focus,
.neptune-feed-instagram__nav:active {
    outline: none;
    box-shadow: none;
}

.neptune-feed-instagram__nav-img {
    display: block;
    width: 13px;
    height: auto;
}

@media (max-width: 768px) {
    .neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__item {
        width: calc((100% - 60px) / 4);
    }

    .neptune-feed-instagram__body.is-static .neptune-feed-instagram__track {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 576px) {
    .neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__viewport::-webkit-scrollbar {
        display: none;
    }

    .neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__item {
        width: calc((100% - 40px) / 3);
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__item {
        width: 75%;
    }
    section.neptune-feed-instagram {
        margin-right: calc(-1 * var(--margin-right-mobile));
    }
    .neptune-feed-instagram__nav--next {
        right: -25px;
    }
    .page-home #carousel ul.carousel-inner {
        height: 700px;
    }
    .carousel .carousel-item .caption .caption-description p a {
        text-decoration: underline;
        text-transform: uppercase;
    }
    .carousel .carousel-item .caption a,
    .carousel .carousel-item .caption .caption-description,
    .carousel .carousel-item .caption h2 {
        margin: 0;
    }
    .carousel div.direction {
        display: none;
    }
    .neptune-feed-instagram__body.is-carousel .neptune-feed-instagram__nav {
        display: none;
    }
}

