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

.section-room-long-gallery-01 {
    display: grid;
    /* At 1440px: gallery 934px, gap 64px, rates 378px, right gutter 64px. */
    grid-template-columns: 64.861111% 26.25%;
    gap: 4.444444%;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    color: #191919;
    font-family: var(--font-suit);
}

.section-room-long-gallery-01-gallery {
    min-width: 0;
}

.section-room-long-gallery-01-wide {
    display: block;
    width: 100%;
    /* Follow the photo width, including when the gallery becomes full-width. */
    height: auto;
    aspect-ratio: 934 / 525;
    object-fit: cover;
}

.section-room-long-gallery-01-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
}

.section-room-long-gallery-01-pair img {
    display: block;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 467 / 700;
    object-fit: cover;
}

.section-room-long-gallery-01-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 80px 46px 12px;
    background: #fff;
}

.section-room-long-gallery-01-content h2 {
    margin: 0 0 10px;
    font-family: var(--font-ivymode);
    font-size: 24px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 1.2px;
}

.section-room-long-gallery-01-list {
    display: flow-root;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -.67px;
}

.section-room-long-gallery-01-list li {
    margin: var(--section-list-space-before, 0px) 0 0;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    column-gap: 4px;
    align-items: start;
}

.section-room-long-gallery-01-list > li + li {
    margin-top: calc(4px + var(--section-list-space-before, 0px));
}

.section-room-long-gallery-01-list li::before {
    width: 4px;
    height: 4px;
    margin-top: 8px;
    background: currentColor;
    content: '';
}

.section-room-long-gallery-01-booking {
    position: sticky;
    top: 88px;
    align-self: start;
    width: 100%;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    margin-top: 11.111111vw;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    /* Continue scrolling the page when the rate panel reaches either vertical edge. */
    overscroll-behavior-y: auto;
    scrollbar-gutter: stable;
    background: #fff;
}

.section-room-long-gallery-01-rate-body,
.section-room-long-gallery-01-rate-widget {
    width: 100%;
    min-width: 0;
}

.section-room-long-gallery-01-rate-widget {
    min-height: 300px;
    overflow-x: auto;
    background: #fff;
}

.section-room-long-gallery-01-rate-widget > [data-pensionnara-status] {
    display: grid;
    min-height: 300px;
    margin: 0;
    padding: 24px;
    border: 1px solid #e2e2e2;
    place-items: center;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.section-room-long-gallery-01-rate-widget.is-error > [data-pensionnara-status] {
    color: #8b3a32;
    background: #fff8f7;
}

@media (max-width: 860px) {
    .section-room-long-gallery-01 {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        overflow: hidden;
    }

    .section-room-long-gallery-01-booking {
        order: -1;
        position: static;
        width: calc(100% - 32px);
        max-height: none;
        margin: 40px auto 40px;
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .section-room-long-gallery-01-content {
        padding: 38px 32px;
        aspect-ratio: auto;
    }
}

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

    .section-room-long-gallery-01-list {
        font-size: 12px;
        line-height: 18px;
        letter-spacing: -.58px;
    }

    .section-room-long-gallery-01-list li::before {
        margin-top: 7px;
    }
}

@media (max-width: 480px) {
    .section-room-long-gallery-01-wide {
        aspect-ratio: 390 / 272;
    }

    .section-room-long-gallery-01-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-room-long-gallery-01-pair img {
        aspect-ratio: 390 / 584;
    }

    .section-room-long-gallery-01-content {
        padding: 40px 15px 15px;
    }

    .section-room-long-gallery-01-content h2 {
        margin-bottom: 4px;
        font-size: 20px;
        line-height: 40px;
        letter-spacing: 1px;
    }

    .section-room-long-gallery-01-list {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -.67px;
    }

    .section-room-long-gallery-01-list li::before {
        margin-top: 7px;
    }

    .section-room-long-gallery-01-booking {
        width: calc(100% - 30px);
        margin: 40px auto;
    }
}
