.listing-page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.listing-page h1 { margin: 0; }
.listing-page > p { margin: 1rem 0 2rem; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.listing { border: 1px solid var(--line, #888); border-radius: 0.5rem; overflow: hidden; }
.listing-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing-info { padding: 1rem 1.25rem; }
.listing-info h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.listing-info p { margin: 0 0 0.5rem; }
.listing-price { font: 700 1.4rem Georgia, serif; }
.listing-contact { display: inline-block; margin-top: 0.65rem; text-decoration: underline; text-underline-offset: 0.2em; }
.listing-source { border-top: 1px solid var(--line, #888); margin-top: 2rem; padding-top: 1rem; }
.listing-source p { max-width: 78ch; }
.listing-source-logo { display: block; width: 5.5rem; height: auto; padding: 0.5rem; background: #191919; border-radius: 0.25rem; }
.listing-gallery-button, .listing-gallery button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  padding: 0.45rem 0.75rem;
  border-radius: 0.3rem;
  cursor: pointer;
}
.listing-gallery-button { display: block; margin-top: 0.75rem; }
.listing-gallery {
  color: #f8f8f8;
  background: #181818;
  border: 1px solid #777;
  border-radius: 0.5rem;
  width: min(58rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 1rem;
  box-sizing: border-box;
}
.listing-gallery::backdrop { background: rgb(0 0 0 / 78%); }
.listing-gallery-header, .listing-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.listing-gallery .listing-gallery-header { position: static; background: transparent; }
.listing-gallery-header h2 { font-size: clamp(1rem, 2.5vw, 1.45rem); margin: 0; }
.listing-gallery-image { display: block; width: 100%; height: min(65dvh, 36rem); object-fit: contain; margin-block: 0.75rem; }
.listing-gallery button:disabled { opacity: 0.45; cursor: default; }
