#IG27-carousel {
  height: calc(11rem + 33vw);
  max-height: 40rem;
  border-bottom: 0px solid #000000;
}

#IG27-carousel .carousel-inner {
  height: 100%;
}

#IG27-carousel .carousel-item {
  height: 100%;
}

/* .carousel-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
} */

#IG27-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-logo {
  position: absolute;
  top: 40px;
  left: 1.5vw;
  z-index: 2;
}

.carousel-logo img {
  height: auto;
  width: 18vw;
  max-width: 300px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.99));
}

@media (max-width: 768px) {
  .carousel-logo {
    top: 30px;
    left: 2vw;
  }

  .carousel-logo img {
    width: 16vw;
    max-width: 200px;
    height: auto;
  }
}

.carousel-logos-right {
  position: absolute;
  top: 40px;
  right: 1.5vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.carousel-logos-right a {
  display: block;
  margin-bottom: 30px;
}

.carousel-logos-right img {
  width: 10vw;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.99));
}

@media (max-width: 768px) {
  .carousel-logos-right {
    top: 30px;
    right: 2vw;
  }

  .carousel-logos-right img {
    width: 9vw;
    max-width: 125px;
    height: auto;
  }

  .carousel-logos-right a {
    margin-bottom: 20px;
  }
}

.carousel-item {
  position: relative;
}

#IG27-carousel:not(.no-dim) .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  opacity: 1;
}

#IG27-carousel:not(.initialized):not(.no-dim) .carousel-item.active::before {
  opacity: 0;
  animation: dim 1.5s ease-in forwards;
}

.carousel-item img {
  position: relative;
  z-index: 0;
}

.carousel-caption {
  z-index: 2;
}

@keyframes dim {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.carousel-item .caption-box .conf-name {
  opacity: 1;
  transform: translateY(0);
}

#IG27-carousel:not(.initialized) .carousel-item.active .caption-box .conf-name {
  opacity: 0;
  transform: translateY(50px);
  animation: slideIn 1s ease-out 0.5s forwards;
}

.carousel-item .caption-box .conf-date-location {
  opacity: 1;
  transform: translateY(0);
}

#IG27-carousel:not(.initialized) .carousel-item.active .caption-box .conf-date-location {
  opacity: 0;
  transform: translateY(50px);
  animation: slideIn 1s ease-out 1s forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-logo {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out 0.2s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-logos-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out 0.2s forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}