/* =====================================================
   En Baba ortak foto/video inceleme sistemi
   - Swiper CDN bağımlılığı yoktur.
   - Modal açıkken scroll sadece kontrollü kilitlenir.
===================================================== */
html.enb-swiper-lock,
body.enb-swiper-lock,
html.enb-media-lock,
body.enb-media-lock{
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.enb-swiper-modal,
.enb-media-viewer{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  pointer-events: none;
}
.enb-swiper-modal.is-open,
.enb-media-viewer.is-open{
  display: block;
  pointer-events: auto;
}

.enb-swiper-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(8px);
}

.enb-swiper-shell,
.enb-media-shell{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  place-items: center;
  gap: .7rem;
  padding: 18px clamp(12px, 3vw, 28px) calc(18px + env(safe-area-inset-bottom));
}

.enb-swiper-close,
.enb-media-close{
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
}

.enb-swiper-nav{
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 48px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,23,42,.62);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
}
.enb-swiper-nav:hover{ background: rgba(15,23,42,.82); }
.enb-swiper-nav[hidden]{ display: none !important; }
.enb-swiper-prev{ left: clamp(10px, 2vw, 22px); }
.enb-swiper-next{ right: clamp(10px, 2vw, 22px); }

.enb-media-stage{
  position: relative;
  width: min(1040px, 100%);
  height: min(78vh, 760px);
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 22px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 28px 90px rgba(0,0,0,.52);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.enb-media-img,
.enb-media-video{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
}
.enb-media-img{
  transition: transform 160ms ease;
  will-change: transform;
  cursor: zoom-in;
}
.enb-media-stage.is-zoomed .enb-media-img{ cursor: grab; }
.enb-media-stage.is-dragging .enb-media-img{ cursor: grabbing; transition: none; }
.enb-media-video{
  width: min(100%, 980px);
  height: min(70vh, 700px);
}

.enb-media-caption{
  width: min(1040px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-size: .95rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.enb-media-caption strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enb-media-caption span{
  flex: 0 0 auto;
  opacity: .84;
}
.enb-media-hint{
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}

@media (max-width: 720px){
  .enb-swiper-shell,
  .enb-media-shell{
    padding: calc(64px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom));
    gap: .55rem;
  }
  .enb-media-stage{
    width: 100%;
    height: min(72vh, 680px);
    border-radius: 18px;
    padding: 6px;
  }
  .enb-swiper-nav{
    width: 40px;
    height: 52px;
    font-size: 36px;
    opacity: .86;
  }
  .enb-swiper-prev{ left: 6px; }
  .enb-swiper-next{ right: 6px; }
  .enb-media-caption{
    padding: 0 6px;
    font-size: .86rem;
  }
  .enb-media-hint{ font-size: .78rem; }
}
