.property-gallery [hidden] { display: none !important; }
.property-gallery .gallery-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #efefeb;
  touch-action: pan-y pinch-zoom;
}
.gallery-track { display: flex; height: 100%; transition: transform 250ms ease; }
.gallery-slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-slide:last-child img { object-fit: contain; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.gallery-arrow svg { width: 23px; height: 23px; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; background: var(--yellow); }
.gallery-arrow:hover { background: var(--yellow); }
.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.property-gallery .gallery-captions { min-height: 3.2em; }
.gallery-caption { margin: 0; }
.gallery-thumbs { display: flex; gap: 14px; margin-top: 12px; }
.gallery-thumb {
  flex: 0 1 100px;
  min-width: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 0 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gallery-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 5px; }
.gallery-thumb:last-child img { object-fit: contain; background: #efefeb; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--yellow); color: var(--ink); }
.gallery-thumb:hover { color: var(--ink); }
.property-gallery button:focus-visible { outline: 3px solid #8a6800; outline-offset: 3px; }
.property-gallery:focus-visible { outline: 3px solid #8a6800; outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track { transition: none; }
}
