/* ── Space hero ──────────────────────────────────────────────
   Figma (space page, Full site): desktop 1728:11298 / 1299:23216,
   mobile in 1299:23501. The gallery is the room hero's.
   ─────────────────────────────────────────────────────────── */

.space-hero {
    padding: 0 var(--pad-x) 20px;
}

.space-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 55px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}


/* ── Pictures ──────────────────────────────────────────────── */
.space-hero__gallery {
    display: flex;
    flex: 0 1 656px;
    flex-direction: column;
    gap: 8.5px;
    min-width: 0;
}

.space-hero__viewport {
    position: relative;
}

/* One picture at a time, swiped or stepped with the arrows */
.space-hero__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    aspect-ratio: 4 / 3;
}

.space-hero__track::-webkit-scrollbar {
    display: none;
}

.space-hero__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.space-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-hero__arrows {
    position: absolute;
    top: 50%;
    left: 31px;
    right: 31px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.space-hero__arrows .button {
    pointer-events: auto;
}

.space-hero__counter {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(20, 13, 12, 0.7);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 1.2px;
    color: var(--color-canvas);
}

.space-hero__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8.9px;
}

.space-hero__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.space-hero__thumb-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity var(--transition);
}

.space-hero__thumb:hover .space-hero__thumb-image {
    opacity: 0.85;
}

.space-hero__thumb:focus-visible {
    outline: 2px solid var(--color-beamwood);
    outline-offset: 2px;
}


/* ── The words ─────────────────────────────────────────────── */
.space-hero__info {
    display: flex;
    flex: 0 1 601px;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.space-hero__words {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.space-hero__title {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.48px;
}

.space-hero__text {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.08px;
    color: var(--color-ink-soft);
}

/* Best suited for…: italic, with the walnut rule down its side */
.space-hero__best-for {
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid var(--color-walnut);
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-beamwood);
}

.space-hero__facts {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 20px 40px;
}

.space-hero__fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.space-hero__fact::before {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--color-walnut);
}

.space-hero__value {
    font-family: var(--font-heading);
    font-size: 30px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-beamwood);
}

.space-hero__note {
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.07px;
    color: var(--color-ink-soft);
}

.space-hero__enquire.button--primary {
    height: 42px;
}


/* Laptop — 1366px and below: pictures and words half and half, the facts
   in two equal columns (the Figma's 656 / 601 and 215px first column are
   for 1440 and squeeze the words on a small laptop) */
@media (max-width: 1366px) {
    .space-hero__inner {
        gap: 40px;
    }

    .space-hero__gallery,
    .space-hero__info {
        flex: 1 1 0;
    }

    .space-hero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 24px;
    }

    .space-hero__value {
        overflow-wrap: break-word;
    }
}

/* Tablet and mobile — 1024px and below: the pictures on top */
@media (max-width: 1024px) {
    .space-hero {
        padding-bottom: 0;
    }

    .space-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .space-hero__gallery,
    .space-hero__info {
        flex: none;
    }

    .space-hero__info {
        gap: 20px;
    }

    .space-hero__words {
        gap: 16px;
    }

    .space-hero__title {
        font-size: 32px;
        line-height: 1.06;
        letter-spacing: -0.32px;
    }

    .space-hero__best-for {
        margin-top: 4px;
    }

    .space-hero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 5px;
    }

    .space-hero__value {
        font-size: 20px;
    }
}

/* Mobile — 767px and below: no thumbnails or counter, smaller arrows */
@media (max-width: 767px) {
    .space-hero__thumbs,
    .space-hero__counter {
        display: none;
    }

    .space-hero__arrows {
        left: 16px;
        right: 16px;
    }

    .space-hero__arrows .button--gallery {
        width: 40px;
        height: 40px;
    }

    .space-hero__arrows .button__icon {
        width: 16px;
    }
}
