.life-gallery {
  padding: 120px 48px 234px;
  background: #fff;
}

.life-gallery-frame {
  position: relative;
  max-width: 1344px;
  height: 475px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.life-gallery-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.life-gallery-layer--current {
  z-index: 1;
}

.life-gallery-layer--next {
  opacity: 0;
}

@media (min-width: 768px) and (max-width: 1319px) {
  .life-gallery {
    padding: 80px 32px 160px;
  }

  .life-gallery-frame {
    height: clamp(300px, 32.986111vw, 475px);
  }
}

@media (max-width: 767px) {
  .life-gallery {
    padding: 0;
  }

  .life-gallery-frame {
    height: 300px;
    border-radius: 0;
  }
}
