/* Shared by every listing page style: reset, the film theater, the lightbox, and the prototype style switcher */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { background: #fff; min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; flex: none; }

.overlay { position: fixed; inset: 0; z-index: 100; background: #070708; display: none; font-family: system-ui, sans-serif; }
.overlay.open { display: flex; align-items: center; justify-content: center; }
.overlay .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; color: #fff; font: 300 30px/1 system-ui, sans-serif; z-index: 2; transition: background-color .15s; }
.overlay .close:hover { background: rgba(255,255,255,.12); }
.theater video { width: min(100vw, 177.78vh); max-height: 100vh; background: #000; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 72px 24px; margin: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lightbox figcaption { color: #A3A8B1; font-size: 13px; line-height: 1.5; display: flex; gap: 20px; justify-content: space-between; width: min(100%, 1200px); margin-top: 12px; }
.lightbox figcaption b { color: #fff; font-weight: 500; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; color: #fff; font: 300 34px/1 system-ui, sans-serif; transition: background-color .15s; }
.lightbox .nav:hover { background: rgba(255,255,255,.12); }
.lightbox .prev { left: 12px; } .lightbox .next { right: 12px; }

/* The cover loop stays hidden until it's really playing, so the cover photo never flashes to black */
video[data-loop] { opacity: 0; transition: opacity .6s ease; }
video[data-loop].on { opacity: 1; }
.mobile-bar { display: none; }
.sent { grid-column: 1 / -1; font-size: 20px; }

/* Prototype only */
.style-switch { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(11,15,25,.88); backdrop-filter: blur(8px); font: 500 13px/1 system-ui, sans-serif; }
.style-switch a { color: #C9CDD4; text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: background-color .15s, color .15s; }
.style-switch a:hover { color: #fff; }
.style-switch a[aria-current] { background: #fff; color: #0B0F19; }

@media (max-width: 700px) {
  .lightbox figure { padding: 64px 0 24px; }
  .lightbox figcaption { padding: 0 16px; }
  .lightbox .nav { top: auto; bottom: 18px; transform: none; }
  .style-switch { bottom: 84px; left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The neighborhood photo's credit (Google photos name their photographer) */
.credit { white-space: nowrap; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Footer: the Equal Housing Opportunity mark beside the compliance lines, in the footer's own color */
footer .wrap { align-items: center; }
footer .compliance { display: flex; align-items: center; gap: 14px; }
footer .eho { flex: none; display: block; width: 40px; height: 40px; }
