/* -- Section -- */
.moma-carousel-section {
    position: relative;
    /* NO overflow:hidden — slides must bleed left */
}

/* -- Inner wrapper -- */
.moma-carousel-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* -- Header -- */
.moma-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.moma-carousel-heading {
    font-weight: 400;
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin: 0;
    line-height: 1.15;
}

/* -- Nav arrows -- */
.moma-carousel-nav {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    position: relative;
    right: -15px;
    top: 0;
}

/* -- Nav arrows -- */
.moma-carousel-nav {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    position: relative;
    right: -15px;
    top: 0;
}

.moma-carousel-nav button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.moma-carousel-nav button:hover {
    opacity: 0.6;
}

.moma-carousel-nav button.swiper-button-disabled {
    opacity: 0.2;
    cursor: default;
}

/* -- Swiper — the magic --
   overflow:visible lets slides exist outside the container.
   The page-level overflow-x:clip prevents a horizontal scrollbar. */
.moma-swiper {
    overflow: visible !important;
}

/* -- Slide -- */
.moma-slide {
    width: auto; /* overridden by Elementor responsive control */
    flex-shrink: 0;
}

/* Template-based slides should respect their inner layout */
.moma-slide--template {
    width: auto;
}

.moma-slide--template > .elementor {
    width: 100%;
}

.moma-slide-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.moma-slide-link:hover {
    text-decoration: none;
    color: inherit;
}

/* -- Image -- */
.moma-slide-image-wrap {
    overflow: hidden;
    line-height: 0;
}

.moma-slide-image-wrap img {
    display: block;
    width: 100%;
    height: 320px; /* overridden by Elementor control */
    object-fit: cover;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.moma-slide-link:hover .moma-slide-image-wrap img {
    transform: scale(1.02);
}

/* -- Text content -- */
.moma-slide-content {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.moma-slide-title {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
}

.moma-slide-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cc0000;
    margin: 0;
}

.moma-slide-author,
.moma-slide-date {
    font-size: 0.9rem;
    color: #767676;
    margin: 0;
}

.moma-slide-excerpt {
    font-size: 0.875rem;
    color: #767676;
    margin: 0;
    line-height: 1.5;
}

/* -- Prevent horizontal scrollbar from left bleed -- */
html.moma-carousel-active,
html.moma-carousel-active body {
    overflow-x: clip;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .moma-carousel-nav {
        gap: 0.2rem;
        right: 0px;
    }

    .moma-carousel-nav button {
        padding: 0;
    }
}
@media (max-width: 767px) {
    .moma-carousel-inner {
        padding: 0 1rem;
    }

    .moma-slide-image-wrap img {
        height: 220px;
    }
}
