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

.section-related-rooms-01 {
    --template-image-height-desktop: 270;
    --template-image-height-mobile: 180;
    --template-image-width-desktop: 480;
    --template-image-width-mobile: 320;
    --section-related-rooms-01-image-height: var(--template-image-height, 270px);

    height: var(--template-flow-height, 627px);
    overflow: hidden;
    padding: 80px 0 160px 46px;
    background: #fff;
    color: #191919;
    font-family: var(--font-suit);
}

.section-related-rooms-01 > h2 {
    margin: 0 0 16px;
    font-family: var(--font-ivymode);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 40px;
}

.section-related-rooms-01-viewport {
    position: relative;
}

.section-related-rooms-01-track {
    position: relative;
    display: flex;
    gap: calc(24 * var(--template-space-unit, 1px));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.section-related-rooms-01-track::-webkit-scrollbar {
    display: none;
}

.section-related-rooms-01-card {
    flex: 0 0 var(--template-image-width, 480px);
    color: #191919;
    scroll-snap-align: start;
}

.section-related-rooms-01-card img {
    width: var(--template-image-width, 480px);
    height: var(--template-image-height, 270px);
    object-fit: cover;
}

.section-related-rooms-01-card h3 {
    margin: 12px 0 4px;
    font-size: 24px;
    font-weight: 600;
    line-height: 40px;
}

.section-related-rooms-01-card p {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.77px;
    line-height: 24px;
}

.section-related-rooms-01-arrow {
    position: absolute;
    z-index: 4;
    top: calc(var(--section-related-rooms-01-image-height) / 2);
    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, .160784);
    cursor: pointer;
    line-height: 0;
    transform: translateY(-50%);
}

.section-related-rooms-01-arrow[hidden] {
    display: none;
}

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

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

.section-related-rooms-01-arrow.prev {
    left: -20px;
}

.section-related-rooms-01-arrow.next {
    right: 26px;
}

@media (max-width: 860px) {
    .section-related-rooms-01 {
        --section-related-rooms-01-image-height: var(--template-image-height, 236px);

        height: auto;
        min-height: var(--template-flow-min-height, 520px);
        padding: 72px 0 72px 32px;
    }

    .section-related-rooms-01-card {
        flex-basis: var(--template-image-width, 420px);
    }

    .section-related-rooms-01-card img {
        width: var(--template-image-width, 420px);
        height: var(--template-image-height, 236px);
    }

    .section-related-rooms-01-arrow {
        width: 32px;
        height: 32px;
    }

    .section-related-rooms-01-arrow.prev {
        left: -16px;
    }

    .section-related-rooms-01-arrow.next {
        right: 16px;
    }
}

/* Tablet type scale inferred from Main_768's section/card hierarchy. */
@media (min-width: 481px) and (max-width: 768px) {
    .section-related-rooms-01 > h2 {
        font-size: 20px;
        line-height: 32px;
        letter-spacing: 1px;
    }

    .section-related-rooms-01-card h3 {
        margin-top: 10px;
        font-size: 20px;
        line-height: 32px;
    }

    .section-related-rooms-01-card p {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -.67px;
    }
}

@media (max-width: 480px) {
    .section-related-rooms-01 {
        --section-related-rooms-01-image-height: var(--template-image-height, 180px);

        min-height: 0;
        padding: 52px 0 58px 15px;
    }

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

    .section-related-rooms-01-card {
        flex-basis: var(--template-image-width, 320px);
    }

    .section-related-rooms-01-card img {
        width: var(--template-image-width, 320px);
        height: var(--template-image-height, 180px);
    }

    .section-related-rooms-01-arrow {
        width: 24px;
        height: 24px;
    }

    .section-related-rooms-01-arrow.prev {
        left: -7px;
    }

    .section-related-rooms-01-arrow.next {
        right: 8px;
    }
    .section-related-rooms-01 > h2 {
        margin-bottom: 8px;
        font-size: 20px;
        line-height: 40px;
        letter-spacing: 1px;
    }

    .section-related-rooms-01-card h3 {
        margin: 8px 0 0;
        font-size: 24px;
        line-height: 40px;
    }

    .section-related-rooms-01-card p {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -.67px;
    }
}
