.topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.topbar .desktop-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 32px);
    font-size: 14px;
    font-weight: 650;
}

.site-header nav a[aria-current="page"] {
    color: var(--accent);
}

.panorama-navigation {
    position: relative;
}

.panorama-navigation summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.panorama-navigation summary::-webkit-details-marker {
    display: none;
}

.panorama-navigation summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-2px) rotate(45deg);
}

.panorama-navigation[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.panorama-navigation-links {
    position: absolute;
    z-index: 12;
    inset-inline-start: 0;
    top: 100%;
    min-width: max-content;
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: 3px;
    box-shadow: 0 9px 25px #32241822;
}

.panorama-navigation-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 5px;
}

.panorama-navigation-links a + a {
    border-top: 1px solid var(--edge);
}

.mobile-navigation {
    display: none;
}

.home-intro {
    padding-block: clamp(26px, 3.8vw, 54px) clamp(30px, 4vw, 56px);
}

.home-intro h1 {
    margin-bottom: clamp(20px, 2.6vw, 36px);
    font-size: clamp(37px, 5.3vw, 76px);
    letter-spacing: -.058em;
}

.home-intro .home-search {
    margin-bottom: 10px;
}

.home-room-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 560px);
    margin-bottom: 16px;
}

.home-room-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cbbbae;
    border-radius: 2px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
}

.home-room-links a > span {
    color: var(--accent);
}

.home-room-links a:hover,
.home-room-links a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.home-entries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 24px);
}

.home-entry {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--edge);
    background: var(--surface);
    border-radius: 3px;
}

a.home-entry:hover, a.home-entry:focus-visible {
    border-color: var(--accent);
}

.home-entry-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 2px 2px 0 0;
    background: #eae3d7;
}

.home-room {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 65%;
}

.home-panorama-examples {
    position: absolute;
    inset: 22% 7% auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(10px, 1.4vw, 22px);
}

