.interior-table-composition {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3.2vw, 42px);
  width: 100%;
  min-width: 0;
}

.interior-table-composition > .interior-table-stack {
  grid-column: auto;
  gap: clamp(13px, 1.9vw, 23px);
}

.interior-table-composition .interior-branded-table {
  padding: clamp(8px, 1.1vw, 14px);
  border-radius: 15px;
}

.interior-table-composition .interior-table-brand {
  min-height: 33px;
  margin-bottom: 8px;
}

.interior-table-composition .interior-table-brand > img {
  max-width: min(145px, 100%);
  height: clamp(24px, 3vw, 34px);
  object-fit: contain;
}

.interior-table-composition .interior-table-stack .interior-table > table {
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.34;
}

.interior-table-composition .interior-table-stack .interior-table > table :is(th, td) {
  padding: 8px clamp(6px, .85vw, 12px);
  hyphens: auto;
}

.interior-spec-aside {
  display: grid;
  align-content: start;
  gap: clamp(13px, 1.6vw, 22px);
  min-width: 0;
}

.interior-spec-photo {
  margin: 0;
  padding: 0;
}

.interior-spec-photo > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  aspect-ratio: 1.65;
  border-radius: var(--interior-radius, 17px);
  background: var(--sand, #e9e4db);
  object-fit: cover;
  object-position: center 36%;
}

.interior-spec-photo > figcaption {
  margin: 7px 1px 0;
  color: var(--muted, #555b56);
  font-size: 12px;
  line-height: 1.36;
}

.interior-spec-card {
  min-width: 0;
  padding: clamp(17px, 2.5vw, 30px);
  border-radius: var(--interior-radius, 17px);
  background: #f0e9df;
  color: var(--interior-ink, #202622);
}

.interior-spec-card > h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.65vw, 34px);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.interior-spec-card > p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted, #555b56);
  line-height: 1.45;
}

.interior-spec-card > .inner-actions {
  margin-top: 14px;
}

.interior-spec-aside--price .interior-spec-card {
  background:
    linear-gradient(115deg, #242d26 27%, rgb(36 45 38 / .77) 100%),
    repeating-linear-gradient(0deg, rgb(248 225 190 / .14) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgb(248 225 190 / .14) 0 1px, transparent 1px 16px),
    #242d26;
  color: #fffdfa;
}

.interior-spec-aside--price .interior-spec-card > p { color: #e6dfd2 }

@media (min-width: 901px) {
  .interior-table-composition {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

@media (min-width: 901px) and (min-height: 820px) {
  .interior-table-composition > .interior-spec-aside {
    position: sticky;
    top: 125px;
  }
}

.interior-hero-photo img,
.interior-gallery img,
.interior-card > img {
  height: auto;
}
@media (min-width: 671px) {
  .interior-card-grid--mosaic:has(> .interior-card:nth-child(4):last-child) > .interior-card > img {
    height: clamp(148px, 20vw, 280px);
  }
  .interior-card-grid--mosaic:has(> .interior-card:nth-child(5)) > .interior-card:first-child > img {
    height: 0;
  }
  .interior-card-grid--mosaic:has(> .interior-card:nth-child(6):last-child) > .interior-card:first-child > img {
    height: auto;
  }
}
.interior-table-composition .interior-table-stack .interior-table > table tr:first-child > th:last-child {
  min-width: 4em;
}
@media (max-width: 670px) {
  .interior-gallery--single figure:first-child img { aspect-ratio: 1.62 }
}

/* The last row keeps the same thumbnail size even when it has only one image. */
.interior-page .interior-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.interior-page .interior-gallery > figure {
  grid-column: auto;
  min-width: 0;
}
.interior-page .interior-gallery > figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: center 38%;
}
@media (max-width: 670px) {
  .interior-page .interior-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A row of thumbnails uses one frame size even with the old mosaic modifiers. */
.interior-page .interior-gallery.interior-photos > figure:nth-child(n) > img {
  aspect-ratio: 1.6;
}
