/* Ensure correct text alignment in carousel caption */
#myCarousel .carousel-caption
{
  top: 0;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 0 14px;
  bottom: 46%;
}

#myCarousel .carousel-inner
{
  top: 0 !important;
}

#myCarousel .item img
{
  width: 100%;
  height: 756px;
  border-radius: 0;
  object-fit: cover;
  object-position: bottom;
}

.carousel-caption__content
{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  height: 100%;
  padding-bottom: 0;
  align-items: flex-end;
  /* Align content to the right */
}

.carousel-caption__content h2,
.carousel-caption__content h4
{
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 700;
  text-align: right;
  /* Always align text to the right */
  text-shadow: none;
  transition: all 0.35s ease;
  letter-spacing: 1.213px;
  text-transform: uppercase;
}

.carousel-caption__content h4
{
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

img.img-regular-view
{
  display: block;
}

img.img-mobile-view
{
  display: none;
}

.flightItem_titleBtn.show_total_note
{
  height: 50px;
}

body[dir="rtl"] .flightItem_titleBtn.show_total_note:after
{
  font-size: 12px;
  display: block;
  font-weight: 300;
  content: "מחיר לכל הנוסעים";
}

a.flightItem_stopToggle[aria-expanded="true"] .flightItem_titleBtn.show_total_note:after
{
  visibility: hidden;
}

.newflightpage .flightItem_graph
{
  width: 50%;
}

.newflightpage .flightItem_titleLeft
{
  flex-wrap: nowrap;
}

/* Ensure text aligns correctly on all mobile screens */
@media screen and (max-width: 767px)
{
  img.img-regular-view
  {
    display: none;
  }

  img.img-mobile-view
  {
    display: block;
  }

  .carousel-caption__content
  {
    align-items: flex-end;
    /* Ensure content stays aligned to the right */
    text-align: right;
    /* Keep text aligned to the right */
  }

  #myCarousel .item img
  {
    height: 500px;
  }
}

@media screen and (max-width: 550px)
{
  .newflightpage .altVersionItem .flightItem_graph
  {
    width: unset;
  }
}