.home-panorama-example {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.home-panorama-face {
    width: 100%;
    aspect-ratio: 3;
    background: #e8e0d4;
    box-shadow: 1px 2px #706655, 2px 5px 8px #4437284a;
}

.home-panorama-example + .home-panorama-example .home-panorama-face {
    aspect-ratio: 2;
}

.home-panorama-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-panorama-ratio {
    padding: 2px 8px;
    border: 1px solid #7d695e38;
    border-radius: 2px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-panorama-links {
    display: grid;
    flex: 1;
    align-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: clamp(8px, 1vw, 13px);
}

.home-panorama-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    min-height: 50px;
    border: 1px solid var(--edge);
    border-radius: 2px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
}

.home-panorama-links a > :last-child,
.home-panorama-links strong {
    color: var(--accent);
}

.home-panorama-links a:hover,
.home-panorama-links a:focus-visible {
    border-color: var(--accent);
    background: var(--paper);
}

@media (min-width: 681px) and (max-width: 1060px) {
    .home-panorama-links {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-panorama-links a {
        min-height: 44px;
    }
}

.home-triptych-art {
    position: relative;
    aspect-ratio: 819 / 572;
    filter: drop-shadow(2px 4px 3px #44372845);
    clip-path: inset(-6px -9px -11px);
}

.home-entry-panels > .home-triptych-art {
    position: absolute;
    top: 41%;
    left: 52%;
    width: 56%;
    transform: translate(-50%, -50%);
}

.home-triptych-art .home-triptych-source {
    /* Preserve the three panel faces and the gaps from the original 1024 × 935 preview. */
    position: absolute;
    left: -13.19%;
    top: -16.78%;
    width: 125.03%;
    height: auto;
    max-width: none;
    mask-image: linear-gradient(to right, transparent 10.64%, #000 10.64% 36.72%,
        transparent 36.72% 37.40%, #000 37.40% 63.48%, transparent 63.48% 64.25%,
        #000 64.25% 90.53%, transparent 90.53%),
        linear-gradient(to bottom, transparent 10.37%, #000 10.37% 71.34%, transparent 71.34%);
    mask-composite: intersect;
}

.home-travel-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 502 / 336;
}

.home-travel-image img {
    /* The same rectangular photo inside the original single-canvas preview. */
    position: absolute;
    left: -5.58%;
    top: -11.90%;
    width: 109.96%;
    height: auto;
    max-width: none;
}

.home-photo-canvas {
    position: absolute;
    width: 47%;
    top: 17%;
    right: 11%;
    box-shadow: 2px 2px #706655, 4px 6px 11px #44372845;
}

.home-photo-phone {
    position: absolute;
    display: grid;
    place-items: center;
    width: 38%;
    aspect-ratio: 1.9;
    bottom: 10%;
    left: 9%;
    padding: 4px 8px 4px 4px;
    border: 1px solid #63665f;
    border-radius: 8px;
    background: #222420;
    box-shadow: 0 1px #a9a69b inset, 1px 5px 8px #44372859;
    transform: rotate(-8deg);
}

.home-photo-phone::after {
    position: absolute;
    inset: 50% 3px auto auto;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #777d78;
    content: "";
}

.home-photo-phone .home-travel-image {
    height: 100%;
    border-radius: 3px;
}

.home-entry-copy {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: clamp(13px, 1.4vw, 20px);
    min-height: 88px;
}

.home-entry-copy h2 {
    font-size: clamp(21px, 2.2vw, 31px);
    letter-spacing: -.035em;
}

.home-entry-copy p {
    color: var(--accent);
    margin-top: 5px;
    font-size: 13px;
    font-weight: 650;
}

.home-entry-copy p span {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.home-entry-arrow {
    flex: none;
    font-size: 22px;
    color: var(--accent);
    line-height: 1.3;
}

.home-featured {
    padding: clamp(24px, 3.1vw, 44px) 0 clamp(33px, 4.7vw, 65px);
    border-top: 1px solid var(--edge);
}

.collection-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-featured > h2, .collection-heading h1 {
    font-size: clamp(33px, 4.1vw, 54px);
    letter-spacing: -.052em;
}

.home-featured > h2 {
    margin-bottom: 20px;
}

.home-showcase-links, .collection-reset {
    color: var(--accent);
    font-size: 14px;
    font-weight: 650;
}

.home-showcase-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
}

.home-showcase-links a, .collection-reset:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gallery-art-grid {
    gap: clamp(22px, 2.4vw, 36px) clamp(12px, 1.8vw, 24px);
}

.gallery-art-grid-panorama {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-art-grid-panels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-showcase-grid .piece .piece-image {
    aspect-ratio: 3 / 2;
}

@media (max-width: 900px) {
    .home-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-showcase-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-showcase-grid .piece-panorama .piece-image {
        aspect-ratio: 3;
    }
    .home-showcase-grid .piece-panorama-two .piece-image {
        aspect-ratio: 2;
    }
}

.gallery-art-grid .piece-image {
    position: relative;
    background: #eee9e0;
    border-radius: 2px;
}

.gallery-art-grid-panels .piece-image {
    aspect-ratio: 4 / 3;
}

.gallery-art-grid .piece-image > img {
    object-fit: contain;
}

.gallery-art-grid .piece a:hover .piece-image img {
    transform: none;
}

.gallery-art-grid .piece-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: 9px;
}

.gallery-art-grid .piece a:hover .piece-label :is(h2, h3) {
    color: var(--accent);
}

.piece-label h2, .piece-label h3 {
    font-size: clamp(17px, 1.55vw, 23px);
    letter-spacing: -.02em;
    line-height: 1.27;
}

.piece-label h2, .piece-label h3 {
    overflow-wrap: anywhere;
}

.piece-preview .piece-image img {
    object-fit: contain;
}

.piece-preview .piece-image {
    background-color: #e4ded5;
}

.collection-heading {
    justify-content: flex-start;
    margin-bottom: 15px;
}

[data-panorama-browse][aria-busy="true"] > .piece {
    visibility: hidden;
}

.collection-heading p {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.collection-filters {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}

.collection-search-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.collection-search {
    position: relative;
    min-width: 0;
    width: clamp(260px, 31vw, 306px);
}

.home-search .collection-search-row {
    width: min(100%, 560px);
}

.home-search .collection-search {
    flex: 1;
    width: auto;
}

.home-search .button {
    flex: none;
}

.collection-filters input, .collection-filters select {
    height: 44px;
    min-width: 0;
    border: 1px solid var(--edge);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink);
    padding: 0 10px;
    font-size: 16px;
}

.collection-filters input {
    width: 100%;
    padding-inline-end: 45px;
    scroll-margin-top: 12px;
}

.collection-search input::-webkit-search-cancel-button {
    appearance: none;
}

.collection-clear {
    position: absolute;
    inset: 0 1px 0 auto;
    width: 44px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.collection-clear:hover, .collection-clear:focus-visible {
    color: var(--ink);
}

.collection-popup {
    position: absolute;
    z-index: 8;
    top: calc(100% + 4px);
    inset-inline-start: 0;
    width: max(100%, 360px);
    max-height: min(410px, var(--search-visible-space, 55vh));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid var(--edge);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 10px 25px #32241826;
}

.collection-popup [role="group"] + [role="group"],
.collection-no-suggestions:not([hidden]) + [role="listbox"]:not(:empty) {
    border-top: 1px solid var(--edge);
}

.collection-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 9px;
    border-radius: 2px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.28;
    text-decoration: none;
}

.collection-option:hover, .collection-option[aria-selected="true"] {
    background: #efe8de;
    color: var(--ink);
}

.collection-option-image {
    flex: 0 0 52px;
    width: 52px;
    height: 38px;
    object-fit: contain;
    border-radius: 2px;
    background: #f0ebe3;
}

.collection-option-copy {
    min-width: 0;
}

.collection-option-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.collection-option-tag, .collection-option small {
    color: var(--muted);
    font-size: 12px;
}

.collection-option small {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.collection-option-tag {
    margin-inline-start: auto;
}

.collection-option-action {
    color: var(--accent);
    font-weight: 650;
}

.collection-no-suggestions {
    margin: 0;
    padding: 11px 9px;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.collection-filters select {
    width: clamp(167px, 20vw, 223px);
}

.collection-filters button.button {
    min-height: 44px;
    padding: 9px 16px;
}

.collection-reset {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.collection-empty {
    color: var(--muted);
    margin-top: 24px;
}

.collection-empty a {
    display: block;
    width: fit-content;
    margin-top: 8px;
    color: var(--accent);
}

.shop-collections {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shop-collections a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 17px;
    border: 1px solid var(--edge);
    background: var(--surface);
    font-weight: 650;
}

.shop-collections a:hover {
    border-color: var(--accent);
}

.shop-collections span {
    color: var(--accent);
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 1100px) {
    .gallery-art-grid-panels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gallery-art-grid-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 990px) {
    .topbar {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px 14px;
        padding-block: 8px;
    }

    .topbar .desktop-navigation {
        display: none;
    }

    .topbar .basket {
        grid-column: 3;
        grid-row: 1;
    }

    .mobile-navigation {
        display: block;
    }

    .mobile-navigation summary {
        display: flex;
        align-items: center;
        min-height: 44px;
        gap: 7px;
        font-size: 14px;
        font-weight: 650;
        list-style: none;
        cursor: pointer;
    }

    .mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation summary::before {
        content: "";
        width: 13px;
        height: 10px;
        border-block: 1px solid;
        background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat;
    }

    .topbar .mobile-navigation nav {
        position: absolute;
        z-index: 10;
        inset-inline: 0;
        top: 100%;
        display: grid;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--edge);
        border-radius: 3px;
        box-shadow: 0 9px 25px #32241822;
        padding: 4px 11px;
        font-size: 15px;
        font-weight: 650;
    }

    .topbar .mobile-navigation:not([open]) nav {
        display: none;
    }

    .topbar .mobile-navigation nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding-inline: 5px;
        border-bottom: 1px solid var(--edge);
    }

    .topbar .mobile-navigation nav a:last-child {
        border: 0;
    }
}

@media (max-width: 680px) {
    .home-intro {
        padding-block: 21px 31px;
    }

    .home-intro h1 {
        max-width: 13em;
    }

    .home-entries {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-entry-media {
        aspect-ratio: 2.23;
    }

    .home-entry-panels .home-room {
        object-position: center 51%;
    }

    .home-panorama-examples {
        top: 15%;
    }

    .home-entry-panels > .home-triptych-art {
        top: 42%;
        width: 50%;
    }

    .home-entry-copy {
        min-height: 43px;
        padding: 8px 11px;
    }

    .home-entry-copy h2 {
        font-size: clamp(21px, 4vw, 28px);
    }

    .home-entry-copy p {
        font-size: 12px;
    }

    .home-entry-arrow {
        font-size: 18px;
    }

    .home-photo-canvas {
        top: 9%;
        width: 42%;
    }

    .home-photo-phone {
        bottom: 10%;
        width: 35%;
    }

    .collection-heading {
        gap: 5px 14px;
        margin-bottom: 13px;
    }

    .gallery-art-grid-panorama {
        grid-template-columns: 1fr;
    }

    .collection-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
        margin-bottom: 15px;
    }

    .collection-search-row {
        position: relative;
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        gap: 7px;
    }

    .collection-search {
        position: static;
        flex: 1 1 0;
        width: auto;
    }

    .collection-clear {
        inset-inline-end: 74px;
    }

    .collection-popup {
        width: 100%;
        max-height: min(370px, var(--search-visible-space, 52vh));
    }

    .collection-option {
        min-height: 46px;
    }

    .collection-filters select {
        width: 100%;
        grid-row: 1;
    }

    .collection-filters button.button {
        flex: 0 0 66px;
        padding-inline: 8px;
    }

    .collection-reset {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        margin: 0;
        font-size: 13px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 10px 12px;
    }
}

@media (max-width: 360px) {
    .topbar {
        gap: 7px;
    }

    .brand {
        font-size: clamp(20px, 6.4vw, 23px);
    }

    .brand small {
        font-size: 10px;
    }

    .mobile-navigation summary {
        font-size: 13px;
    }

    .home-entry-copy {
        gap: 6px;
        padding-inline: 8px;
    }
}
