/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
.hero-section {
  padding-top: 0;
  color: #5a5a5a;
}

/* Carousel base class */
.hero-section .carousel {
  margin-bottom: 60px;
}
/* Since positioning the image, we need to help out the caption */
.hero-section .carousel-caption {
  bottom: 0;
  z-index: 10;
  right: 15%;
  left:0;
  max-width: 350px;
}

.hero-section .carousel-caption p{
  font-size:18px;
  margin-bottom: 1.25rem;
}
.hero-section a.btn.btn-primary {
  background: #224A81;
  color: #fff;
  border-color: transparent;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  line-height: 22px;
  margin-top: 20px;
  font-family: 'Lato-Semibold';
}

.hero-section a.btn.btn-primary:hover,.hero-section a.btn.btn-primary:focus{
  background: #3766A8;
}
/* Declare heights because of positioning of img element */
.hero-section .carousel-item {
  height: 600px;
  width: 100%;
}
.hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}
/* Swiss site mobile banner issue*/
/* FOR DEV SITE */
#post-48 .hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: fill;
  object-position: center;
}
/* FOR UAT SITE */
#post-44 .hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: fill;
  object-position: center;
}
/* FOR PROD SITE */
#post-44 .hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: fill;
  object-position: center;
}

.hero-section .bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

.hero-section #carouselButtons {
    float: right;
    position: relative;
    top: -65px;
    right: 20px;
    z-index: 2;
}
.hero-section #carouselButtons button {
    height: 20px;
    width: 20px;
    border: none;
    background-size: contain;
    background-color: transparent;
}
.hero-section .carousel-control-prev-icon{
    background-image:url(/wp-content/themes/ipsen-main/dist/images/left-arrow.png);
    width: 70px;
    height: 70px;
}
.hero-section .carousel-control-next-icon{
    background-image:url(/wp-content/themes/ipsen-main/dist/images/right-arrow.png);
    width: 70px;
    height: 70px;
}
.hero-section #playButton{
    background-image:url(/wp-content/themes/ipsen-main/dist/images/play-button.png);
}
.hero-section #pauseButton{
    background-image:url(/wp-content/themes/ipsen-main/dist/images/pause-button.png);
}

.hero-section video, .hero-section .video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

/*.hero-section .video { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
  max-width: 100%; 
  } 
  */
  .hero-section .video iframe, .hero-section .video object, .hero-section .video embed { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
}
  
.hero-section .hidden{
    display:none;
}
.hero-section button.carousel-control-prev,
.hero-section button.carousel-control-next,
.hero-section .carousel-indicators {
    display:none;
}
.hero-section .carousel-inner::after {
  background: linear-gradient(0.07deg, #003E7E 0.05%, rgba(0, 0, 0, 0) 60.02%);
  opacity: 10.8;
  width:100%;
  height: 600px;
  position: absolute;
}
.hero-section.no-filter .carousel-inner::after {
  display: none;
}
/* Dev Changes */
#post-112 .hero-section #heroCarousel .carousel-item.active {
  display: flex;
  align-items: center;
  padding-top: 25px;
}
/* UAT Changes */
#post-106 .hero-section #heroCarousel .carousel-item.active {
  display: flex;
  align-items: center;
  padding-top: 25px;
}
/* Prod Changes */
#post-191 .hero-section #heroCarousel .carousel-item.active {
  display: flex;
  align-items: center;
  padding-top: 25px;
}
/* .siteId-3 .hero-section .hero_fullwidth  .carousel-inner::after{
  display:none;
} */
/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .hero-section .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .hero-section .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
    .hero-section .featurette-heading {
    margin-top: 7rem;
  }
}

@media (min-width: 768px) {
  .hero-section .carousel {
  margin-bottom: 70px;
}
  .hero-section .carousel-item {
  height: 650px;
}
.hero-section .carousel-item > img {
  height: 650px;
}
    .hero-section .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
    .hero-section #carouselButtons {
        top: -60px;
        right: 5%;
        z-index: 2;
    }

    .hero-section .hero_fullwidth .hero-banner-bg-image:after{
      background-image: url('https://wave-eu-west-1.s3.eu-west-1.amazonaws.com/websites/ipsen_com_v2/wp-content/uploads/2023/03/15101905/blur-vector.png');
    }

  .hero-section .hero_fullwidth #heroCarousel:after {
    content: " ";
    position: absolute;
    width: 100%;
    top: 0px;
    background-position: 100% 100%;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .hero-section .carousel-inner::after {
    height:650px;
  }
}
@media (min-width: 992px) {
  .hero-section #heroCarousel:after {
    background-position: right;
  }
  .hero-section .carousel-inner::after {
    background: linear-gradient(90.21deg, #003E7E 0.18%, rgba(0, 0, 0, 0) 49.17%);
    height:720px;
  }
}
@media (min-width: 1025px) {

    .hero-section .carousel-item {
  height: 720px;
}
.hero-section .carousel-item > img {
  height: 720px;
}
  .hero-section #heroCarousel:after {
    height: 720px;
  }
  
  .hero-section .carousel-item:first-child .carousel-caption {
    max-width: 350px;
  }
  .hero-section .carousel-caption {
    max-width: 430px;
    top: 300px;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0 15px;
  }
  .hero-section .carousel-caption p{
    font-size:32px
  }
  .hero-section button.carousel-control-prev,
  .hero-section button.carousel-control-next {
      display:block;
  }
  .hero-section .carousel-item > img {
      object-fit: cover;
  }
}
@media (min-width: 1600px) {
  .hero-section .carousel-item:first-child .carousel-caption {
    max-width: 430px;
  }
  .hero-section .carousel-caption {
    max-width: 560px;
  }
  .hero-section a.btn.btn-primary {
    font-size:18px;
    line-height:22px;
    margin-top: 30px;
  }
}


