.pather-property-gallery {
  width: var(--pather-gallery-width, 1080px);
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.pather-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) var(--pather-button-width, 180px);
  gap: var(--pather-gap, 3px);
  align-items: stretch;
}

.pather-gallery-strip.no-button {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pather-gallery-thumb,
.pather-gallery-all {
  border: 0;
  padding: 0;
  margin: 0;
  height: var(--pather-thumb-height, 10px);
  min-height: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
}

.pather-gallery-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.pather-gallery-thumb:hover img {
  transform: scale(1.04);
}

.pather-gallery-all {
  background: #062e40;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.pather-gallery-all span {
  color: #d9a23f;
}

.pather-gallery-all small {
  display: block;
  font-size: 14px;
  color: #fff;
}

.pather-gallery-debug {
  display: block;
  color: #fff;
  margin-top: 8px;
}

.pather-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pather-lightbox[hidden] {
  display: none;
}

.pather-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
}

.pather-lightbox button {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(0,0,0,.35);
  cursor: pointer;
  font-size: 32px;
  padding: 14px 18px;
}

.pather-lightbox-close {
  top: 18px;
  right: 22px;
}

.pather-lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.pather-lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.pather-lightbox-count {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 8px 12px;
}

@media (max-width: 980px) {
  .pather-property-gallery {
    width: calc(100vw - 28px);
  }

  .pather-gallery-strip,
  .pather-gallery-strip.no-button {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pather-gallery-all {
    height: var(--pather-thumb-height, 92px);
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .pather-gallery-strip,
  .pather-gallery-strip.no-button {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pather-property-gallery {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: auto;
    padding: 0 12px;
  }

  .pather-gallery-strip,
  .pather-gallery-strip.no-button {
    display: flex !important;
    gap: 3px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .pather-gallery-thumb,
  .pather-gallery-all {
    flex: 0 0 42vw;
    height: 86px !important;
    min-height: 0 !important;
    scroll-snap-align: start;
  }

  .pather-gallery-thumb img {
    width: 100%;
    height: 86px !important;
    min-height: 0 !important;
    object-fit: cover;
  }

  .pather-gallery-all {
    flex-basis: 46vw;
    font-size: 12px;
    line-height: 1.25;
    padding: 8px;
  }
}