/* __ATHAR_HOME_MEDIA_RESTORE_V1__
   Restore exhibition slider posters + program/activity photos.
   Do not hide real photos. Keep home-cards-layout 16/10 banners. */

#programs article:has(img[src*="/images/news/"]) > .aspect-square,
#programs article:has(img[src*="/images/programs/"]) > .aspect-square,
#programs article:has(img[src*="/images/slider/"]) > .aspect-square,
#programs article:has(img[src*="/images/mosque"]) > .aspect-square,
#programs article:has(img[src*="/images/books-sira"]) > .aspect-square,
#programs article:has(img[src*="/images/library"]) > .aspect-square,
#events article:has(img[src*="/images/"]) > .aspect-square {
  display: block !important;
}

#programs article > .aspect-square,
#events article > .aspect-square {
  background: #efe8d8 !important;
}

#programs article > .aspect-square > img,
#events article > .aspect-square > img {
  object-fit: cover !important;
  object-position: center center !important;
  font-size: 0 !important;
  color: transparent !important;
}

/* Giving cards: photographic covers, not a cropped logo square. */
#giving article .aspect-square {
  aspect-ratio: 16 / 10 !important;
  height: 11rem !important;
  max-height: 11rem !important;
  background: #efe8d8 !important;
}

#giving article .aspect-square > img {
  object-fit: cover !important;
  object-position: center 40% !important;
}

#slider video,
#slider img,
section#slider video,
section#slider img {
  opacity: 1;
}
