/* 90차 - 공통 완성도 보완: 작품 가독성, 라이트박스, 절차 강조 */
.cert84 .cert84-benefit p,
.cert84 .cert84-overview-copy p,
.cert84 .cert84-section-title p,
.cert84 .cert84-steps p,
.cert84 .cert84-fine,
.cert84 .cert87-gallery-card figcaption {
  color: #5f7266;
}

.cert84 .cert84-overview-copy p,
.cert84 .cert84-benefit p,
.cert84 .cert84-steps p,
.cert84 .cert87-gallery-card figcaption {
  line-height: 1.82;
}

/* 작품 이미지가 과하게 잘리지 않도록 공통 보정 */
.cert84 .cert84-overview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #eef4ee;
}
.cert84 .cert84-overview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(40, 64, 47, 0.07);
}
.cert84 .cert87-gallery-card img {
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}
.cert84 .cert87-gallery-card figcaption {
  font-size: 13px;
  color: #5b6f63;
}

/* 클릭 확대 가능한 작품 이미지 */
.cert84 .cert90-artwork-trigger,
.cert84 .cert87-gallery-card img,
.cert84 .cert84-overview-image img {
  cursor: zoom-in;
}
.cert84 .cert84-overview-image img,
.cert84 .cert87-gallery-card img {
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, opacity 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cert84 .cert84-overview-image:hover img,
  .cert84 .cert87-gallery-card:hover img {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(45, 76, 55, 0.10);
  }
}

/* 검정 절차 시각 강조 */
.cert84 .cert84-steps {
  gap: 18px;
}
.cert84 .cert84-steps li {
  border: 1px solid #e4ebe3;
  border-top: 2px solid #aabda9;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 16px 15px 15px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, border-top-color 240ms ease, background-color 240ms ease;
}
.cert84 .cert84-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #edf4ed;
  color: #55705c;
  font: 800 12px/1 Arial, sans-serif;
  margin-bottom: 12px;
  transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cert84 .cert84-steps li:hover {
    transform: translateY(-3px);
    border-color: #d7e3d8;
    border-top-color: #6b9175;
    background: #fdfefd;
    box-shadow: 0 14px 24px rgba(43, 71, 50, 0.08);
  }
  .cert84 .cert84-steps li:hover .cert84-step-num {
    background: #dfece1;
    color: #365141;
    transform: scale(1.03);
  }
}

/* 팝아트/스탬프 갤러리 작품이 충분히 보이도록 높이 미세 조정 */
.cert84 .cert87-gallery-card img {
  height: 235px;
}
.cert84 .cert88-gallery-single .cert87-gallery-card img {
  height: 245px;
}

/* 라이트박스 */
.cert90-lightbox[hidden] { display: none; }
.cert90-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.cert90-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 20, 0.74);
  backdrop-filter: blur(3px);
}
.cert90-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1120px);
  height: min(90vh, 860px);
  margin: 5vh auto;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
}
.cert90-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}
.cert90-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 120px);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.cert90-lightbox-caption {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  color: #f2f6f1;
  font-size: 13px;
  line-height: 1.7;
}
.cert90-lightbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 700;
}
.cert90-lightbox-text {
  max-width: min(70ch, 88vw);
}
.cert90-lightbox-close,
.cert90-lightbox-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, opacity 220ms ease;
}
.cert90-lightbox-close {
  position: absolute;
  top: -6px;
  right: 2px;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
}
.cert90-lightbox-nav {
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
}
.cert90-lightbox-nav[hidden] {
  visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .cert90-lightbox-close:hover,
  .cert90-lightbox-nav:hover {
    background: rgba(255,255,255,.24);
    transform: translateY(-1px);
  }
}
body.cert90-lightbox-open {
  overflow: hidden;
}

@media (max-width: 990px) {
  .cert84 .cert84-overview-image { padding: 12px; }
  .cert84 .cert87-gallery-card img { height: 220px; }
  .cert84 .cert88-gallery-single .cert87-gallery-card img { height: 228px; }
}

@media (max-width: 650px) {
  .cert84 .cert84-overview-copy p,
  .cert84 .cert84-benefit p,
  .cert84 .cert84-steps p,
  .cert84 .cert87-gallery-card figcaption {
    font-size: 12.4px;
  }
  .cert84 .cert84-overview-image {
    padding: 10px;
  }
  .cert84 .cert87-gallery-card img {
    height: 210px;
    padding: 8px;
  }
  .cert84 .cert88-gallery-single .cert87-gallery-card img {
    height: 210px;
  }
  .cert84 .cert84-steps {
    gap: 13px;
  }
  .cert84 .cert84-steps li {
    padding: 13px 12px 12px;
  }
  .cert84 .cert84-step-num {
    width: 30px;
    height: 30px;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .cert90-lightbox-dialog {
    width: min(96vw, 1120px);
    height: min(92vh, 860px);
    margin: 4vh auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cert90-lightbox-close {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    background: rgba(17,25,20,.46);
  }
  .cert90-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(17,25,20,.42);
  }
  .cert90-lightbox-prev { left: 8px; }
  .cert90-lightbox-next { right: 8px; }
  .cert90-lightbox-image {
    max-height: calc(92vh - 150px);
  }
  .cert90-lightbox-caption {
    font-size: 12px;
    padding: 0 12px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert84 .cert84-overview-image img,
  .cert84 .cert87-gallery-card img,
  .cert84 .cert84-steps li,
  .cert84 .cert84-step-num,
  .cert90-lightbox-close,
  .cert90-lightbox-nav {
    transition: none !important;
  }
}