/******* align CSS *********/
.hero-section .carousel-item {
  display:none; 
}
.hero-section .carousel-item.active {
 display:flex;
 align-items: end;
}
.hero-section .carousel-caption {
   position:relative;
}

.hero-section .carousel-item .container.align-right {
   display:flex;
   justify-content: end;
}
.hero-section .carousel-item .container.align-left {
   display:flex;
   justify-content: start;
}
.hero-section .carousel-item .container.align-center {
   display:flex;
   justify-content: center;
}
.hero-section .carousel-caption{
 top: 0px !important;
}

/* CSS for Hero-banner which has ".hero_gridwidth" class for stories page*/
.hero_gridwidth .carousel{margin-bottom:25px;}


.hero_gridwidth .carousel-inner{
  border-radius: 8px;
}


.hero_gridwidth .carousel-inner::after {
    background: linear-gradient(70.21deg, #003E7E 0.18%, rgba(0, 0, 0, 0) 49.17%);
    max-height:500px;
  }

.hero_gridwidth .carousel-item .container.align-left {
    display: flex;
    justify-content: start;
    left: 30px;
}
.hero_gridwidth .carousel-item .container.align-right {
  display:flex;
  justify-content: end;
}
.hero_gridwidth .carousel-item .container.align-center {
  display:flex;
  justify-content: center;
}

.hero_gridwidth .carousel-item:first-child .carousel-caption{
  max-width:500px;
}


/* Large desktop design */
@media only screen and (min-width: 1600px){
  .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:750px;
    }
    .hero_gridwidth .carousel-item{
      max-height:500px;
      width:100%;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 500px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom:120px;
    }
    .hero-section .hero_gridwidth .carousel-caption{
      margin-bottom:50px;
    }
    
}

/* Small desktop design */
@media only screen and (min-width: 1200px) and (max-width: 1599px){
  .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: 60px;
    }
    .hero_gridwidth .carousel-item{
      max-height:500px;
      width:100%;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 500px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom:120px;
    }
    .hero-section .hero_gridwidth .carousel-caption{
      margin-bottom:50px;
    }
}

/* Tablet landscape design */
@media only screen and (min-width: 992px) and (max-width: 1199px){
    .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: 60px;
    }
    .hero_gridwidth .carousel-item{
      max-height:500px;
      width:100%;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 500px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom:100px;
    }
    .hero-section .hero_gridwidth .carousel-caption{
      margin-bottom:50px;
    }
}

/* Tablet portrait design */
@media only screen and (min-width: 768px) and (max-width: 991px){
    .hero-section .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: 90px;
    }
    .hero_gridwidth .carousel-item{
      width:100%;
      max-height:360px;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 360px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth{
    padding:0 12px;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }

    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom:10px;
    }
}

/* Mobile design */
@media only screen and (min-width: 360px) and (max-width: 767px){
    h1{
      font-size: 38px;
      line-height: 42px;
      word-break: break-word;
    }
    .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: -30px;
      margin-left: 0px;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero_gridwidth .carousel-item{
      max-height:360px;
    }
  .hero_gridwidth .carousel-item > img{
    max-height: 360px;
    position: absolute;
  }
  /* swiss mobile banner issue*/
  /* FOR DEV SITE */
  #post-48 .hero_gridwidth .carousel-item{
    max-height: 430px;
  }
  #post-48 .hero_gridwidth .carousel-item > img{
    max-height: 425px;
}
  /* FOR UAT SITE */
  #post-44 .hero_gridwidth .carousel-item{
  max-height: 430px;  
  }
  #post-44 .hero_gridwidth .carousel-item > img{
  max-height: 425px;
  }
  /* FOR PROD SITE */
  #post-44 .hero_gridwidth .carousel-item{
    max-height: 430px;  
    }
  #post-44 .hero_gridwidth .carousel-item > img{
    max-height: 425px;
    }

@media (max-width: 768px){
  .hero-section a.btn.btn-primary{
    border-radius:6px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1280px){
  .hero-section .video iframe, 
  .hero-section .video object, 
  .hero-section .video embed {
    min-height: 100vh;
    min-width: 177.77vh; 
  }
}