.roomtour-wrapper {
    padding: calc(14px + (62 - 14) * ((100vw - 320px) / (1600 - 320))) 0px;
    background: linear-gradient(to right, #E5E9DC 100%, #fff 60%);
}
.roomtour-intro {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: #4f514b;
    font-size: 20px;
    line-height: 1.6;
}

.roomtour {
    margin: 3rem auto 2rem;
    max-width: 1100px;
    padding: 0 1rem;
}
.roomtour__track {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.roomtour__nav {
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fd9c3e;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
}
.roomtour__nav:disabled {
    opacity: .5;
    cursor: default;
}
.roomtour__thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding: .25rem;
}
.roomtour__thumbs::-webkit-scrollbar {
    display: none;
}
.roomtour__thumb {
    scroll-snap-align: start;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.roomtour__thumb:focus,
.roomtour__thumb:focus-visible {
    outline: none;
}
.roomtour__thumb img {
    display: block;
    width: 92px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}
.roomtour__thumb[aria-selected="true"] {
    border-color: #f2a93b;
    transform: translateY(-1px);
}
.roomtour__detail {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 2rem;
    align-items: start;
}
.roomtour__text {
    background-color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
}
.roomtour__text h3 {
    font-size: clamp(1.35rem, 1.2vw + 1.1rem, 1.8rem);
    line-height: 1.2;
    font-weight: 700;
    color: #4f514b;
    margin: 0 0 .4rem;
}
.roomtour__text p {
    margin: 0;
    color: #4f514b;
    line-height: 1.55;
}
.roomtour__figure {
    aspect-ratio: 4 / 3;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.roomtour__figure img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);

    opacity: 0;
    transform: scale(0.99);
    transition: opacity .4s ease, transform .6s ease;
}
.roomtour__figure img.is-visible {
    opacity: 1;
    transform: scale(1);
}
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

@media (max-width: 880px) {
    .roomtour__detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .roomtour__text {
        order: 2;
    }
    .roomtour__figure {
        order: 1;
    }
}
