
.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);
  overflow: hidden;
}

.viewer__frame {
  position: absolute;
  inset:0px;
  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: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  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: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  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: 9px;
    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: 5px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.dot {
  width: 0.25rem;
  height: 0.25rem;
  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;
  max-width:80%;
  left:10%;
  
  z-index:999999;
  top:15vh;
  height: 40vh;
  
}

.modal__stage {
  position: relative;
  display: grid;
  place-items: center;
  background-color:#FFF;
 width: min(50vw, 92vw);
    height: 66vh;
    border-radius: 20px;
}
.modal__stage div{
	
	}
.modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  cursor: zoom-in;
      position: relative;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center;
	width: min(48vw, 92vw);
    height: 62vh;
    border-radius: 20px;
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
 width: 1.3rem;
    height: 1.3rem;
  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;
  z-index: 999;
}

.modal__nav .icon {
  width: 22px;
  height: 22px;
}

.modal__nav:active {
  transform: translateY(-50%) scale(0.98);
}

.modal__nav--prev {
  left: 0.5rem;
}

.modal__nav--next {
  right: 0.5rem;
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 20%;
  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;
  display:none;
}

@media (max-width: 960px) {
  .viewer {
    aspect-ratio: 4 / 3;
  }

  .viewer__frame {
    inset: 0px;
  }

  .nav {
    width: 36px;
    height: 36px;
  }
.nav--prev {
    left: 4px;
}
.nav--next {
    right: 4px;
}
  .zoomBtn {
        width: 44px;
    height: 44px;
  }
  .modal__nav--prev {
  left: 0;
}

.modal__nav--next {
  right: 0;
}

.modal__panel {
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  max-width:80%;
  left:5%;
  
  z-index:999999;
  top:30vh;
  height: 40vh;
  
}
.modal__stage {
  position: relative;
  display: grid;
  place-items: center;
  background-color:#FFF;
  width: min(90vw, 92vw);
  height: 40vh;
}
.modal__close {
  position: absolute;
  top: 0rem;
  right: -10vw;
  width: 30px;
  height: 30px;
  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__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    cursor: zoom-in;
    position: relative;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center;
    width: min(86vw, 92vw);
    height: 38vh;
    border-radius: 20px;
}
}
