/* components/hero/SplitHero.module.scss */
.mk-split-hero { padding-top: var(--segment-padding); padding-bottom: var(--segment-padding); }
.mk-split-hero__layout {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
    .mk-split-hero__layout {
        gap: 3rem;
        padding-top: 3rem;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: 1fr auto;
    }
}
.mk-split-hero__title {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    margin-top: 3rem;
    margin-bottom: -4rem;
}
@media (min-width: 420px) { .mk-split-hero__title { margin-bottom: -5rem; } }
@media (min-width: 720px) { .mk-split-hero__title { grid-column: 1 / 7; } }
@media (min-width: 960px) { .mk-split-hero__title { grid-column: 2 / 8; } }
@media (min-width: 1440px) { .mk-split-hero__title { grid-column: 2 / 7; } }

.mk-split-hero__credit { align-self: flex-end; }
@media (min-width: 720px) { .mk-split-hero__credit { grid-column: 1 / 7; grid-row: 2 / 3; } }
@media (min-width: 960px) { .mk-split-hero__credit { grid-column: 2 / 7; } }
/* Type: the blocks' text styles (title hero-title, label eyebrow); the credit link is a
   minkButton (variant "text") in the span .ts-credit round it. */

.mk-split-hero__decoration {
    position: relative;
    background: #00000022;
    height: clamp(23rem, calc(23rem + 42 * ((100vw - 48rem) / 80)), 65rem);
}
@media (min-width: 720px) { .mk-split-hero__decoration { grid-column: 8 / 13; grid-row: 1 / 3; } }
@media (min-width: 1440px) { .mk-split-hero__decoration { grid-column: 7 / 12; } }
.mk-split-hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Editable look (unset = the original): space, gap, image corners/fill/format,
   title alignment, image on the left. */
.mk-split-hero {
    padding-top: var(--mk-space-top, var(--segment-padding));
    padding-bottom: var(--mk-space-bottom, var(--segment-padding));
}
.mk-split-hero__layout { gap: var(--mk-split-hero-gap, 1.5rem); }
@media (min-width: 720px) { .mk-split-hero__layout { gap: var(--mk-split-hero-gap, 3rem); } }
.mk-split-hero__decoration {
    background: var(--mk-split-hero-fill, #00000022);
    border-radius: var(--mk-split-hero-radius, 0);
}
.mk-split-hero[style*="--mk-split-hero-radius"] .mk-split-hero__decoration { overflow: hidden; }
.mk-split-hero--valign-start .mk-split-hero__title { align-self: start; }
.mk-split-hero--valign-center .mk-split-hero__title { align-self: center; }
.mk-split-hero--valign-end .mk-split-hero__title { align-self: end; }
.mk-split-hero[class*="mk-split-hero--ratio-"] .mk-split-hero__decoration { height: auto; align-self: center; }
.mk-split-hero--ratio-1-1 .mk-split-hero__decoration { aspect-ratio: 1 / 1; }
.mk-split-hero--ratio-4-5 .mk-split-hero__decoration { aspect-ratio: 4 / 5; }
.mk-split-hero--ratio-3-4 .mk-split-hero__decoration { aspect-ratio: 3 / 4; }
.mk-split-hero--ratio-4-3 .mk-split-hero__decoration { aspect-ratio: 4 / 3; }
.mk-split-hero--ratio-16-9 .mk-split-hero__decoration { aspect-ratio: 16 / 9; }
@media (min-width: 720px) {
    .mk-split-hero--reverse .mk-split-hero__title { grid-column: 7 / 13; }
    .mk-split-hero--reverse .mk-split-hero__credit { grid-column: 7 / 13; }
    .mk-split-hero--reverse .mk-split-hero__decoration { grid-column: 1 / 6; }
}
@media (min-width: 960px) {
    .mk-split-hero--reverse .mk-split-hero__title { grid-column: 6 / 12; }
    .mk-split-hero--reverse .mk-split-hero__credit { grid-column: 7 / 12; }
}
@media (min-width: 1440px) {
    .mk-split-hero--reverse .mk-split-hero__title { grid-column: 7 / 12; }
    .mk-split-hero--reverse .mk-split-hero__decoration { grid-column: 2 / 7; }
}

/* The photographer credit is a minkButton (variant "text"); the original's credit link
   has the text style "credit" (body font, no capitals) from the span round it and sits
   0.4rem to the left. */
.mk-split-hero__credit .mk-button--text {
    margin-left: -0.4rem;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
