/* 메인 히어로 우측 레이어 팝업 */
.hero-layout3 {
  position: relative;
  overflow: visible;
}

.atrinu-hero-popups {
  --atrinu-hero-popup-ar: 0.727574751; /* 438 / 602 */
  --atrinu-hero-popup-max-w: clamp(17.5rem, 30vw, 26rem);
  --atrinu-hero-popup-max-h: min(56vh, 32rem);
  --atrinu-hero-popup-stack-x: clamp(4rem, 9vw, 6.5rem);
  --atrinu-hero-popup-stack-y: clamp(5rem, 10vw, 7.5rem);
  position: absolute;
  right: clamp(3.25rem, 7vw, 5.5rem);
  left: auto;
  top: clamp(5.25rem, 11vh, 8.5rem);
  z-index: 30;
  width: min(
    var(--atrinu-hero-popup-max-w),
    calc(var(--atrinu-hero-popup-max-h) * var(--atrinu-hero-popup-ar))
  );
  pointer-events: none;
}

.atrinu-hero-popup {
  position: absolute;
  width: 100%;
  background: transparent;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.atrinu-hero-popup.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
}

.atrinu-hero-popup--back {
  right: 0;
  left: auto;
  top: 0;
  z-index: 1;
}

.atrinu-hero-popup--mid {
  right: calc(var(--atrinu-hero-popup-stack-x) * 0.5);
  left: auto;
  top: calc(var(--atrinu-hero-popup-stack-y) * 0.5);
  z-index: 2;
}

.atrinu-hero-popup--front {
  right: var(--atrinu-hero-popup-stack-x);
  left: auto;
  top: var(--atrinu-hero-popup-stack-y);
  z-index: 3;
}

.atrinu-hero-popup__link {
  display: block;
  line-height: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.atrinu-hero-popup__link img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.atrinu-hero-popup__link .atrinu-hero-popup__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
}

.atrinu-hero-popup__card-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.35) 0%, rgba(12, 10, 9, 0.15) 38%, rgba(12, 10, 9, 0.72) 72%, rgba(12, 10, 9, 0.88) 100%);
  pointer-events: none;
}

.atrinu-hero-popup__card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8.5% 7% 7%;
  box-sizing: border-box;
  text-align: center;
}

.atrinu-hero-popup__card-brand {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.55rem, 2.1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.atrinu-hero-popup__card-brand span {
  margin: 0 0.35em;
  opacity: 0.7;
}

.atrinu-hero-popup__card-title {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.05rem, 4.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 0 1px #1a3a5c,
    1px 1px 0 #1a3a5c,
    -1px 1px 0 #1a3a5c,
    1px -1px 0 #1a3a5c,
    -1px -1px 0 #1a3a5c,
    0 2px 10px rgba(0, 0, 0, 0.45);
  word-break: keep-all;
}

.atrinu-hero-popup__card-panel {
  margin: 0;
  padding: 0.7rem 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(236, 236, 236, 0.88);
  color: #222;
}

.atrinu-hero-popup__card-kicker {
  margin: 0 0 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.62rem, 2.2vw, 0.78rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #333;
}

.atrinu-hero-popup__card-copy {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.68rem, 2.35vw, 0.82rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.atrinu-hero-popup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  background: #333;
}

.atrinu-hero-popup__bar button {
  border: 0;
  padding: 0.25rem 0.2rem;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.75rem, 1.9vw, 0.875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.atrinu-hero-popup__bar button:hover,
.atrinu-hero-popup__bar button:focus-visible {
  color: #f0f0f0;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* IRO 풀스크린 히어로: 퀵메뉴·헤더와 겹치지 않게 */
body.atrinu-home-iro .atrinu-hero-popups {
  top: clamp(5.75rem, 13vh, 9.5rem);
  right: clamp(4.5rem, 9vw, 7rem);
}

@media (max-width: 991.98px) {
  .atrinu-hero-popups {
    --atrinu-hero-popup-max-w: clamp(15.5rem, 46vw, 20.5rem);
    --atrinu-hero-popup-max-h: min(48vh, 24rem);
    --atrinu-hero-popup-stack-x: clamp(3rem, 12vw, 4.75rem);
    --atrinu-hero-popup-stack-y: clamp(3.75rem, 13vw, 5.75rem);
    right: clamp(3.75rem, 10vw, 5rem);
    top: clamp(5rem, 10vh, 7rem);
  }

  body.atrinu-home-iro .atrinu-hero-popups {
    right: clamp(4rem, 11vw, 5.5rem);
  }
}

@media (max-width: 575.98px) {
  .atrinu-hero-popups {
    --atrinu-hero-popup-max-w: clamp(14rem, 62vw, 19rem);
    --atrinu-hero-popup-max-h: min(48vh, 21rem);
    --atrinu-hero-popup-stack-x: clamp(2.25rem, 11vw, 3.5rem);
    --atrinu-hero-popup-stack-y: clamp(3rem, 12vw, 4.5rem);
    right: clamp(3.25rem, 9vw, 4.25rem);
    top: clamp(4.5rem, 9vh, 6rem);
  }
}

@media (min-width: 1400px) {
  .atrinu-hero-popups {
    right: clamp(5rem, 8vw, 8rem);
  }

  body.atrinu-home-iro .atrinu-hero-popups {
    right: clamp(6rem, 9vw, 9.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atrinu-hero-popup {
    transition: none;
  }
}
