/* WRAPPER */
.carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* Flechas */
.carousel-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: background .3s;
}
.carousel-btn:hover {
  background: black;
}

.prev {
  margin-right: 10px;
}
.next {
  margin-left: 10px;
}

/* CARRUSEL */
.carousel {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform .4s ease;
}

/* Items */
.carousel-item {
  flex: 0 0 calc(25% - 15px);
  margin-right: 15px;
  cursor: pointer;
}
.carousel-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .3s;
}
.carousel-item:hover img {
  transform: scale(1.05);
}

/* Modal */
#video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.modal-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#video-container {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#video-container iframe {
  width: 800px;
  height: 450px;
}
#video-container video {
  width: 25%;
  height: auto;
}
#close-modal {
  position: absolute;
  top: 8%;
  right: 35%;
  font-size: 35px;
  color: white;
  cursor: pointer;
  z-index: 9999;
}
    #close-modal:hover {
        color: #ff8600;
    }

/* RESPONSIVE */
@media (max-width: 900px) {
  .carousel-item {
    flex: 0 0 calc(50% - 10px);
    margin-right: 10px;
  }
  .carousel-item img {
    height: 88px;
  }
}