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

.intro-07 {
    --intro-07-unit: min(1px, calc(100vw / 1440));
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(180 * var(--intro-07-unit)) 24px 180px;
    background: #fff;
    color: #191919;
    font-family: var(--font-nanum-square-round);
}

.intro-07 *, .intro-07 *::before, .intro-07 *::after {
    box-sizing: border-box;
}

.intro-07-inner {
    display: grid;
    grid-template-columns: 428fr 492fr 428fr;
    grid-template-areas: "arch copy round";
    align-items: center;
    width: min(100%, calc(1348 * var(--intro-07-unit)));
    margin: 0 auto;
}

.intro-07-photo {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    box-shadow: 5px 5px 10px #0000001a;
}

.intro-07-photo--arch {
    grid-area: arch;
    aspect-ratio: 428 / 460;
    border-radius: 999px 999px 10px 10px;
}

.intro-07-photo--round {
    grid-area: round;
    aspect-ratio: 1;
    border-radius: 50%;
}

.intro-07-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-07-content {
    grid-area: copy;
    justify-self: center;
    width: min(calc(100% - 32px), calc(356 * var(--intro-07-unit)));
    min-width: 0;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.intro-07-content h2 {
    margin: 0 0 calc(24 * var(--intro-07-unit));
    font-size: clamp(20px, calc(24 * var(--intro-07-unit)), 24px);
    font-weight: 700;
    line-height: 1.667;
}

.intro-07-body {
    font-size: clamp(14px, calc(16 * var(--intro-07-unit)), 16px);
    line-height: 1.5;
    letter-spacing: -.77px;
}

/* Empty / single-photo sections remain useful without ghost image frames. */
.intro-07[data-photo-count="0"] .intro-07-inner {
    grid-template-areas: "copy";
    grid-template-columns: 1fr;
}

.intro-07[data-photo-count="1"] .intro-07-inner {
    grid-template-columns: 428fr 492fr;
    grid-template-areas: "arch copy";
    max-width: calc(920 * var(--intro-07-unit));
}

/* Keep the 1920px photo sizes through 1440px, scaling only below that width.
   Narrow tablets reflow the text instead of squeezing it between two photos. */
@media (max-width: 900px) {
    .intro-07-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "arch round" "copy copy";
        gap: 40px 24px;
        max-width: 640px;
    }

    .intro-07-photo {
        width: min(100%, calc(428 * var(--intro-07-unit)));
        justify-self: center;
    }

    .intro-07-content {
        width: 100%;
    }

    .intro-07-content h2 {
        margin-bottom: 14px;
    }

    .intro-07-body {
        font-size: 16px;
    }

    .intro-07[data-photo-count="1"] .intro-07-inner {
        grid-template-columns: 1fr;
        grid-template-areas: "arch" "copy";
        max-width: 640px;
    }
}

@media (max-width: 600px) {
    .intro-07 {
        padding: 60px 5px 40px;
    }

    .intro-07-inner {
        grid-template-columns: 1fr;
        grid-template-areas: "arch" "copy" "round";
        gap: 40px;
    }

    .intro-07-photo {
        width: min(100%, 260px);
    }

    .intro-07-photo--arch {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .intro-07-content h2 {
        margin: 0 0 4px;
        font-size: 20px;
        line-height: 24px;
    }

    .intro-07-content {
        width: 100%;
    }

    .intro-07-body {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -.67px;
    }

    .intro-07-photo--round {
        /* Space for an editable sticker between the copy and the second photo. */
        margin-top: 75.52px;
    }

    .intro-07[data-photo-count="0"],
    .intro-07[data-photo-count="1"] {
        padding-bottom: 140px;
    }
}
