/* ------------------------------------------------------------------ */
/* Section: Do you own a rooftop or a plot of land? — marquee gallery  */
/* Continuously auto-scrolling horizontal strip, infinite loop,        */
/* no arrows/dots (restores original con-kit-component-marquee-gallery) */
/* ------------------------------------------------------------------ */

.own-gallery {
  overflow: hidden;
}

.own-gallery__track {
  display: flex;
  width: max-content;
  animation: own-gallery-scroll 36s linear infinite;
}

/* Figures are duplicated 2x (3 originals + 3 aria-hidden clones) so the
   -50% keyframe lands exactly one image-set later and the loop is seamless.
   Spacing uses margin-right (not flex gap) so every inter-image space is
   inside the repeated half; with gap, the 6-item track would be short by
   half a gap at the wrap point. */
.own-gallery__track figure {
  flex: none;
  width: min(420px, 100%);
  height: 360px;
  margin: 0 16px 0 0;
}

.own-gallery__track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@keyframes own-gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .own-gallery__track { animation: none; }
}
