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

.section-room-hero-gallery-01 {
    --template-image-height-desktop: 810;
    --template-image-height-mobile: 272;
    position: relative;
    height: var(--template-image-height, 810px);
    font-family: var(--font-suit);
}

.section-room-hero-gallery-01-gallery {
    position: relative;
    height: var(--template-image-height, 810px);
    overflow: hidden;
}

.section-room-hero-gallery-01-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

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

.section-room-hero-gallery-01-gallery-track figure {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
}

.section-room-hero-gallery-01-gallery-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-room-hero-gallery-01-gallery-track figcaption {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #fff;
    font-size: 11px;
}

.section-room-hero-gallery-01-gallery-controls {
    position: absolute;
    z-index: 5;
    right: 56px;
    width: 56px;
    height: 222px;
    font-family: var(--font-suit);
    bottom: 80px;
}

.section-room-hero-gallery-01-gallery-direction {
    position: absolute;
    right: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transform: translateX(50%);
}

.section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-next] {
    top: 8px;
}

.section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-prev] {
    top: 80px;
}

.section-room-hero-gallery-01-gallery-direction svg {
    display: block;
    width: 21px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px .5px rgba(0, 0, 0, .160784));
}

.section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-prev] svg {
    transform: rotate(180deg);
}

.section-room-hero-gallery-01-gallery-controls p {
    position: absolute;
    top: 152px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 55px;
    height: 32px;
    margin: 0;
    color: #fff;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -.8px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}

.section-room-hero-gallery-01-gallery-controls strong {
    position: relative;
    display: block;
    width: 29px;
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
}

.section-room-hero-gallery-01-gallery-controls p span {
    display: block;
    width: 21px;
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    opacity: .5;
}

.section-room-hero-gallery-01-gallery-controls i {
    position: absolute;
    top: 199px;
    display: block;
    width: 56px;
    height: 1px;
    background: rgba(255, 255, 255, .5);
}

.section-room-hero-gallery-01-gallery-state {
    position: absolute;
    top: 215px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    justify-content: center;
    width: 32px;
    height: 15px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
    cursor: pointer;
}

.section-room-hero-gallery-01-gallery-state:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.section-room-hero-gallery-01-card {
    position: absolute;
    z-index: 4;
    bottom: 80px;
    left: 46px;
    width: 360px;
    padding: 24px 40px 40px;
    background: rgba(255, 255, 255, .5);
    color: #191919;
    -webkit-backdrop-filter: blur(10px) brightness(1.2);
    backdrop-filter: blur(10px) brightness(1.2);
}

.section-room-hero-gallery-01-card p {
    margin: 0 0 8px;
    font-family: var(--font-ivymode);
    font-size: 24px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.section-room-hero-gallery-01-card h1 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
}

.section-room-hero-gallery-01-card strong {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: -.77px;
}

.section-room-hero-gallery-01-card div {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: -.77px;
}

@media (max-width: 860px) {
    .section-room-hero-gallery-01,
    .section-room-hero-gallery-01-gallery {
        height: var(--template-image-height, 56.25vw);
        min-height: var(--template-image-height, 432px);
    }

    .section-room-hero-gallery-01-gallery-controls {
        right: 32px;
        width: 53px;
        height: 157px;
    }

    .section-room-hero-gallery-01-gallery-direction {
        width: 40px;
        height: 40px;
    }

    .section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-next] {
        top: 0;
    }

    .section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-prev] {
        top: 48px;
    }

    .section-room-hero-gallery-01-gallery-direction svg {
        width: 16px;
        height: 13px;
    }

    .section-room-hero-gallery-01-gallery-controls p {
        top: 96px;
        width: 53px;
    }

    .section-room-hero-gallery-01-gallery-controls i {
        top: 134px;
        width: 48px;
    }

    .section-room-hero-gallery-01-gallery-state {
        top: 142px;
    }
}

/* Tablet card values follow Main_768's room card hierarchy. */
@media (min-width: 481px) and (max-width: 768px) {
    .section-room-hero-gallery-01-card {
        bottom: 40px;
        left: 32px;
        width: 294px;
        padding: 24px;
    }

    .section-room-hero-gallery-01-card p {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: .8px;
    }

    .section-room-hero-gallery-01-card h1 {
        margin-bottom: 0;
        font-size: 24px;
        line-height: 32px;
    }

    .section-room-hero-gallery-01-card strong {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -.67px;
    }

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

@media (max-width: 768px) {
    .section-room-hero-gallery-01-gallery-controls {
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    .section-room-hero-gallery-01 {
        height: auto;
        min-height: 0;
        background: #fff;
    }

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

    /* Match room-01's mobile text block below the image. */
    .section-room-hero-gallery-01-card {
        position: static;
        inset: auto;
        width: auto;
        padding: 0 15px;
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .section-room-hero-gallery-01-card h1 {
        margin: -6px 0 0;
        font-size: 24px;
        font-weight: 500;
        line-height: 40px;
    }

    .section-room-hero-gallery-01-gallery-controls {
        bottom: 24px;
        right: 15px;
        width: 32px;
        height: 103px;
    }

    .section-room-hero-gallery-01-gallery-direction {
        width: 32px;
        height: 32px;
    }

    .section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-next] {
        top: 0;
    }

    .section-room-hero-gallery-01-gallery-direction[data-room-hero-gallery-prev] {
        top: 40px;
    }

    .section-room-hero-gallery-01-gallery-direction svg {
        width: 13px;
        height: 11px;
    }

    .section-room-hero-gallery-01-gallery-controls p {
        display: none;
    }

    .section-room-hero-gallery-01-gallery-controls i {
        top: 80px;
        width: 32px;
    }

    .section-room-hero-gallery-01-gallery-state {
        top: 88px;
    }

    .section-room-hero-gallery-01-card p {
        margin: 0;
        font-family: var(--font-ivymode);
        font-size: 20px;
        font-weight: 600;
        line-height: 40px;
        letter-spacing: 1px;
    }

    .section-room-hero-gallery-01-card strong {
        display: block;
        font-weight: 500;
        margin: 0;
        font-size: 14px;
        line-height: 24px;
        letter-spacing: -.67px;
    }

    .section-room-hero-gallery-01-card div {
        display: block;
        font-size: 14px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: -.67px;
    }
}

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