/* Hide auto-generated html thumbnail images on article pages only */
body.item.resource.show .media-render.file {
    display: none;
}

/*
wraps text around images; currently commented out
.image-wrapper img {
    float: left;
    margin: 0 1em 1em 0;
}
*/

/* kaur voices 4438 photo gallery */
.gallery-3x28 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-3x28 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.center-text {
  text-align: center;
}

/*mai bhago retreat 5405 gallery*/
.gallery-5x5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-5x5 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

img.size-small {
  height: 350px;
  width: auto;
  object-fit: cover;
}

.quote-block {
  text-align: center;
  margin: 40px 0;
}

.quote-block h4 {
  margin: 5px 0; /* fixes uneven spacing */
}

/*rotating gallery for 6366*/
.rotating-gallery {
  position: relative;
  width: 700px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
}

.rotating-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: galleryFade 30s infinite;
}

/* Stagger timing */
.rotating-gallery img:nth-child(1) { animation-delay: 0s; }
.rotating-gallery img:nth-child(2) { animation-delay: 5s; }
.rotating-gallery img:nth-child(3) { animation-delay: 10s; }
.rotating-gallery img:nth-child(4) { animation-delay: 15s; }
.rotating-gallery img:nth-child(5) { animation-delay: 20s; }
.rotating-gallery img:nth-child(6) { animation-delay: 25s; }

@keyframes galleryFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  4%,
  20% {
    opacity: 1;
    transform: scale(1);
  }
  24%,
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/*videos 8782*/
.video-wrapper {
  width: 200px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 200px;
  height: auto;
  display: block;
}

/*video 8871*/
.video--farmers-protest {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video--farmers-protest video {
  width: 100%;
  height: auto;
  display: block;
}
