/* ==========================================================
   MYRENTHOUSE PROPERTY PHOTO VIEWER — PHOTOSWIPE 5
========================================================== */
   
.mrh-pswp {
  --pswp-bg: #050b16;
  --pswp-placeholder-bg: #111c2e;
  --pswp-root-z-index: 1000000;
  --pswp-icon-color: #ffffff;
  --pswp-icon-color-secondary: #172033;
  --pswp-icon-stroke-color: rgba(15, 23, 42, .72);
  --pswp-icon-stroke-width: 1.5px;
  font-family: inherit;
}

.mrh-pswp .pswp__bg {
  background:
    radial-gradient(circle at 14% 10%, rgba(14, 165, 233, .18), transparent 32%),
    radial-gradient(circle at 88% 86%, rgba(2, 132, 199, .13), transparent 34%),
    linear-gradient(145deg, #030711, #07111f 58%, #061624);
}

.mrh-pswp .pswp__top-bar {
  height: 78px;
  align-items: center;
  border-bottom: 1px solid rgba(125, 211, 252, .13);
  background: linear-gradient(180deg, rgba(3, 7, 18, .94), rgba(3, 7, 18, .70));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.mrh-pswp .pswp__mrh-property {
  min-width: 0;
  max-width: min(56vw, 720px);
  height: 78px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px 10px 26px;
  overflow: hidden;
}

.mrh-pswp .pswp__mrh-property strong,
.mrh-pswp .pswp__mrh-property span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mrh-pswp .pswp__mrh-property strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.mrh-pswp .pswp__mrh-property span {
  margin-top: 3px;
  color: rgba(224, 242, 254, .65);
  font-size: 11px;
  font-weight: 700;
}

.mrh-pswp .pswp__counter {
  position: static;
  min-width: 66px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, .10);
  font-size: 12px;
  font-weight: 900;
  opacity: 1;
}

.mrh-pswp .pswp__button--zoom,
.mrh-pswp .pswp__button--close {
  width: 46px;
  height: 46px;
  margin: 0 7px 0 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
  opacity: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

/* Zoom remains available from the image, wheel, double-click, and pinch. */
.mrh-pswp .pswp__button--zoom {
  display: none !important;
}

/* PhotoSwipe's stock icons are offset for its original 60px controls. */
.mrh-pswp .pswp__button--zoom .pswp__icn,
.mrh-pswp .pswp__button--close .pswp__icn {
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.mrh-pswp .pswp__button--zoom:hover,
.mrh-pswp .pswp__button--close:hover {
  border-color: rgba(125, 211, 252, .46);
  background: rgba(14, 165, 233, .20);
  transform: translateY(-1px);
}

.mrh-pswp .pswp__button--arrow {
  width: 62px;
  height: 62px;
  margin-top: -31px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 20px;
  background: rgba(3, 7, 18, .64);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .30);
  opacity: .82;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity .18s ease, background .18s ease, transform .18s ease;
}

.mrh-pswp .pswp__button--arrow:hover {
  border-color: rgba(125, 211, 252, .48);
  background: rgba(2, 132, 199, .32);
  opacity: 1;
}

.mrh-pswp .pswp__button--arrow--prev {
  left: 18px;
}

.mrh-pswp .pswp__button--arrow--next {
  right: 18px;
}

.mrh-pswp .pswp__img {
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.mrh-pswp .pswp__mrh-caption {
  position: absolute;
  right: 22px;
  bottom: 108px;
  left: 22px;
  z-index: 16;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 17px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .15);
  border-radius: 999px;
  color: rgba(240, 249, 255, .92);
  background: rgba(3, 7, 18, .66);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.mrh-pswp .pswp__mrh-thumbs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  height: 98px;
  display: flex;
  align-items: center;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(125, 211, 252, .12);
  background: linear-gradient(180deg, rgba(3, 7, 18, .48), rgba(3, 7, 18, .94));
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .18);
  pointer-events: auto;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.mrh-pswp .pswp__mrh-thumbs-rail {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 3px calc(50% - 52px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, .54) transparent;
}

.mrh-pswp .pswp__mrh-thumbs-rail::-webkit-scrollbar {
  height: 4px;
}

.mrh-pswp .pswp__mrh-thumbs-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, .54);
}

.mrh-pswp .pswp__mrh-thumb {
  position: relative;
  width: 92px;
  height: 62px;
  display: block;
  flex: 0 0 92px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: #111c2e;
  cursor: pointer;
  opacity: .56;
  box-shadow: none;
  transform: scale(.94);
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mrh-pswp .pswp__mrh-thumb:hover,
.mrh-pswp .pswp__mrh-thumb.is-active {
  border-color: #38bdf8;
  opacity: 1;
  transform: scale(1);
}

.mrh-pswp .pswp__mrh-thumb.is-active {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .22), 0 10px 25px rgba(0, 0, 0, .34);
}

.mrh-pswp .pswp__mrh-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mrh-pswp .pswp__preloader {
  margin-right: 8px;
}

@media (max-width: 700px) {
  .mrh-pswp .pswp__top-bar {
    height: 64px;
  }

  .mrh-pswp .pswp__mrh-property {
    max-width: calc(100vw - 176px);
    height: 64px;
    padding-left: 14px;
  }

  .mrh-pswp .pswp__mrh-property strong {
    font-size: 14px;
  }

  .mrh-pswp .pswp__mrh-property span {
    display: none;
  }

  .mrh-pswp .pswp__counter {
    min-width: 56px;
    height: 34px;
    padding: 0 9px;
  }

  .mrh-pswp .pswp__button--zoom {
    display: none;
  }

  .mrh-pswp .pswp__button--close {
    width: 42px;
    height: 42px;
    margin-right: 5px;
  }

  .mrh-pswp .pswp__button--arrow {
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 15px;
  }

  .mrh-pswp .pswp__button--arrow--prev {
    left: 7px;
  }

  .mrh-pswp .pswp__button--arrow--next {
    right: 7px;
  }

  .mrh-pswp .pswp__mrh-caption {
    right: 12px;
    bottom: 86px;
    left: 12px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .mrh-pswp .pswp__mrh-thumbs {
    height: 78px;
    padding: 7px 8px 10px;
  }

  .mrh-pswp .pswp__mrh-thumbs-rail {
    gap: 7px;
    padding-right: calc(50% - 40px);
    padding-left: calc(50% - 40px);
  }

  .mrh-pswp .pswp__mrh-thumb {
    width: 72px;
    height: 50px;
    flex-basis: 72px;
    border-radius: 10px;
  }
}

