/* Global shell — banner, split nav, sidebar, footer, listing cards, chrome */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ClientRouter default root cross-fade reads as layout jitter — keep swaps instant. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
}

/* Do not set scroll-behavior: smooth on html — ClientRouter scroll
   restore + smooth animates to a mid-page position and feels broken. */

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--black);
}

a:hover {
  color: var(--gold-deep);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.site-banner {
  display: block;
  width: 100%;
  background: var(--black);
  /* Full-bleed black bar; image is capped to page width below. */
}

.site-banner img {
  display: block;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  height: auto;
  /* Matches width/height on the img — reserve space before the file arrives. */
  aspect-ratio: 1232 / 175;
  object-fit: cover;
}

/* —— Header / split nav —— */
/* Wrapper carries sticky + z-index so the overflow menu stacks above page content
   (persist/transition wrappers otherwise leave the dropdown under main/aside). */
.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header {
  position: relative;
  z-index: 200;
  background: var(--black);
  /* Gold rule overlays the bar so hover can paint full height with no black strip. */
  border-bottom: none;
  padding-bottom: 4px;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  pointer-events: none;
  z-index: 5;
}

.site-header__inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: nowrap;
  min-height: 52px;
}

.site-header__wordmark {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.15;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.site-header__wordmark.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header__wordmark:hover {
  color: var(--gold);
}

.site-nav {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0 2px;
  overflow: hidden;
}

.site-nav > li {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Author `display: flex` otherwise beats [hidden] and overflow links
   keep painting — they pile up under the sticky wordmark. */
.site-nav > li[hidden] {
  display: none !important;
}

.site-nav a {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--gold);
  color: var(--black);
}

.site-nav a.is-active {
  color: var(--gold);
}

.site-nav a.is-active:hover {
  color: var(--black);
}

/* Keep the ⋯ slot in layout even when unused — toggling [hidden] was
   shifting Sign Up / Login on measure + font swap (the load flicker). */
.site-nav__more.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.site-nav__more {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
}

.site-nav__more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.site-nav__more-btn:hover {
  background: var(--nav-hover-dark);
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin: 6px 0 0;
  padding: 6px 0;
  list-style: none;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dropdown);
  z-index: 210;
}

.site-nav__more.is-open .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown a {
  display: block;
  padding: 11px 18px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav__dropdown a:hover {
  background: var(--cream);
  color: #1a1a1a;
}

.site-nav__measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0 2px;
  white-space: nowrap;
}

.site-nav__measure li {
  padding: 0 10px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header__actions {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--nav-divider);
}

.site-header__actions a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: var(--nav-dim);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.site-header__actions a:hover {
  color: var(--gold);
}

.site-header__call {
  margin-left: 10px !important;
  height: auto !important;
  align-self: center;
  background: var(--gold);
  color: var(--black) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-pill);
}

.site-header__call:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

.site-header__mobile {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  width: 100%;
}

.site-header__mobile-wordmark {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.site-header__mobile-call {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}

.site-header__burger {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.site-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.site-drawer {
  display: none;
  background: var(--black);
  border-bottom: 4px solid var(--gold);
}

.site-drawer.is-open {
  display: block;
}

.site-drawer a {
  display: block;
  padding: 13px 18px;
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.site-drawer a:hover,
.site-drawer a.is-active {
  background: var(--gold);
  color: var(--black);
}

.site-drawer__auth {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
}

.site-drawer__auth a {
  flex: 1;
  text-align: center;
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  color: var(--gold);
  padding: 10px 12px;
  font-size: 15px;
}

.site-drawer__auth a:hover {
  background: var(--gold);
  color: var(--black);
}

/* —— Page grid —— */
.site-page {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--main-gap);
  padding: var(--page-pad);
  align-items: start;
}

.site-page--solo {
  grid-template-columns: minmax(0, 1fr);
}

.site-main {
  min-width: 0;
}

.site-main__empty {
  min-height: 120px;
}

/* —— Sidebar —— */
.site-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  border: var(--border-card);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}

.side-contact {
  position: relative;
  padding: 18px 16px 16px;
  min-height: 188px;
  overflow: hidden;
}

.side-contact__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  /* Leave room for absolute portrait on the bottom-right. */
  padding-right: 120px;
}

