/* Dieťa do dlaní 1.7.21
 * Reduce article galleries and their preview thumbnails by 15%.
 * This intentionally does not shrink article text, standalone photo galleries,
 * the cover image or the fullscreen dialog. */
@media (min-width:701px) {
  .ddd-article .ddd-article-gallery {
    width:85%;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
  }
  .ddd-article .ddd-article-gallery-stage {
    height:clamp(255px,37.4vw,501.5px);
  }
  .ddd-article .ddd-article-gallery-thumb {
    flex-basis:87px;
    height:65px;
  }
  /* Keep legacy Gutenberg/gallery blocks at the same comfortable reading size
     if JavaScript slideshow enhancement is unavailable. */
  .ddd-article .entry-content > :is(.wp-block-gallery,.gallery) {
    width:85%;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
  }
}
@media (max-width:700px) {
  /* Mobile: use full available width for readability; reduce visual height. */
  .ddd-article .ddd-article-gallery {
    width:100%;
    max-width:100%;
  }
  .ddd-article .ddd-article-gallery-stage {
    height:247px;
  }
  .ddd-article .ddd-article-gallery-thumb {
    flex-basis:65px;
    height:51px;
  }
}
