/* Editorial image collections keep complete images visible at every width. */
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; clear: both; margin: 22px 0 28px; align-items: start; }
.article-gallery-item { min-width: 0; }
.article-gallery .article-photo { margin: 0; }
.article-gallery .article-photo-image { background: var(--panel); }
.article-gallery .article-photo-image img { width: 100%; height: auto; object-fit: contain; }
.article-gallery [data-medium="sketch"] .article-photo-image { background: #fff; }
.article-gallery .article-gallery-title { font-size: 16px; line-height: 1.4; margin: 0 0 4px; }
.article-gallery .article-gallery-medium { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.article-gallery figcaption > p:last-child { margin-bottom: 0; }
.article-gallery-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; clear: both; margin-top: 22px; }
.article-gallery-controls[hidden] { display: none; }
.article-gallery-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.article-gallery-controls select, .article-gallery-controls button { min-height: 40px; padding: 7px 10px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.article-gallery-controls button:disabled { opacity: .5; }
.article-gallery-controls :is(select, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.article-gallery-pagination { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article-gallery-pagination p { margin: 0; min-width: 0; font-size: 13px; text-align: center; }
.article-gallery-item[hidden] { display: none; }
@media (max-width: 620px) {
  .article-gallery { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media print {
  .article-gallery-controls { display: none; }
  .article-gallery { display: block; }
  .article-gallery-item[hidden] { display: block !important; }
  .article-gallery-item { margin-bottom: 18px; break-inside: avoid; }
}
