/* Shared grid for the homepage preview, case index and customer photography. */
.homes-preview,
.homes-page-shell {
  --homes-rule: rgba(246, 244, 239, 0.16);
  --homes-copy: #bfc4be;
  --homes-paper: #f6f4ef;
  box-sizing: border-box;
  --homes-space: clamp(3rem, 6vw, 5rem);
  --homes-gap: clamp(1.5rem, 3vw, 2.5rem);
  width: min(88%, 1040px);
  margin-inline: auto;
  color: var(--homes-paper);
}
.homes-preview *,
.homes-page-shell * {
  box-sizing: border-box;
}
.homes-preview {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--homes-rule);
}
.homes-preview-heading {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--homes-gap);
  align-items: end;
  margin-bottom: 2.5rem;
}
.homes-preview h2,
.homes-contact h2,
.home-room h2,
.home-card h2,
.home-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.homes-preview h2 {
  font-size: clamp(2.4rem, 4.3vw, 4rem);
  margin: 0.9rem 0 0;
  max-width: 18ch;
  text-wrap: balance;
}
.homes-preview p,
.homes-page-shell p {
  line-height: 1.75;
}
.homes-preview-heading > p {
  max-width: 36ch;
  color: var(--homes-copy);
  margin: 0;
  font-size: 0.92rem;
}
.homes-label {
  font:
    400 0.6875rem/1.6 Inter,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.homes-preview .homes-label,
.homes-page-shell .homes-label {
  color: #c7b69b;
  margin: 0;
}
.homes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--homes-space) var(--homes-gap);
  align-items: stretch;
}
.home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-card-image {
  display: block;
  background: #23302b;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.home-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-card[data-home='home-01'] .home-card-image img {
  object-position: center bottom;
}
.home-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1.5rem;
}
.home-card h2,
.home-card h3 {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  text-wrap: balance;
}
.home-card a {
  color: inherit;
  text-decoration: none;
}
.home-card-copy > p:not(.homes-label) {
  max-width: 44ch;
  color: var(--homes-copy);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}
