.site-popup-jeongeup_mobile {
  --jeongeup-mobile-red: #7e1019;
  position: fixed !important;
  top: 18% !important;
  left: 10% !important;
  right: auto !important;
  z-index: 10001 !important;
  width: 80vw !important;
  height: 117vw;
  max-height: calc(100vh - 32px);
  transform: none !important;
  display: block;
  pointer-events: auto;
  animation: jeongeupMobileFadeIn 0.5s ease both;
}

.site-popup-wrap:has(.site-popup-jeongeup_mobile) .popup-dim {
  z-index: 10000 !important;
  background: rgba(0, 0, 0, 0.5);
  animation: jeongeupMobileFadeIn 0.4s ease both;
}

/* 닫기 애니메이션 */
.site-popup-wrap.is-closing .site-popup-jeongeup_mobile {
  animation: jeongeupMobileFadeOut 0.4s ease forwards;
}

.site-popup-wrap.is-closing .popup-dim {
  animation: jeongeupMobileFadeOut 0.4s ease forwards;
}

.site-popup-jeongeup_mobile .site-popup-items {
  position: relative;
  width: 100%;
  height: 100%;
}

.site-popup-jeongeup_mobile .site-popup-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-popup-jeongeup_mobile .site-popup-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.site-popup-jeongeup_mobile .site-popup-image img {
  display: block;
  width: 80vw;
  height: 117vw;
  max-height: calc(100vh - 32px);
  object-fit: cover;
  box-shadow: 3px 3px 15px rgba(255, 255, 255, 0.1);
}

.site-popup-jeongeup_mobile .site-popup-control {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 0;
}

.site-popup-jeongeup_mobile .site-popup-control label {
  position: absolute;
  left: 0;
  bottom: -8vw;
  display: inline-flex;
  align-items: center;
  gap: 1.4vw;
  color: #fff;
  font-size: 3.2vw;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: auto;
}

.site-popup-jeongeup_mobile .site-popup-control input {
  width: 3.6vw;
  height: 3.6vw;
  margin: 0;
  accent-color: var(--jeongeup-mobile-red);
}

.site-popup-jeongeup_mobile .site-popup-control button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 8vw;
  height: 8vw;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.247);
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.site-popup-jeongeup_mobile .site-popup-control button::before,
.site-popup-jeongeup_mobile .site-popup-control button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5.5vw;
  height: 0.5vw;
  background: var(--jeongeup-mobile-red);
  transform-origin: center;
}

.site-popup-jeongeup_mobile .site-popup-control button::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-popup-jeongeup_mobile .site-popup-control button::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (min-width: 641px) {
  .site-popup-jeongeup_mobile {
    width: 360px !important;
    height: 526px;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .site-popup-jeongeup_mobile .site-popup-image img {
    width: 360px;
    height: 526px;
  }

  .site-popup-jeongeup_mobile .site-popup-control button {
    width: 36px;
    height: 36px;
  }

  .site-popup-jeongeup_mobile .site-popup-control button::before,
  .site-popup-jeongeup_mobile .site-popup-control button::after {
    width: 24px;
    height: 2px;
  }

  .site-popup-jeongeup_mobile .site-popup-control label {
    bottom: -34px;
    font-size: 13px;
    gap: 6px;
  }

  .site-popup-jeongeup_mobile .site-popup-control input {
    width: 15px;
    height: 15px;
  }
}

/* ── 애니메이션 ── */
@keyframes jeongeupMobileFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes jeongeupMobileFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
