@import url('/fonts/pretendard/pretendard.css');

.section-travel-01 {
    --template-image-height-desktop: 600;
    --template-image-height-mobile: 272;
    width: 100%;
    box-sizing: border-box;
    padding: 80px 46px 160px;
    overflow: hidden;
    background: #fff;
    color: #191919;
    font-family: var(--font-suit);
}

.section-travel-01-content {
    position: relative;
    min-width: 0;
}

.section-travel-01-content h2 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    line-height: 40px;
}

.section-travel-01-content p {
    max-width: 100%;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.67px;
    line-height: 20px;
    /*word-break: keep-all;*/
}

.section-travel-01-gallery {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.section-travel-01-gallery-track {
    display: flex;
    gap: 3.194444vw;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.section-travel-01-gallery-track::-webkit-scrollbar {
    display: none;
}

.section-travel-01-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    /* Each slide carries its own text and single image at the existing proportions. */
    grid-template-columns: minmax(0, 428fr) minmax(0, 888fr);
    align-items: start;
    gap: 2.222222vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section-travel-01-image {
    min-width: 0;
    height: var(--template-image-height, 600px);
    margin: 0;
}

.section-travel-01-gallery-controls {
    position: absolute;
    top: 0;
    right: 0;
    width: calc((100% - 2.222222vw) * 888 / 1316);
    height: var(--template-image-height, 600px);
    pointer-events: none;
}

.section-travel-01-gallery-track img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-travel-01-gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #191919;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    pointer-events: auto;
    line-height: 0;
}

.section-travel-01-gallery-arrow-icon {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    pointer-events: none;
}

.section-travel-01-gallery-arrow-next .section-travel-01-gallery-arrow-icon {
    transform: rotate(180deg);
    transform-origin: center;
}

.section-travel-01-gallery-arrow-prev {
    left: -20px;
}

.section-travel-01-gallery-arrow-next {
    right: -20px;
}

@media (max-width: 860px) {
    .section-travel-01 {
        height: auto;
        padding: 62px 32px 76px;
    }

    .section-travel-01-slide {
        grid-template-columns: 1fr;
        gap: calc(32 * var(--template-space-unit, 1px));
        grid-template-rows: auto 1fr;
    }

    .section-travel-01-image {
        grid-row: 1;
    }

    .section-travel-01-content {
        top: 0;
        padding: 0;
    }

    .section-travel-01-content p {
        max-width: 428px;
    }

    .section-travel-01-image,
    .section-travel-01-gallery-controls {
        width: 100%;
        height: var(--template-image-height, 60vw);
        min-height: var(--template-image-height, 420px);
    }

    .section-travel-01-gallery-track {
        gap: calc(32 * var(--template-space-unit, 1px));
    }

    .section-travel-01-gallery-controls {
        top: 0;
        bottom: auto;
    }

    .section-travel-01-gallery-arrow {
        top: 50%;
        width: 32px;
        height: 32px;
        transform: translateY(-50%);
    }

    .section-travel-01-gallery-arrow-prev {
        left: 16px;
    }

    .section-travel-01-gallery-arrow-next {
        right: 16px;
    }
}

/* Tablet type scale inferred from Main_768's title/body hierarchy. */
@media (min-width: 481px) and (max-width: 768px) {
    .section-travel-01-content h2 {
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .section-travel-01-content p {
        font-size: 12px;
        line-height: 18px;
        letter-spacing: -.58px;
    }
}

@media (max-width: 480px) {
    .section-travel-01 {
        padding: 48px 15px 58px;
    }

    .section-travel-01-slide {
        gap: calc(35 * var(--template-space-unit, 1px));
    }

    .section-travel-01-content h2 {
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .section-travel-01-content p {
        font-size: 12px;
        line-height: 18px;
        letter-spacing: -.58px;
    }

    .section-travel-01-image,
    .section-travel-01-gallery-controls {
        height: var(--template-image-height, 272px);
        min-height: var(--template-image-height, 272px);
    }

    .section-travel-01-gallery-track {
        gap: calc(15 * var(--template-space-unit, 1px));
    }

    .section-travel-01-gallery-arrow {
        width: 24px;
        height: 24px;
    }

    .section-travel-01-gallery-arrow-prev {
        left: 8px;
    }

    .section-travel-01-gallery-arrow-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-travel-01-gallery-track {
        scroll-behavior: auto;
    }
}
