/* Keep gallery photos sharp and render the colored glow independently. */
.gallery-collage .gallery-photo {
  isolation: isolate;
  overflow: visible;
  border-radius: 8px;
}

.gallery-collage .gallery-photo picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.gallery-collage .gallery-photo > img,
.gallery-collage .gallery-photo picture > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
  box-shadow: none;
}

.gallery-collage .gallery-photo__blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.55;
  filter: blur(40px) saturate(1.15);
  transform: scale(1.1);
  transform-origin: center;
}

@media (max-width: 768px) {
  .gallery-collage .gallery-photo__blur {
    opacity: 0.5;
    filter: blur(30px) saturate(1.12);
    transform: scale(1.24);
  }
}
