.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%; /* Genişliği tam aç */
  margin: auto;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}



.carousel-item {
  min-width: 100%;
  transition: transform 0.5s ease-in-out;
  display: flex;
  height: 500px!important;
  justify-content: center;
  align-items: center;
}



@media (max-width: 768px) {
  .carousel-item iframe {
    height: 192px; /* Mobilde video yüksekliği %35 olacak */
  }

  .carousel{
    margin-bottom:15px;
    /* width:90%;
    height: 35%; */
  }
}


@@media (min-width: 768px) {

  .carousel-item iframe {
    width: 100%;
    height: 100%; /* Yükseklik 100% olacak */
    object-fit: contain; /* Resim ve video taşmasın, tamamen sığsın */
    aspect-ratio: 16 / 9; /* Video oranı korunsun */
  }
}


.carousel-item img    {
  width: 100%;
  height: auto !important;
  object-fit: contain; /* Taşma olmadan içeri tam oturur */
}

.carousel-item iframe {
  aspect-ratio: 16 / 9; /* Video oranını korur */
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}
