/* ==========================================================================
   Section: media-text (Figma 1:2409, "O Jodze")
   ========================================================================== */

.sec-media-text {
    padding: 60px 0;
    background: var(--mt-bg, #fbf7f8);
    color: var(--mt-color, #000);
}

.mt__inner {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

/* Media on the right — mirror the corner treatment too */
.sec-media-text--media-right .mt__inner {
    flex-direction: row-reverse;
}

.mt__media,
.mt__content {
    flex: 1 1 0;
    min-width: 0;
}

/* Opposite rounded corners: top-right + bottom-left (as designed) */
.mt__img,
.mt__video {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 640;
    object-fit: cover;
    border-radius: 0 60px 0 60px;
}

.sec-media-text--media-right .mt__img,
.sec-media-text--media-right .mt__video {
    border-radius: 60px 0 60px 0;
}

/* Embedded video (YouTube/Vimeo) — 16:9 with the same corner treatment */
.mt__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0 60px 0 60px;
    overflow: hidden;
}

.sec-media-text--media-right .mt__embed {
    border-radius: 60px 0 60px 0;
}

.mt__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Content */
.mt__tagline {
    margin: 0 0 16px;
    font-family: 'Roboto', var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

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

.mt__text {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.5;
}

.mt__text p {
    margin: 0;
}

.mt__text p + p {
    margin-top: 12px;
}

.mt__text a {
    text-decoration: underline;
    text-underline-position: from-font;
}

/* Outline pill in the section's text color; hover inverts against the bg */
.mt__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 100px;
    color: inherit;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    transition: background 0.15s ease, color 0.15s ease;
}

.mt__btn:hover,
.mt__btn:focus-visible {
    background: var(--mt-color, #000);
    color: var(--mt-bg, #fbf7f8);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .mt__inner,
    .sec-media-text--media-right .mt__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .sec-media-text {
        padding: 40px 0;
    }

    .mt__img,
    .mt__video,
    .mt__embed {
        border-radius: 0 40px 0 40px;
    }

    .sec-media-text--media-right .mt__img,
    .sec-media-text--media-right .mt__video,
    .sec-media-text--media-right .mt__embed {
        border-radius: 40px 0 40px 0;
    }

    .mt__text {
        font-size: 16px;
    }
}
