/**
 * @file
 * Visual styles for Newsplus's node images.
 */

/* Centre images in the article gallery (Splide module field formatter).
   Portrait images are narrower than the slide and otherwise sit hard left.
   Blazy sets `.blazy .media--blazy img.media__element { margin: 0 }`, so this
   needs one more class to win on specificity rather than !important. */
.splide--field .splide__slide .media--blazy img.media__element {
  margin-left: auto;
  margin-right: auto;
}

/* The Splide module renders the gallery caption into its "title" slot, i.e. an
   <h2 class="slide__title"> at 30px. A caption sentence set as a heading reads
   as oversized, so bring it back to the theme's caption convention (see
   .image-caption p below). Scoped to .splide--field so view-driven slideshows,
   where slide__title really is a headline, are untouched. */
.splide--field .slide__caption .slide__title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #7d7d7d;
  margin: 10px 0 0;
}

.images-container {
  overflow: hidden;
}
.image-preview {
  margin-bottom: 20px;
  overflow: hidden;
}
.image-caption p {
  font-size: 13px;
  color: #7d7d7d;
  padding: 10px 0 0 0;
}
.image-listing-items {
  margin-bottom: 20px;
}
.image-listing-item {
  float: left;
  padding: 0;
  margin: 0 2.66% 2.66% 0;
  max-width: 17.866666666%;
  position: relative;
}
.image-listing-items .image-listing-item:nth-child(5n) {
  margin-right: 0px;
}
@media (max-width: 767px) {
  .image-listing-item {
    margin: 0 2.77% 2.77% 0;
    max-width: 31.481481481481%;
  }
  .image-listing-items .image-listing-item:nth-child(5n) {
    margin-right: 2.77%;
  }
  .image-listing-items .image-listing-item:nth-child(3n) {
    margin-right: 0;
  }
}
