.article-body { font-size: 1.05rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-body p, .article-body ul, .article-body ol, .article-body figure { margin: 0 0 1.5rem; }
.article-body h2 { font-size: 1.65rem; font-weight: 800; color: #111827; margin: 2rem 0 1rem; }
.article-body h3 { font-size: 1.3rem; font-weight: 700; color: #111827; margin: 1.5rem 0 .75rem; }
.article-body ul { padding-left: 1.5rem; list-style: disc; }
.article-body ol { padding-left: 1.5rem; list-style: decimal; }
.article-body img { max-width: 100%; height: auto; border-radius: .9rem; }
.article-body figure.image { margin: 1.5rem auto; }
.article-body .image-style-align-left { float: left; margin: 0 1.5rem 1rem 0; max-width: 48%; }
.article-body .image-style-align-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 48%; }
.article-body figcaption { font-size: .85rem; text-align: center; color: #64748b; }
.article-body::after { content: ''; display: block; clear: both; }
.article-gallery { margin-top: 3.5rem; padding-top: 36px; border-top: 1px solid var(--adv-line); scroll-margin-top: 7rem; }
.article-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 26px; }
.article-gallery-title { display: flex; align-items: center; gap: 16px; }
.article-gallery-title h2 { color: var(--adv-blue); font-size: 1.65rem; margin: 0; }
.article-gallery-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--adv-night-gradient); border-radius: 8px; color: #fff; }
.article-gallery svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.article-gallery-heading > span { border: 1px solid var(--adv-line); padding: 7px 12px; border-radius: 5px; color: var(--adv-muted); font-size: .78rem; white-space: nowrap; }
.article-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 16px; }
.article-gallery-grid > figure { margin: 0; position: relative; min-width: 0; box-shadow: 0 7px 18px #101e421a; border-radius: 8px; }
.article-gallery-grid > figure:first-child { grid-column: span 2; grid-row: span 2; }
.article-gallery-grid[data-image-count="1"] > figure { grid-column: 1 / -1; }
.article-gallery-grid:is([data-image-count="2"],[data-image-count="4"]) > figure { grid-column: span 2; grid-row: span 1; }
.article-gallery-grid[data-image-count="2"] { grid-auto-rows: 300px; }
.article-gallery-grid[data-image-count="3"] > figure:not(:first-child) { grid-column: span 2; }
.article-gallery-grid a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--adv-tint); border-radius: 8px; }
.article-gallery-grid img { height: 100%; width: 100%; object-fit: cover; transition: transform .55s ease; }
.article-gallery-grid a:hover img { transform: scale(1.045); }
.article-gallery-zoom { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; color: white; background: #101e42a8; border: 1px solid #ffffff55; border-radius: 50%; }
.article-gallery-zoom svg { width: 18px; height: 18px; }
.article-gallery-number { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 4px; color: #fff; background: #101e42b8; font-size: .72rem; font-weight: 650; }
.article-gallery-grid figcaption { position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none; border-radius: 0 0 8px 8px; padding: 32px 18px 16px; color: #fff; background: linear-gradient(transparent,#070e21eb); font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.article-lightbox { padding: 0; border: 1px solid #ffffff25; border-radius: 12px; color: white; background: var(--adv-night-gradient); width: min(1100px, 94vw); max-width: 94vw; max-height: 94dvh; margin: auto; box-shadow: 0 25px 80px #0008; }
.article-lightbox::backdrop { background: #020617e8; }
.article-lightbox-inner { padding: 1rem; }
.article-lightbox-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.article-lightbox-top > span:first-child { font-weight: 700; flex: 1; }
.article-lightbox-top button, .article-lightbox-stage button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 50%; background: #334155; color: #fff; font-size: 1.8rem; }
.article-lightbox-stage { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: .75rem; }
.article-lightbox-stage img { min-width: 0; width: 100%; height: auto; max-height: min(66dvh, 680px); object-fit: contain; }
.article-lightbox-stage button:disabled { opacity: .3; }
.article-lightbox [data-gallery-caption] { margin: 1rem 3.5rem 0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 600px) {
    .article-gallery-heading { align-items: flex-start; }
    .article-gallery-title { gap: 10px; }
    .article-gallery-title h2 { font-size: 1.25rem; }
    .article-gallery-icon { width: 40px; height: 40px; }
    .article-gallery-grid, .article-gallery-grid[data-image-count="2"] { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 155px; }
    .article-gallery-grid > figure, .article-gallery-grid:is([data-image-count="2"],[data-image-count="3"],[data-image-count="4"]) > figure:not(:first-child) { grid-column: span 1; grid-row: span 1; }
    .article-gallery-grid > figure:first-child, .article-gallery-grid:is([data-image-count="2"],[data-image-count="4"]) > figure:first-child { grid-column: 1 / -1; grid-row: span 2; }
    .article-body .image-style-align-left, .article-body .image-style-align-right { float: none; max-width: 100%; margin: 1rem 0; }
    .article-lightbox-inner { padding: .75rem; }
    .article-lightbox-stage { position: relative; display: block; }
    .article-lightbox-stage img { max-height: 62dvh; }
    .article-lightbox-stage button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: #111827cc; }
    .article-lightbox-stage [data-gallery-prev] { left: .25rem; }
    .article-lightbox-stage [data-gallery-next] { right: .25rem; }
    .article-lightbox [data-gallery-caption] { margin: 1rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { .article-gallery-grid img { transition: none; } }
