/* === STAGE32I_SINGLE_HOUSE_MOKRZYSKA_STYLE_PHOTO_STRIP_CSS_START === */
.single-house-media-holder {
  position: relative;
}

.single-house-media-main {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.single-house-media-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(16, 24, 20, 0.18);
}

/* Photo strip must match the normal Mokrzyska gallery behaviour: only image thumbnails, no labels/cards. */
.single-house-photo-strip.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
}

.single-house-photo-thumb.thumb {
  appearance: none;
  width: 118px;
  height: 72px;
  flex: 0 0 118px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #eef0ed;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(17, 28, 23, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.single-house-photo-thumb.thumb:hover,
.single-house-photo-thumb.thumb.active {
  transform: translateY(-1px);
  border-color: rgba(31, 48, 39, 0.66);
  box-shadow: 0 12px 30px rgba(17, 28, 23, 0.16);
}

.single-house-photo-thumb.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.single-house-lightbox-open {
  overflow: hidden;
}

.single-house-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}

.single-house-lightbox.open {
  display: flex;
}

.single-house-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 10, 0.76);
  backdrop-filter: blur(10px);
}

.single-house-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  max-height: 94vh;
  display: grid;
  /* STAGE35CW — columns sized to the image (not a fixed 1fr) so the figure wraps the photo with
     no letterbox, and the thumbnail strip below can match the photo width exactly. */
  grid-template-columns: auto auto auto;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.single-house-lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  /* STAGE35CW — the figure IS the frame: a big landscape tile the image fully fills. Its width
     (not the image's intrinsic size) drives the column, so the thumbnail strip below matches it. */
  width: min(1180px, 96vw - 160px);
  aspect-ratio: 16 / 10;
  max-height: calc(94vh - 150px);
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.single-house-lightbox-figure img {
  /* STAGE35CW — fill the whole frame automatically (cover): no letterbox, no empty gaps. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

.single-house-lightbox-close,
.single-house-lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.94);
  color: #1b2720;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.single-house-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  z-index: 2;
}

.single-house-lightbox-nav {
  width: 52px;
  height: 72px;
  border-radius: 18px;
  font-size: 46px;
  line-height: 1;
}

.single-house-lightbox-nav.prev {
  grid-column: 1;
}

.single-house-lightbox-nav.next {
  grid-column: 3;
}

.single-house-lightbox-strip {
  /* STAGE35CW — sit in the image column only (not under the nav arrows) → thumbnails perfectly
     underneath the photo, centered, never wider than it. */
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 10px;
}

.single-house-lightbox-thumb {
  flex: 0 0 112px;
  height: 74px;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.single-house-lightbox-thumb.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(31, 48, 39, 0.42);
}

.single-house-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .single-house-photo-strip.gallery-thumbs {
    gap: 10px;
  }

  .single-house-photo-thumb.thumb {
    width: 92px;
    height: 62px;
    flex-basis: 92px;
    border-radius: 14px;
  }

  .single-house-lightbox-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .single-house-lightbox-figure {
    grid-column: 1 / -1;
    width: 100%;
  }

  .single-house-lightbox-strip {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .single-house-lightbox-nav {
    width: 100%;
    height: 48px;
    font-size: 34px;
  }

  .single-house-lightbox-nav.prev,
  .single-house-lightbox-nav.next {
    grid-column: auto;
  }
}
/* === STAGE32I_SINGLE_HOUSE_MOKRZYSKA_STYLE_PHOTO_STRIP_CSS_END === */
