.comic-figure {
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 32px auto !important;
  background: transparent !important;
  overflow: visible !important;
  transform: none !important;
}
.comic-figure.comic-portrait { max-width: 600px; }

.comic-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(23, 41, 20, 0.08);
}
.comic-figure .comic-open picture {
  display: block;
  width: 100%;
}
.comic-figure .comic-open img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  border-radius: 14px !important;
}

.comic-figure figcaption {
  padding: 14px 8px !important;
  background: transparent !important;
  text-align: center;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #4f614a;
}
.comic-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #27481f;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.fp-pair:has(>.comic-figure) { grid-template-columns: 1fr !important; }
.fp-pair:has(>.comic-figure) > .fp-copy { order: -1; width: 100%; max-width: 900px; margin: auto; }
.stage-media-pair:has(>.comic-figure) { grid-template-columns: 1fr !important; }
.stage-media-pair:has(>.comic-figure) > .shot { margin: auto; }
.comic-note-section { padding: 10px 0 30px; }

/* 만화 모달 전체/크게 보기 */
.comic-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 60px 20px 24px;
  border: 0;
  background: rgba(15, 26, 18, 0.94);
  color: white;
  z-index: 2147483000;
  overflow: auto;
  box-sizing: border-box;
}
.comic-dialog::backdrop { background: #0f1a12; }
.comic-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.comic-dialog img {
  max-width: min(1000px, 94vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.comic-dialog .comic-caption {
  max-width: 850px;
  line-height: 1.6;
  text-align: center;
  padding: 14px 10px;
  font-size: 15px;
  color: #d8e5d2;
}
.comic-close {
  position: fixed;
  top: 14px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #ffffff;
  color: #1e331c;
  border-radius: 25px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2147483010;
}
.comic-full-size {
  position: fixed;
  top: 14px;
  left: 20px;
  background: #ffffff;
  color: #1e331c;
  border-radius: 25px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 2147483010;
}
.comic-dialog.is-actual img {
  width: auto;
  max-width: none;
  max-height: none;
}

/* 모바일 전용 반응형 스타일 */
@media (max-width: 600px) {
  .comic-figure {
    margin: 20px auto !important;
    max-width: 390px !important;
  }
  .comic-figure figcaption {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }
  .comic-dialog {
    padding: 55px 12px 20px;
  }
  .comic-dialog img {
    max-width: 94vw;
    max-height: 76vh;
  }
  .comic-open {
    border-radius: 10px;
  }
  .comic-zoom {
    font-size: 11px;
    padding: 4px 9px;
    bottom: 8px;
    right: 8px;
  }
}
