@property --luz {
  syntax: "<angle>";
  inherits: false;
  initial-value: 33deg;
}
.parent-gallery {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(
      auto-fit,
      minmax(200px, 1fr)
  );
  grid-auto-rows: 200px;
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}
.box picture {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: block;
}
.box img {

  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.box {
  position: relative;
  width: 100%;
  isolation: isolate;
  background: #fee;
 
}

.luz {
  position: absolute;
  inset: -45px;
  border-radius: inherit;
  mask-size: cover;
  mix-blend-mode: plus-lighter;
}

.luz:before,
.luz:after {
  content: '';
  opacity: 0;
  position: absolute;
  mix-blend-mode: color;
  inset: 45px;
  border-radius: inherit;
}

.luz:before {
  box-shadow: 0 0 3px 2px #fff,
      0 0 7px 4px #34f1ff,
      0 0 13px 4px #1e62d0,
      0 0 25px 5px #1e62d0;
  z-index: -1;
}
.luz:after {
  box-shadow: inset 0 0 0 1px #0195ff,
      inset 0 0 2px 1px #fff,
      inset 0 0 5px 2px #1e62d0;
  z-index: 2;
}

.box:hover .luz:before,
.box:hover .luz:after {
  animation: iluminar 1s cubic-bezier(0.330, 0.425, 0.595, 0.860) forwards;
}

.box:hover img {
  transform: scale(1.1);
}

@keyframes iluminar {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}
