
/* Case gallery sizing correction */
body.single-ab_before_after main#main-content article .wp-block-gallery.has-nested-images > figure.wp-block-image {
  width: 100% !important;
  max-width: none !important;
  flex-basis: auto !important;
}
body.single-ab_before_after main#main-content article .wp-block-gallery.has-nested-images > figure.wp-block-image img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
}
/*
Theme Name: Anyangbaro Custom
Theme URI: https://yonseibaroanyang.com/
Author: Anyangbaro
Description: 연세바로치과 안양 기존 디자인과 URL을 보존한 전용 WordPress 테마.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: anyangbaro
*/

html { scroll-behavior: smooth; }
body { margin: 0; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }


/* Clinical case detail layout */
body.single-ab_before_after main#main-content {
  width: min(100% - 40px, 920px);
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 0 140px !important;
}
body.single-ab_before_after main#main-content > h1 { display: none; }
body.single-ab_before_after main#main-content article > h2:first-child {
  margin: 0 0 56px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}
body.single-ab_before_after main#main-content article p {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.9;
  color: #343434;
  word-break: keep-all;
}
body.single-ab_before_after main#main-content article h2:not(:first-child) {
  margin: 88px 0 28px;
  padding-top: 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.035em;
}
body.single-ab_before_after main#main-content article figure {
  margin: 44px 0 60px;
}
body.single-ab_before_after main#main-content article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
body.single-ab_before_after main#main-content article .wp-block-gallery {
  display: grid !important;
  gap: 14px;
  align-items: stretch;
}
body.single-ab_before_after main#main-content article .wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.single-ab_before_after main#main-content article .wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.single-ab_before_after main#main-content article .wp-block-gallery > figure {
  margin: 0;
}
body.single-ab_before_after main#main-content article .wp-block-gallery img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
@media (max-width: 720px) {
  body.single-ab_before_after main#main-content {
    width: min(100% - 32px, 920px);
    padding: 80px 0 100px !important;
  }
  body.single-ab_before_after main#main-content article p { font-size: 16px; line-height: 1.85; }
  body.single-ab_before_after main#main-content article h2:not(:first-child) { margin-top: 64px; }
  body.single-ab_before_after main#main-content article .wp-block-gallery.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.single-ab_before_after main#main-content article .wp-block-gallery img { min-height: 180px; }
}
