/* Naver Collection-style 50/50 split: clean images (no shadow), large tight headings,
   bronze accent (#8C4D15) and outlined uppercase buttons.
   NB: Adventure root font is 10px — use px values. */

.text-and-image {
    padding-block: 40px;
}

.text-and-image__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.text-and-image__image-wrapper {
    width: 100%;
}

.text-and-image__image-link {
    display: block;
}

.text-and-image__image {
    display: block;
    width: 100%;
    margin: 0;
    /* !important: the Image component sets an inline aspect-ratio per upload */
    aspect-ratio: 7 / 5 !important;
    object-fit: cover;
}

.text-and-image__content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.text-and-image .text-and-image__text h1,
.text-and-image .text-and-image__text h2,
.text-and-image .text-and-image__text h3 {
    font-weight: 500 !important;
    font-size: 32px !important;
    color: #101213 !important;
    margin: 0 0 20px !important;
    line-height: 1.05 !important;
}

.text-and-image__text h1 strong,
.text-and-image__text h1 span,
.text-and-image__text h2 strong,
.text-and-image__text h2 span,
.text-and-image__text h3 strong,
.text-and-image__text h3 span {
    font-size: inherit !important;
    line-height: inherit !important;
}

.text-and-image__text p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #101213;
}

.text-and-image__text a {
    color: #8c4d15;
    text-decoration: underline;
}

.text-and-image__text .button,
.text-and-image__text a.button,
.text-and-image__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 14px 32px;
    background-color: transparent;
    border: 1px solid #8c4d15;
    color: #8c4d15;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.text-and-image__text .button span,
.text-and-image__text a.button span {
    all: unset;
    color: inherit !important;
}

.text-and-image__text .button:hover,
.text-and-image__text a.button:hover,
.text-and-image__link:hover {
    background-color: #8c4d15;
    color: #fff;
}

/* Text-only: centered narrow intro column like Naver's frontpage manifesto */
.text-and-image--text-only .text-and-image__inner {
    flex-direction: column;
}

.text-and-image--text-only .text-and-image__content {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
    align-items: center;
}

.text-and-image--text-only .text-and-image__text p {
    font-size: 18px;
    line-height: 1.7;
}

.text-and-image--text-only .text-and-image__text .button,
.text-and-image--text-only .text-and-image__text a.button,
.text-and-image--text-only .text-and-image__link {
    align-self: center;
}

/* Adjacent text sections share one gap instead of stacking both paddings */
.text-and-image + .text-and-image {
    padding-block-start: 0;
}

@media (min-width: 770px) {
    .text-and-image {
        padding-block: 64px;
    }

    .text-and-image__inner {
        flex-direction: row;
        align-items: center;
        gap: 64px;
    }

    .text-and-image--reverse .text-and-image__inner {
        flex-direction: row-reverse;
    }

    .text-and-image__image-wrapper {
        width: calc(50% - 32px);
    }

    .text-and-image__content {
        width: calc(50% - 32px);
    }

    .text-and-image--text-only .text-and-image__inner {
        flex-direction: column;
    }

    .text-and-image--text-only .text-and-image__content {
        width: 100%;
    }

    .text-and-image .text-and-image__text h1,
    .text-and-image .text-and-image__text h2,
    .text-and-image .text-and-image__text h3 {
        font-size: 44px !important;
    }
}
