/* 06_2 전체 보기 / 06_3 미리보기 */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.viewer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(51.7px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 25px 0 15.7px;
  background: #e7e1d6;
  color: var(--c-text);
}
.viewer__back,
.viewer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  color: var(--c-text);
}
.viewer__title {
  font-family: var(--f-en);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--c-text);
}
.viewer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 37.6px 0 93px;
}
.viewer__grid li {
  aspect-ratio: 124.3 / 170;
  overflow: hidden;
}
.viewer__grid button { display: block; width: 100%; height: 100%; }
.viewer__grid img { width: 100%; height: 100%; object-fit: cover; }

.viewer--preview { overflow: hidden; }
.viewer--preview .viewer__head { padding: env(safe-area-inset-top, 0px) 19px 0 22px; }
.preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview__img {
  width: 74.93%;
  max-height: calc(100% - 140px);
  object-fit: contain;
}
.preview__nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 60px;
  margin-top: -30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
}
.preview__nav:disabled { color: rgba(34, 35, 47, 0.25); cursor: default; }
.preview__nav--prev { left: 7.3px; }
.preview__nav--next { right: 7.3px; }
