@import url('/fonts/nanum-square-round/nanum-square-round.css');

.section-hero-02 {
    --template-image-height-desktop: 700;
    --template-image-height-mobile: 272;
    position: relative;
    width: 100%;
    height: min(700px, var(--template-image-height, 700px));
    overflow: hidden;
    background: #fff;
    color: #191919;
    font-family: var(--font-nanum-square-round);
}

.section-hero-02 > img {
    position: absolute;
    inset: 0;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    left: 50%;
    right: auto;
    width: max(100%, calc(1920 * var(--template-layout-unit)));
    max-width: none;
    transform: translateX(-50%);
}

.section-hero-02:has(> img) {
    color: #fff;
}

.section-hero-02-content {
    position: absolute;
    bottom: 100px;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.section-hero-02-content h1 {
    margin: 0;
    font-size: clamp(20px, calc(24 * min(1px, 100vw / 1440)), 24px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.58px;
    text-shadow: 0 1px 1px #00000029;
}

section.section-hero-02[data-image-height-root]:not([data-image-height]) {
    --template-image-height: calc(700 * var(--template-layout-unit));
}

@media (min-width: 601px) {
    .section-hero-02-content {
        bottom: calc(100 * var(--template-layout-unit));
    }
}

@media (max-width: 600px) {
    /* Mobile choices change title alignment only; photo sizing is shared. */
    .section-hero-02 {
        height: var(--template-image-height, calc(272 * var(--template-mobile-unit)));
    }

    section.section-hero-02[data-image-height-root]:not([data-image-height]),
    section.section-hero-02[data-image-height-root][data-mobile-image-height="default"] {
        --template-image-height: calc(272 * var(--template-mobile-unit));
    }

    /* Keep explicit mobile image heights effective through this template's 600px breakpoint. */
    section.section-hero-02[data-image-height-root][data-mobile-image-height="default"] {
        height: var(--template-image-height) !important;
    }

    section.section-hero-02[data-image-height-root]:is([data-mobile-image-height="fixed"], [data-mobile-image-height="responsive"], [data-mobile-image-height="viewport"]) {
        height: var(--image-height-mobile) !important;
    }

    section.section-hero-02[data-image-height-root][data-mobile-image-height]:not([data-mobile-image-height="natural"]) > img[data-image-height-image] {
        height: 100% !important;
    }

    .section-hero-02 > img {
        left: 0;
        width: 100%;
        transform: none;
    }

    .section-hero-02 .section-hero-02-content {
        bottom: 20px;
        padding: 0 20px;
    }

    .section-hero-02 .section-hero-02-content h1 {
        font-size: 16px;
        line-height: 1.125;
        letter-spacing: -.38px;
    }

    .section-hero-02[data-mobile-hero-layout="center"] .section-hero-02-content {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}
