.image-carousel {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  overflow: hidden;
  background: transparent;
  color: var(--muted, #56505a);
  border-radius: 3px;
  touch-action: pan-y;
}
.image-carousel-photo { width: 100%; height: 100%; min-height: 0; object-fit: contain; position: absolute; inset: 0; }
.image-carousel [hidden] { display: none; }
.image-carousel-counter { position: absolute; z-index: 2; bottom: 10px; right: 10px; padding: 5px 10px; border-radius: 20px; color: white; background: #241d2bd9; font: 600 14px/1.3 "Space Grotesk", system-ui, sans-serif; }
.image-carousel-button {
  position: absolute;
  z-index: 2;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fffef5ed;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.image-carousel-button:hover { background: var(--sun, #ffd77a); transform: scale(1.05); }
.image-carousel-button:active { transform: scale(.96); }
.image-carousel-button svg { width: 22px; height: 22px; display: block; fill: var(--plum, #5a315b); shape-rendering: crispEdges; }
.image-carousel-button--previous { left: 8px; }
.image-carousel-button--next { right: 8px; }
.image-carousel:focus-visible { outline: 3px solid var(--plum, #5a315b); outline-offset: 3px; }
.image-carousel-button:focus-visible { outline: 2px solid var(--plum, #5a315b); outline-offset: 4px; }
.image-carousel--empty,
.image-carousel-error {
  background: #fff9f0 url('../images/property-placeholder-8bit.webp?v=ogabit-20261010121634') center / cover no-repeat;
  padding: 20px 55px;
  text-align: center;
  color: #5a315b;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px #fff9f0;
  align-items: end;
}
.image-carousel-error { position: absolute; inset: 0; display: grid; align-content: end; }
