/* Banner */
.banner {
    position: relative;
    min-height: clamp(420px, 62vh, 640px);
    padding-bottom: 120px;
    background: #14151b url("banner.webp") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
}
/* Pull the first content section up so it overlaps the banner, while its own
   top fades in from transparent to the content color — dissolving the image. */
.banner + .room {
    position: relative;
    z-index: 1;
    margin-top: -240px;
    background-color: transparent;
    background-image: linear-gradient(to bottom, transparent 0, var(--grouped-bg-color) 240px);
}
.banner h1 {
    font-size: 80px;
}
.banner p {
    color: #e6e7f2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
@media (max-width: 490px) /* Compact Width */ {
    .banner h1 {
        font-size: 44px;
    }
}
.room {
    background-color: var(--grouped-bg-color);
}

/* About the room */
/* Width, not max-width: the global `* { max-width: 100% }` still narrows it. */
.about {
    width: 720px;
}
.about p {
    text-align: center;
}

/* Prop build cards */
.props {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}
.props button {
    width: 318px;
    max-width: 50%;
    padding: 4px;
    margin-bottom: 32px;
    color: var(--text-color);
    background-color: transparent;
    text-align: left;
    line-height: inherit;
    border-radius: 12px;
}
.props button:hover {
    color: var(--accent-color);
    background-image: none;
}
.props img {
    width: 100%;
    margin: 0 0 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--grouped-secondary-bg-color);
    background-image: var(--card-bg-image);
    border-radius: 8px;
    transition: filter 0.2s;
}
.props button:active img {
    -webkit-filter: brightness(0.8);
    filter: brightness(0.8);
}
.props h3 {
    margin: 0;
}
@media (max-width: 490px) /* Compact Width */ {
    .props button {
        max-width: 100%;
    }
}

/* Prop modal */
dialog.prop {
    width: 720px;
    max-height: 84vh;
    padding: 0;
    color: var(--text-color);
    background-color: var(--grouped-secondary-bg-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}
dialog.prop::backdrop {
    background-color: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.prop-scroll {
    max-height: 84vh;
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.prop-close {
    position: sticky;
    top: 0;
    float: right;
    width: 32px;
    height: 32px;
    line-height: 32px;
    padding: 0;
    font-size: 20px;
    text-align: center;
    color: var(--text-color);
    background-color: var(--control-color);
    border-radius: 999px;
}
/* showModal() auto-focuses this button, so hide the ring unless the modal was
   opened by keyboard. */
.prop-close:focus:not(:focus-visible) {
    outline: none;
}
.prop-close:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
dialog.prop h2 {
    margin: 0 0 4px;
    text-align: left;
}
dialog.prop p {
    text-align: left;
    padding: 0 0 12px;
}
dialog.prop img {
    width: 100%;
    margin: 0 0 12px;
    border-radius: 12px;
    background-color: var(--grouped-bg-color);
}
/* Apple Home screenshots inside a modal: sized to read as UI, not as photos. */
.prop-shots {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding-bottom: 12px;
}
.prop-shots img {
    width: auto;
    max-height: 400px;
    margin: 0;
}
.prop-shots .tile {
    max-height: 96px;
}

@media (max-width: 720px) {
    dialog.prop {
        width: calc(100% - 24px);
    }
    .prop-scroll {
        padding: 16px;
    }
}