.side-contact__name {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.side-contact__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.side-contact__phone {
  display: inline-block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
}

.side-contact__email {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  text-decoration: none;
  color: var(--black);
  overflow-wrap: anywhere;
}

.side-contact__social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.side-contact__social a {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid var(--line-portrait);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
}

.side-contact__social a:hover {
  border-color: var(--black);
}

.side-contact__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.side-contact__social .fb-mark {
  width: 20px;
  height: 20px;
  fill: #0866ff;
}

.side-contact__portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  aspect-ratio: 132 / 180;
  pointer-events: none;
  z-index: 0;
}

.side-contact__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 132 / 180;
  transform: scaleX(-1);
}

.side-reviews {
  padding: 14px 12px 0;
}

.side-reviews__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.side-reviews__summary {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.side-reviews__stars {
  color: var(--star);
  font-size: 18px;
  letter-spacing: 1px;
  -webkit-text-stroke: 1px var(--black);
  line-height: 1;
}

.side-reviews__logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 0 12px;
  min-height: 18px;
}

.side-reviews__logos img {
  display: block;
  height: 18px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  flex: 0 1 auto;
}

/* Wide wordmark (177×24) — cap width so it doesn’t dominate the row. */
.side-reviews__logos img[alt='Realtor.com'] {
  height: 16px;
  max-width: 74px;
}

.side-reviews__logos img[alt='RateMyAgent'] {
  height: 18px;
  max-width: 70px;
}

.side-reviews__logos img[alt='Redfin'] {
  height: 18px;
  max-width: 72px;
}

.side-reviews__cta {
  display: block;
  margin: 0 -12px;
  text-align: center;
  padding: 12px 10px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
}

.side-reviews__cta:hover {
  background: var(--black);
  color: var(--gold);
}

.side-award {
  padding: 16px 14px;
  text-align: center;
}

.side-award h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.side-award p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.side-value {
  padding: 22px 16px;
  background: var(--gold);
  text-align: center;
}

.side-value a {
  display: block;
  color: var(--black);
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.side-value a:hover {
  color: var(--black);
  text-decoration: underline;
}

.side-value p {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--black);
}

