.life-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.life-slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.life-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.life-slide img {
  width: 539px;
  height: 539px;
  display: block;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .life-slide img {
    width: 372px;
    height: 372px;
    display: block;
    border-radius: 12px;
  }
}

/* Prev/Next buttons */
.life-slider button.life-prev,
.life-slider button.life-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.life-slider button.life-prev { left: 10px; }
.life-slider button.life-next { right: 10px; }

/* Dots */
.life-slider .life-dots {
  text-align: center;
  margin-top: 8px;
}
.life-slider .life-dots span {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  display: inline-block;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}
.life-slider .life-dots span.life-active {
  background: #333;
}
