/* 87차 - 팝아트지도사 콘텐츠 추가 및 미세 보완 */
.cert84 [id="cert87-popart-process-anchor"],
.cert84 [id="cert87-popart-fees-anchor"],
.cert84 [id="cert87-popart-overview-title"] {
  scroll-margin-top: 80px;
}

/* 팝아트 패널에도 86차 메인 배너 시차 애니메이션을 동일하게 적용 */
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-copy .cert84-eyebrow {
  animation: cert86-hero-text 490ms 70ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-copy h2 {
  animation: cert86-hero-text 550ms 140ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-copy .cert84-lead {
  animation: cert86-hero-text 550ms 200ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-copy .cert84-description {
  animation: cert86-hero-text 550ms 250ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-copy .cert84-featured-tags,
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-copy .cert84-quick-nav {
  animation: cert86-hero-text 520ms 300ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active .cert84-panel:not([hidden]) .cert84-featured-visual img {
  animation: cert86-hero-image 1050ms both cubic-bezier(.2,.8,.2,1);
}

/* 팝아트 이미지 비율/구도 보정 */
.cert84 .cert87-popart-hero-visual img {
  object-position: center 22%;
}

/* 팝아트 추가 갤러리 */
.cert84 .cert87-gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.cert84 .cert87-gallery-card {
  margin: 0;
  border: 1px solid #e1e9de;
  border-radius: 7px;
  background: #fbfcfa;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(42, 69, 48, 0.05);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, border-color 260ms ease;
}
.cert84 .cert87-gallery-card img {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: cover;
}
.cert84 .cert87-gallery-card figcaption {
  padding: 14px 16px 15px;
  color: #5f7265;
  font-size: 12.7px;
  line-height: 1.7;
}
@media (hover: hover) and (pointer: fine) {
  .cert84 .cert87-gallery-card:hover {
    transform: translateY(-4px);
    border-color: #cfddd0;
    box-shadow: 0 14px 26px rgba(45, 76, 55, .10);
  }
}

/* 단일등급 표는 좀 더 안정적으로 중앙 정렬 */
.cert84 #cert84-panel-popart .cert84-table thead th:last-child,
.cert84 #cert84-panel-popart .cert84-table td:last-child {
  text-align: center;
}

@media (min-width:651px) and (max-width:990px) {
  .cert84 .cert87-gallery-card img { height: 220px; }
}

@media (max-width:650px) {
  .cert84 .cert87-gallery-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .cert84 .cert87-gallery-card img {
    height: 220px;
  }
  .cert84 .cert87-gallery-card figcaption {
    font-size: 12.2px;
    padding: 12px 14px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert84 .cert87-gallery-card {
    transition: none !important;
  }
}