.side-listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-listings__more {
  align-self: center;
  background: var(--white);
  color: var(--black);
  border: var(--border-card);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.side-listings__more:hover {
  background: var(--gold);
}

.side-listings__more[hidden] {
  display: none !important;
}

.listing-card[hidden],
.listing-card[data-load-deferred] {
  display: none !important;
}

/* —— Contact form —— */
.side-form {
  padding: 16px 14px 18px;
}

.side-form h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.side-form__helper {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.side-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-form__grid .full {
  grid-column: 1 / -1;
}

.side-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.side-form input,
.side-form textarea {
  width: 100%;
  border: 1px solid var(--black);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 15px;
  background: var(--white);
}

.side-form textarea {
  resize: vertical;
  min-height: 56px;
}

.side-form__submit {
  display: block;
  margin: 14px auto 0;
  background: var(--gold);
  color: var(--black);
  border: var(--border-card);
  border-radius: var(--radius-pill);
  padding: 9px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.side-form__submit:hover {
  background: var(--black);
  color: var(--gold);
}

.side-form__messages {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.side-form__messages.is-error {
  color: #8b1e1e;
}

.side-form__messages.is-ok {
  color: #196535;
}

.ohnohoney {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* —— Listing cards —— */
.listing-card {
  border: var(--border-card);
  border-radius: var(--radius-card);
  background: var(--gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-card__media {
  position: relative;
  height: 200px;
  background: #2a2a2a;
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #2a2a2a;
}

/* Lazy images: soft fade-in after decode (see /js/lazy.js). */
img[data-src],
img.is-lazy:not(.is-loaded) {
  opacity: 0;
  background: #e8e2d4;
}

img.is-lazy {
  transition: opacity 0.55s ease;
}

img.is-lazy.is-loaded {
  opacity: 1;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  img.is-lazy {
    transition: none;
  }
}

.listing-card__body {
  padding: 0 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card__address {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: var(--border-card);
  border-radius: var(--radius-plate);
  width: 94%;
  margin: -32px auto 10px;
  padding: 10px 12px 11px;
  text-align: center;
}

.listing-card__new {
  display: block;
  width: 98px;
  height: 78px;
  margin: -8px auto 6px;
  filter: var(--shadow-new);
}

.listing-card__street {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card__city {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

.listing-card__feats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}

.listing-card__feats li {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.listing-card__feats .st-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.listing-card__note {
  margin: 0 0 12px;
  padding: 7px 10px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.listing-card__actions {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  margin-top: auto;
}

.listing-card__video,
.listing-card__details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  font-size: 15px;
  font-weight: 700;
  border: var(--border-card);
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
}

.listing-card__video {
  flex: 1.25;
  color: var(--white);
  background: var(--black);
}

.listing-card__video:hover {
  background: #1f1c15;
  color: var(--white);
}

.listing-card__play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.listing-card__details {
  flex: 1;
  color: var(--black);
  background: var(--white);
}

.listing-card__details:hover {
  background: var(--cream-warm);
  color: var(--black);
}

.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--for-sale);
}

.listing-card.is-sold .listing-card__footer {
  background: var(--sold);
}

.listing-card__status {
  border: 3px solid var(--white);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 10px;
  line-height: 1;
}

.listing-card__price {
  color: var(--white);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -1px;
}

/* —— Footer —— */
.site-footer {
  border-top: 3px solid var(--black);
  padding: 34px 32px 40px;
  background: var(--white);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer__heading {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
}

.site-footer__sites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.site-footer__sites > li {
  flex: 0 0 320px;
  width: 320px;
  max-width: 100%;
}

.site-footer__sites a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 74px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-tile);
  text-decoration: none;
  color: var(--black);
  background: var(--white);
}

.site-footer__sites a:hover {
  background: var(--cream-warm);
  border-left-color: var(--black);
  color: var(--black);
}

.site-footer__site-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.site-footer__site-name {
  font-size: 17.5px;
  font-weight: 700;
}

.site-footer__site-domain {
  font-size: 12.5px;
  color: var(--muted-3);
}

.site-footer__site-ext {
  flex-shrink: 0;
  font-size: 17px;
  color: var(--gold-deep);
}

.site-footer__band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
  padding: 30px 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  text-align: center;
}

.site-footer__contact,
.site-footer__brand,
.site-footer__marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer__name {
  font-size: 26px;
  font-weight: 700;
}

.site-footer__role {
  font-size: 19px;
  margin-top: 4px;
  line-height: 1.5;
}

.site-footer__reach {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.site-footer__reach a,
.site-footer__reach a:link,
.site-footer__reach a:visited {
  color: var(--black);
  text-decoration: none;
}

.site-footer__reach a:first-child {
  font-size: 22px;
  font-weight: 700;
}

.site-footer__reach a:last-child {
  font-size: 19px;
}

.site-footer__reach a:hover {
  color: var(--gold-deep);
  text-decoration: none;
}

.site-footer__brand {
  gap: 10px;
}

.site-footer__long {
  display: block;
  height: 168px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer__brand-line {
  font-size: 18px;
  font-weight: 600;
}

.site-footer__marks {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 34px;
}

.site-footer__realtor {
  display: block;
  height: 84px;
  width: auto;
}

.site-footer__equal {
  display: block;
  height: 78px;
  width: auto;
}

@media (max-width: 1100px) {
  .site-footer__sites > li {
    flex: 0 1 320px;
    width: auto;
    min-width: min(260px, 100%);
  }
}

@media (max-width: 860px) {
  .site-footer__band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__long {
    height: 140px;
  }
}

.site-footer__nav-wrap {
  margin-top: 26px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.site-footer__nav a:hover {
  color: var(--gold-deep);
}

.site-footer__copy {
  margin: 18px 0 0;
  font-size: 15px;
  text-align: center;
  color: var(--ink);
}

/* —— Back to top / video modal —— */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  border: var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-top);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__panel {
  position: relative;
  /* Cap by width and by height so the box is stable before metadata loads. */
  width: min(960px, 100%, calc(78vh * 16 / 9));
}

.video-modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.video-modal video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
  background: var(--black);
}

@media (max-width: 860px) {
  .site-header__inner {
    display: none;
  }

  .site-header__mobile {
    display: flex;
  }

  .site-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .site-aside-shell,
  .site-aside {
    display: none;
  }
}
