/* Mundo Privé photo lightbox — Privacy-like: spacing between slides + safe controls */
html.mp-photo-lb-open,
body.mp-photo-lb-open {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.mp-photo-lb-open {
  position: fixed !important;
  left: 0;
  right: 0;
}

.mp-photo-lb {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: #000;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.mp-photo-lb[hidden] {
  display: none !important;
}

/* Media area below close/zoom so photo never covers them */
.mp-photo-lb__viewport {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: 52px;
  left: 0;
  overflow: hidden;
  touch-action: none;
  cursor: default;
}

.mp-photo-lb.is-zoomed .mp-photo-lb__viewport {
  cursor: grab;
  top: 0;
  bottom: 0;
}

.mp-photo-lb.is-zoomed.is-dragging .mp-photo-lb__viewport {
  cursor: grabbing;
}

.mp-photo-lb__track {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  will-change: transform;
  transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mp-photo-lb.is-dragging .mp-photo-lb__track {
  transition: none;
}

/* Gap between slides while dragging (Privacy/PhotoSwipe spacing) */
.mp-photo-lb__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 20px;
  box-sizing: border-box;
}

.mp-photo-lb__zoom-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.mp-photo-lb__zoom-wrap.no-anim {
  transition: none;
}

.mp-photo-lb__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

.mp-photo-lb__img.is-ready {
  opacity: 1;
}

.mp-photo-lb.is-zoomed .mp-photo-lb__img {
  max-width: none !important;
  max-height: none !important;
  object-fit: fill;
}

.mp-photo-lb__close,
.mp-photo-lb__zoom {
  position: absolute;
  top: 8px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.mp-photo-lb__close {
  right: 10px;
}

.mp-photo-lb__zoom {
  right: 54px;
  font-size: 0;
}

.mp-photo-lb__zoom[hidden] {
  display: none !important;
}

.mp-photo-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.mp-photo-lb__nav[hidden] {
  display: none !important;
}

.mp-photo-lb__prev {
  left: 8px;
}

.mp-photo-lb__next {
  right: 8px;
}

.mp-photo-lb__counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.mp-photo-lb__counter[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .mp-photo-lb__slide {
    padding: 0 16px;
  }
  .mp-photo-lb__nav {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
