/* ==================================================
   SEOHEUNG IMAGE MODAL
================================================== */

/* 클릭 가능한 제품 이미지 */
.seoheung-gallery-item img,
.variant-static-item img,
.seoheung-split-image img,
.seoheung-variant-image img,
.seoheung-variant-item img,
.product-gallery .gallery-main img[data-gallery-main] {
  cursor: zoom-in !important;
}

/* --------------------------------------------------
   모달 전체
-------------------------------------------------- */

.seoheung-image-modal {
  position: fixed;

  inset: 0;

  z-index: 999999;

  display: none;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  padding: 56px 72px;

  background: rgba(0, 0, 0, 0.92);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.seoheung-image-modal.is-open {
  display: flex;

  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------
   이미지 영역
-------------------------------------------------- */

.seoheung-image-modal-inner {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;
}

.seoheung-image-modal-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  user-select: none;

  box-shadow:
    0 12px 50px
    rgba(0, 0, 0, 0.32);
}

/* --------------------------------------------------
   CLOSE
-------------------------------------------------- */

.seoheung-image-modal-close {
  position: fixed;

  top: 24px;
  right: 28px;

  z-index: 1000001;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  min-width: 96px;
  height: 44px;

  padding: 0 16px;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;

  background: rgba(0, 0, 0, 0.38);

  color: #fff;

  font-family: inherit;
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 1.5px;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.seoheung-image-modal-close:hover {
  background: #fff;

  border-color: #fff;

  color: #111;
}

.seoheung-image-modal-close-icon {
  display: block;

  font-size: 25px;
  font-weight: 300;

  line-height: 1;
}

/* --------------------------------------------------
   이미지 캡션
-------------------------------------------------- */

.seoheung-image-modal-caption {
  position: fixed;

  left: 50%;
  bottom: 22px;

  z-index: 1000001;

  max-width: calc(100vw - 80px);

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.82);

  font-size: 12px;
  line-height: 1.4;

  letter-spacing: 0.5px;

  text-align: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------
   모달 열릴 때 뒷페이지 고정
-------------------------------------------------- */

html.seoheung-modal-open,
body.seoheung-modal-open {
  overflow: hidden !important;
}

/* --------------------------------------------------
   모바일
-------------------------------------------------- */

@media (max-width: 767px) {
  .seoheung-image-modal {
    padding:
      70px
      16px
      50px;
  }

  .seoheung-image-modal-close {
    top: 14px;
    right: 14px;

    min-width: 48px;
    width: 48px;
    height: 48px;

    padding: 0;
  }

  .seoheung-image-modal-close-text {
    display: none;
  }

  .seoheung-image-modal-close-icon {
    font-size: 28px;
  }

  .seoheung-image-modal-caption {
    bottom: 14px;

    max-width: calc(100vw - 32px);
  }
}