
.icon {
  display: block;
  image-rendering: -webkit-optimize-contrast;
  user-select: none;
  pointer-events: none;
}

.page {
}

.viewer {
  position: relative;
  width: min(980px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 40px rgba(20, 35, 60, 0.18);
  overflow: hidden;
}

.viewer__frame {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  overflow: hidden;
}

.viewer__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.nav .icon {
  width: 22px;
  height: 22px;
}

.nav:active {
  transform: translateY(-50%) scale(0.98);
}

.nav--prev {
  left: 22px;
}

.nav--next {
  right: 22px;
}

.zoomBtn {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.zoomBtn .icon {
  width: 24px;
  height: 24px;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(31, 42, 55, 0.65);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot[aria-selected="true"] {
  background: rgba(31, 42, 55, 0.85);
  border-color: rgba(31, 42, 55, 0.2);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index:999;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.72);
}

.modal__panel {
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  background-color:#FFF;
  max-width:70%;
  left:15%;
  
  z-index:999999;
  top:20vh;
   height: 60vh;
  
}

.modal__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(800px, 92vw);
}

.modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.06);
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.modal__nav .icon {
  width: 22px;
  height: 22px;
}

.modal__nav:active {
  transform: translateY(-50%) scale(0.98);
}

.modal__nav--prev {
  left: -166px;
}

.modal__nav--next {
  right: -166px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal__close .icon {
  width: 20px;
  height: 20px;
}

.modal__hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.2px;
  user-select: none;
}

@media (max-width: 560px) {
  .viewer {
    aspect-ratio: 4 / 3;
  }

  .viewer__frame {
    inset: 10px;
  }

  .nav {
    width: 46px;
    height: 46px;
  }

  .zoomBtn {
    width: 52px;
    height: 52px;
  }
}
