.showroom-preview,
.showroom-panorama {
  display: none;
}

.showroom-frame {
  display: contents;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .showroom-page .detail-main.container {
    width: min(calc(100% - 2 * var(--edge)), 1312px);
  }

  .showroom-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(5px, .52vw, 8px);
    margin-top: 26px;
  }

  .showroom-preview a {
    --photo-tone: saturate(.78) sepia(.06) brightness(1.12);
    position: relative;
    display: block;
    color: #fff;
    overflow: hidden;
  }

  .showroom-preview a:nth-child(2) { --photo-tone: saturate(.28) sepia(.17) brightness(.84); }
  .showroom-preview a[data-showroom-contrast] { --photo-tone: saturate(.75) brightness(.81); }
  .showroom-preview a:nth-child(4) { --photo-tone: saturate(.75) sepia(.08) brightness(1.25); }

  .showroom-preview a:focus-visible {
    outline: 2px solid var(--ink, #202020);
    outline-offset: -3px;
  }

  .showroom-preview .showroom-frame { aspect-ratio: 1.07; }
  .showroom-preview .showroom-frame > img {
    filter: var(--photo-tone);
    transition: transform 480ms var(--motion-ease, ease-out);
  }
  .showroom-preview a:is(:hover, :focus-visible) .showroom-frame > img { transform: scale(1.065); }

  .showroom-preview-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 16px;
    background: rgb(21 22 21 / 58%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
  }

  .showroom-preview-caption strong { font-size: 17px; font-weight: 500; }
  .showroom-preview-caption small { font-size: 13px; }
  .showroom-preview a:is(:hover, :focus-visible) .showroom-preview-caption { opacity: 1; }

  .showroom-page .showroom-entries { margin-top: clamp(53px, 6vw, 86px); }

  .showroom-page .showroom-entry {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: clamp(10px, 1.1vw, 16px);
    row-gap: 18px;
    padding-top: 0;
    border-top: 0;
    scroll-margin-top: calc(var(--header-height, 60px) + 26px);
  }

  .showroom-page .showroom-entry + .showroom-entry {
    margin-top: clamp(64px, 7vw, 104px);
  }

  .showroom-page .showroom-entry-heading,
  .showroom-page .showroom-entry-heading > div:first-child,
  .showroom-page .showroom-entry .showroom-gallery,
  .showroom-page .showroom-gallery-scenes {
    display: contents;
  }

  .showroom-page .showroom-entry-heading h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 14px;
    text-align: center;
    color: #875840;
    font-size: clamp(27px, 2.45vw, 36px);
    line-height: 1.29;
    font-weight: 500;
  }

  .showroom-page :is(.showroom-tagline, .showroom-project-fact, .showroom-uses, .showroom-gallery-title),
  .showroom-page .showroom-gallery-scenes > figure:not([data-showroom-detail], [data-showroom-closeup]) {
    display: none;
  }

  .showroom-page .showroom-gallery-cover {
    grid-column: 1 / 7;
    grid-row: 2 / span 2;
  }

  .showroom-page [data-showroom-closeup] {
    grid-column: 7 / 9;
    grid-row: 2 / span 2;
  }

  .showroom-page .showroom-copy {
    grid-column: 10 / -1;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.7;
  }

  .showroom-page .showroom-copy p + p { margin-top: 8px; }

  .showroom-page [data-showroom-detail] {
    grid-column: 10 / -1;
    grid-row: 3;
  }

  .showroom-frame {
    position: relative;
    display: block;
    aspect-ratio: 1.12;
    overflow: hidden;
  }

  .showroom-page .showroom-frame > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .showroom-page .showroom-print > img {
    top: -29%;
    height: 140%;
  }

  .showroom-page .showroom-print--portrait > img {
    width: 151%;
    object-position: left center;
  }

  .showroom-page .showroom-preview a:nth-child(2) .showroom-frame > img { object-position: 62% center; }
  .showroom-page .showroom-gallery-cover .showroom-frame > img { object-position: 38% center; }
  .showroom-page #design-house .showroom-gallery-cover .showroom-frame > img { object-position: 64% center; }
  .showroom-page [data-showroom-closeup] .showroom-frame { aspect-ratio: .83; }
  .showroom-page [data-showroom-detail] .showroom-frame { aspect-ratio: 1.02; }
  .showroom-page #factory-store [data-showroom-closeup] img { object-position: 34% center; }
  .showroom-page .showroom-gallery figcaption { margin-top: 7px; font-size: 13px; }

  .showroom-panorama {
    display: block;
    width: 100%;
    margin: clamp(56px, 6vw, 90px) 0 0;
  }

  .showroom-panorama .showroom-frame { aspect-ratio: 2.55; }
  .showroom-panorama figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

  [data-view="cases"] #featured .case-featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: clamp(54px, 7vw, 110px);
    align-items: start;
    margin-top: 16px;
  }

  [data-view="cases"] #featured .case-featured h2 { margin-bottom: 7px; font-size: 23px; font-weight: 500; }
  [data-view="cases"] #featured .case-featured > div:first-child > p {
    max-width: 23em;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  [data-view="cases"] #featured .detail-list { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-preview-caption, .showroom-preview .showroom-frame > img { transition: none; }
  .showroom-preview a:is(:hover, :focus-visible) .showroom-frame > img { transform: none; }
}