.home-card-copy .homes-link {
  margin-top: auto;
}
.homes-link {
  display: inline-flex;
  gap: 1.8rem;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  border-bottom: 1px solid currentColor;
  font:
    400 0.75rem/1.5 Inter,
    sans-serif;
  color: inherit;
  text-decoration: none;
}
.homes-preview-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
}
body.customer-homes-page {
  background: #101b18;
}
.homes-index-content {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
#customer-homes-list {
  scroll-margin-top: 7rem;
}
.homes-intro {
  padding-top: clamp(9rem, 11vw, 10.5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.homes-intro h1 {
  font:
    400 clamp(3rem, 5vw, 4.5rem)/1.04 'Cormorant Garamond',
    Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 1.1rem 0 1.25rem;
  max-width: 24ch;
  text-wrap: balance;
}
.homes-intro-copy {
  max-width: 60ch;
  font-size: 1rem;
  color: var(--homes-copy);
  margin: 0;
}
.home-detail-intro {
  max-width: none;
}
.home-detail-intro .homes-label {
  margin-block: 0 1rem;
}
.home-detail-intro .homes-intro-copy {
  max-width: 65ch;
}
.homes-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d2d4ce;
  text-decoration: none;
  font-size: 0.75rem;
}
.home-cover {
  margin-bottom: var(--homes-gap);
}
.home-photo {
  margin: 0;
}
.home-photo > a {
  position: relative;
  display: block;
}
.home-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.home-photo-enlarge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: #101b18;
  color: #f6f4ef;
  font: 1.2rem/1 sans-serif;
}
.home-room {
  margin-top: var(--homes-space);
}
.home-room-lead {
  margin-top: 0;
}
.home-room-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--homes-gap);
  margin-bottom: 1.75rem;
  align-items: start;
}
.home-room h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin: 0;
}
.home-room-heading > p {
  color: var(--homes-copy);
  font-size: 1rem;
  margin: 0;
  max-width: 43ch;
}
.home-room-photos {
  min-width: 0;
}
.home-room-single {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.home-room-single .home-room-heading {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
.home-room-single .home-room-photos {
  grid-column: 1;
  grid-row: 1;
}
.home-room-pair {
  display: grid;
  grid-template-columns: var(--home-photo-columns);
  gap: var(--homes-gap);
  align-items: start;
}
.home-supplement {
  margin-top: var(--homes-space);
}
.home-photo figcaption {
  color: var(--homes-copy);
  font-size: 0.8rem;
  line-height: 1.7;
  padding-top: 0.85rem;
}
.home-supplement-portrait .home-photo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.home-supplement-portrait figcaption {
  max-width: 32ch;
  padding-top: 0;
  font-size: 1rem;
}
.homes-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--homes-gap);
  align-items: center;
  padding-block: 2.5rem;
  border-top: 1px solid var(--homes-rule);
  margin-top: var(--homes-space);
}
.homes-contact h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin: 0;
}
.homes-contact p {
  color: var(--homes-copy);
  font-size: 0.9375rem;
  grid-column: 1;
  margin: 0.75rem 0 0;
  max-width: 48ch;
}
.homes-contact .homes-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}
.homes-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--homes-rule);
}
.homes-next > a {
  color: inherit;
  text-decoration: none;
}
.homes-next > a:last-child {
  display: grid;
  gap: 0.7rem;
  max-width: 65%;
}
.homes-next-title {
  font:
    400 clamp(1.5rem, 2.5vw, 2rem)/1.15 'Cormorant Garamond',
    Georgia,
    serif;
}
.homes-preview a:focus-visible,
.homes-page-shell a:focus-visible,
.home-lightbox button:focus-visible {
  outline: 2px solid #c7b69b;
  outline-offset: 6px;
}
.home-card a:hover,
.homes-link:hover,
.homes-back:hover {
  color: #dbc5a4;
}
.home-lightbox {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 4.5rem 5vw 1.5rem;
  border: 0;
  background: #101b18;
  color: #f6f4ef;
  overscroll-behavior: contain;
}
.home-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-lightbox::backdrop {
  background: #101b18;
}
.home-lightbox-image {
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  min-height: 0;
  object-fit: contain;
}
.home-lightbox-close {
  position: absolute;
  right: 5vw;
  top: 1rem;
  padding: 0.75rem;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: inherit;
  font:
    400 0.85rem Inter,
    sans-serif;
  cursor: pointer;
}
.home-lightbox-close span {
  margin-left: 1rem;
  font-size: 1.5rem;
}
.home-lightbox-close:hover {
  color: #dbc5a4;
}
#home-lightbox-caption {
  max-width: 70ch;
  font:
    400 0.8rem/1.6 Inter,
    sans-serif;
  text-align: center;
}
@media (max-width: 700px) {
  .homes-preview-heading,
  .homes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .homes-grid {
    row-gap: 3rem;
  }
  .homes-preview-heading {
    margin-bottom: 2rem;
  }
  .home-card-copy {
    padding-top: 1.25rem;
  }
  .homes-intro {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }
  .homes-intro h1 {
    font-size: clamp(2.25rem, 9.75vw, 2.75rem);
    margin-block: 0.9rem 1.25rem;
  }
  .home-detail-intro .homes-label {
    margin-bottom: 0.85rem;
  }
  .homes-intro-copy {
    font-size: 0.9375rem;
  }
  .homes-preview-end {
    justify-content: flex-start;
  }
  .home-room-heading,
  .home-room-single,
  .home-room-pair,
  .home-supplement-portrait .home-photo {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .home-room-heading {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .home-room-single .home-room-heading,
  .home-room-single .home-room-photos {
    grid-column: auto;
    grid-row: auto;
  }
  .home-room-heading > p,
  .home-supplement-portrait figcaption {
    font-size: 0.9375rem;
  }
  .home-supplement-portrait .home-photo {
    gap: 0.85rem;
  }
  .home-supplement-portrait figcaption {
    max-width: none;
    font-size: 0.8rem;
  }
  .homes-contact {
    grid-template-columns: 1fr;
    padding-block: 2rem;
  }
  .homes-contact .homes-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 1rem;
  }
  .homes-next {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .homes-next > a:last-child {
    max-width: none;
  }
}
