#ap27-carousel {
  height: clamp(14.9625rem, 42.75vw, 59.85em);
  max-height: clamp(14.9625rem, 42.75vw, 59.85em);
  border-bottom: 1px solid #ffffff;
  position: relative;
  --ap27-curve-height: max(41.4px, 7.02vw);
  --ap27-curve-center-height: max(12.6px, 2.025vw);
  --ap27-curve-edge-lift: calc(var(--ap27-curve-height) - var(--ap27-curve-center-height));
  --ap27-curve-ui-gap: clamp(7.2px, 0.9vw, 14.4px);
}

#ap27-carousel.compact {
  height: calc(9rem + 26vw);
  max-height: 32rem;
}

#ap27-carousel .carousel-inner {
  height: 100%;
}

#ap27-carousel .carousel-item {
  height: 100%;
}

#ap27-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-logo {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 2;
}

.carousel-logo img {
  max-height: 230px;
  width: 14vw;
  max-width: 200px;
}

@media (max-width: 992px) {
  .carousel-logo {
    top: 75px;
    left: 1vw;
    width: clamp(58px, 12vw, 105px);
  }

  .carousel-logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

.carousel-logos-right {
  position: absolute;
  bottom: calc(var(--ap27-curve-center-height) + var(--ap27-curve-ui-gap));
  right: 0vw;
  z-index: 12;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.carousel-logos-right a {
  display: block;
  margin-right: 40px;
}

.carousel-logos-right a:nth-child(1) {
  transform: translateY(calc(var(--ap27-curve-edge-lift) * -0.15));
}

.carousel-logos-right a:nth-child(2) {
  transform: translateY(calc(var(--ap27-curve-edge-lift) * -0.55));
}

.carousel-logos-right a:nth-child(3) {
  transform: translateY(calc(var(--ap27-curve-edge-lift) * -0.85));
}

.carousel-logos-right img {
  height: 2.75vw;
  width: auto;
  max-height: 55px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 1));
}

@media (max-width: 992px) {
  .carousel-logos-right {
    top: 60px;
    right: 2vw;
  }

  .carousel-logos-right img {
    width: 15vw;
    max-width: 100px;
    height: auto;
  }

  .carousel-logos-right a {
    margin-bottom: 10px;
  }
}

@media (max-width: 992px) {
  .carousel-logos-right {
    display: none;
  }
}

@media (max-width: 992px) {

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

#carousel-1 {
  background-image: url('../images/carousel/carousel_1.1.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
  opacity: 1;
  transition: opacity 2s ease-in;
}

#carousel-1>* {
  position: relative;
  z-index: 2;
}

#ap27-carousel .carousel-slide-caption {
  position: absolute;
  left: 50%;
  bottom: 7.5%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: clamp(10px, 0.95vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

@media (max-width: 768px) {
  #ap27-carousel .carousel-slide-caption {
    display: none;
  }

  #ap27-carousel .carousel-indicators {
    display: none;
  }
}

#ap27-carousel .carousel-indicators {
  z-index: 10;
  pointer-events: auto;
  display: none;
}

#ap27-carousel .carousel-indicators button {
  pointer-events: auto;
  display: none;
}


#carousel-2 {
  background-image: url('../images/carousel/carousel_2.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-2>* {
  position: relative;
  z-index: 2;
}

#carousel-3 {
  background-image: url('../images/carousel/carousel_3.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-3>* {
  position: relative;
  z-index: 2;
}

#carousel-4 {
  background-image: url('../images/carousel/carousel_4.1.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-4>* {
  position: relative;
  z-index: 2;
}

#carousel-5 {
  background-image: url('../images/carousel/carousel_5.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-5>* {
  position: relative;
  z-index: 2;
}

#carousel-6 {
  background-image: url('../images/carousel/carousel_6.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-6::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-6>* {
  position: relative;
  z-index: 2;
}

#carousel-7 {
  background-image: url('../images/carousel/carousel_7.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-7::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-7>* {
  position: relative;
  z-index: 2;
}

#carousel-8 {
  background-image: url('../images/carousel/carousel_8.jpg');
  background-size: cover;
  background-position: 50% 70%;
  position: relative;
}

#carousel-8::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 1;
}

#carousel-8>* {
  position: relative;
  z-index: 2;
}

@keyframes dim {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.carousel-caption .caption-box .conf-name {
  opacity: 0;
  transform: translateY(50px);
  animation: slideOut 1s ease-out 1s forwards;
}

.carousel-caption .caption-box .conf-date-location {
  opacity: 0;
  transform: translateY(50px);
  animation: slideOut 1s ease-out 0.7s forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ap27-carousel .carousel-logo {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out 0.3s forwards;
  will-change: transform, opacity;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#ap27-carousel .carousel-logos-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideIn 1s ease-out 0.3s forwards;
  will-change: transform, opacity;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-item.dim-animate::before {
  opacity: 0 !important;
}

#ap27-carousel .curve {
  position: absolute;
  bottom: -10px;
  width: 100%;
  left: 0;
  z-index: 9;
  pointer-events: none;
}

#ap27-carousel .curve img {
  display: block;
  width: 100%;
  height: auto;
}

#ap27-carousel .carousel-indicators {
  bottom: calc(var(--ap27-curve-center-height) + var(--ap27-curve-ui-gap));
  z-index: 12;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #ap27-carousel .carousel-indicators {
    display: none;
  }
}
