/* ==========================================================================
   Section: media-carousel (Figma 1:1911)
   ========================================================================== */

.sec-media-carousel {
    padding: 60px 0;
    background: #fbf7f8;
    /* Safety clip for the 100vw scrollbar offset of the bleeding track */
    overflow: hidden;
}

.mc__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.mc__title {
    margin: 0 0 60px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.2;
    color: var(--c-black);
}

/* Track bleeds from the grid's left edge to the right viewport edge,
   so the fractional next slide is cut by the screen, as designed */
.mc__swiper {
    width: calc(100% + (100vw - min(var(--content-max), 100vw)) / 2 + var(--pad-x));
}

/* Media card */
.mcard {
    display: flex;
    flex-direction: column;
    height: auto;
}

.mcard__media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.mcard__img {
    display: block;
    width: 100%;
    aspect-ratio: 405 / 235;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mcard:hover .mcard__img {
    transform: scale(1.04);
}

.mcard__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-primary);
}

.mcard__link:hover .mcard__name,
.mcard__link:focus-visible .mcard__name {
    text-decoration: underline;
    text-underline-position: from-font;
}

.mcard__link .udi-icon {
    flex-shrink: 0;
}

/* Controls bar */
.mc__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
}

.mc__dots {
    display: flex;
    gap: 8px;
}

.mc__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mc__dots .swiper-pagination-bullet-active {
    opacity: 1;
}

.mc__nav {
    display: flex;
    gap: 16px;
}

.mc__arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--c-white);
    border: 1px solid var(--c-black);
    border-radius: 50%;
    color: var(--c-black);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.mc__arrow:hover,
.mc__arrow:focus-visible {
    background: var(--c-black);
    color: var(--c-white);
}

.mc__arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .sec-media-carousel {
        padding: 40px 0;
    }

    .mc__title {
        margin-bottom: 32px;
    }

    .mcard__link {
        margin-top: 16px;
    }

    .mc__bar {
        margin-top: 32px;
    }
}
