.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: beige;
}
.carousel {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
  background-color: beige;
}
.carousel img,
.carousel iframe {
  flex: 0 0 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}
.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background-color: rgb(223, 170, 187, 0.5);
  border: none;
  cursor: pointer;
  border-radius: 100%;
  transition: background-color 0.1s;
}
.prev-button:hover,
.next-button:hover {
  transition: background-color 0.2s;
  background-color: rgb(223, 170, 187, 0.8);
}
.prev-button {
  left: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}
.next-button {
  right: 10px;
  opacity: 0;
  transition: opacity 0.3s;

}

.carousel:hover > .prev-button, .carousel:hover > .next-button{
  opacity: 1; 
  transition: opacity 0.3s;
}

  