/* Homepage room cards reuse the product card typography. */
._room-section ._room-intro {
    max-width: 56rem;
    margin: 0 auto 2rem;
    text-align: center;
}

._room-section ._room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.875rem;
    max-width: 50rem;
    margin: 0 auto;
}

._room-section ._room-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

._room-section ._room-card > img {
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

._room-section ._room-card > ._room-photo--living {
    object-position: center bottom;
}

._room-section ._room-card ._content {
    flex: 1;
    padding: 1.6875rem 2rem;
}

._room-section ._room-card ._descr {
    margin-bottom: 0;
}

._room-section > ._btn {
    width: fit-content;
    max-width: 100%;
}

@media (min-width: 1200px) {
    ._room-section {
        padding-top: 24px;
    }

    ._room-section ._room-grid {
        max-width: 1100px;
    }
}

._room-section ._room-pagination[hidden] {
    display: none;
}

@media (max-width: 599.98px) {
    ._room-section ._room-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    ._room-section ._room-slider.swiper {
        padding: 0 0.75rem;
        margin-inline: -0.75rem;
    }

    ._room-section .swiper-initialized ._room-grid {
        display: flex;
        gap: 0;
        max-width: none;
        height: auto;
    }

    ._room-section .swiper-initialized ._room-card {
        height: auto;
    }

    ._room-section ._room-pagination {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    /* Keep the theme's 8px dots, with a larger keyboard/touch target. */
    ._room-section .swiper-pagination-bullet {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        margin: 0;
        border: 0;
        border-radius: 50%;
        padding: 0;
        background: transparent;
        opacity: 1;
    }

    ._room-section .swiper-pagination-bullet::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
    }

    ._room-section .swiper-pagination-bullet-active::before {
        background: #bb0a07;
    }

    ._room-section .swiper-pagination-bullet:focus-visible,
    ._room-section ._room-slider:focus-visible {
        outline: 2px solid #bb0a07;
        outline-offset: -2px;
    }
}
