/**
 * Success Case Single Page Styles
 * 성공사례 상세 페이지 가독성 스타일
 */

.success-case-single .content {
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.success-case-single .content [style*="font-size"] {
  font-size: inherit !important;
}

.success-case-single .content p {
  margin-top: 0;
  margin-bottom: 1em;
}

.success-case-single .content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.success-case-single .content h2,
.success-case-single .content h3,
.success-case-single .content h4 {
  scroll-margin-top: 120px;
}

.success-case-single .content .asc-section-title {
  margin: 1.6em 0 0.8em;
  padding: 0.55em 0.8em;
  border-left: 4px solid #BD1A03;
  background: rgba(189, 26, 3, 0.06);
  border-radius: 10px;
  font-weight: 700;
  font-size: 20px;
}

.success-case-single .content .wp-block-image {
  margin: 1.2em 0;
}

.success-case-single .content .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.success-case-single .content .wp-block-image.asc-hero-image,
.success-case-single .content > .wp-block-image:first-child {
  max-width: 520px !important;
  margin-left: auto;
  margin-right: auto;
}

.success-case-single .content .wp-block-image.asc-hero-image img,
.success-case-single .content > .wp-block-image:first-child img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .success-case-single {
    max-width: 72ch !important;
  }
}


/**
 * Lightbox Styles
 */
.asc-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.asc-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.asc-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.asc-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.asc-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .asc-lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .asc-lightbox-img {
    max-width: 95vw;
    max-height: 85vh;
  }
}
