/*=================
  CAROUSEL COPY
=================*/

.carousel-copy {
  padding: var(--space-7) 0px;
}

.carousel-copy .section-top {
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  column-gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.carousel-copy .section-top h2 {
  grid-column: 1;
  grid-row: 1;
  max-width: 900px;
  margin-bottom: var(--space-3);
}
.carousel-copy .section-top .copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 900px;
}
.image-copy .content .copy p:last-of-type {
  margin-bottom: 0px;
}
.carousel-copy .section-top a {
  grid-row: 1 / 3;
  align-self: end;
}

.carousel-copy-swiper {
  overflow: hidden;
}
.carousel-copy-swiper .swiper-slide {
  height: 500px;
  overflow: hidden;
  position: relative;
}
.carousel-copy-swiper .swiper-slide:hover {
  color: inherit;
}
.carousel-copy-swiper .swiper-slide:hover img {
  scale: 1.05;
}
.carousel-copy-swiper .swiper-slide:hover svg {
  rotate: -45deg;
}
.carousel-copy-swiper .swiper-slide img {
  object-fit: cover;
  transition: .15s;
  position: absolute;
  top: 0px;
  left: 0px;
}
.carousel-copy-swiper .swiper-slide::after {
  content: '';
  display: block;
  width: calc(100% + 1px);
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0, .8));
  position: absolute;
  top: 0px;
  left: 0px;
}
.carousel-copy-swiper .swiper-slide .content {
  display: grid;
  grid-template-columns: 1fr 24px;
  column-gap: var(--space-1);
  width: 100%;
  padding: var(--space-4);
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 2;
}
.carousel-copy-swiper .swiper-slide .content em {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--color-n-white);
}
.carousel-copy-swiper .swiper-slide .content h4 {
  grid-column: 1;
  grid-row: 2;
  color: var(--color-n-white);
}
.carousel-copy-swiper .swiper-slide .content svg {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  transition: .15s;
}

.carousel-copy-swiper .carousel-navigation {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-4);
}
.carousel-copy-swiper .carousel-navigation .swiper-prev,
.carousel-copy-swiper .carousel-navigation .swiper-next {
  padding: 0px 12px 4px;
  border: 2px solid var(--color-n-white);
  transition: .15s;
}
.carousel-copy-swiper .carousel-navigation .swiper-prev:hover,
.carousel-copy-swiper .carousel-navigation .swiper-next:hover {
  background: var(--color-p)
}
.carousel-copy-swiper .carousel-navigation .swiper-prev svg {
  rotate: 180deg;
}
.carousel-copy-swiper .carousel-navigation svg {
  width: 24px;
}

.carousel-copy .mobile-link {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .carousel-copy-swiper .carousel-navigation svg path {
    stroke: var(--color-n-white);
  }
}

@media only screen and (max-width: 992px) {
  .carousel-copy {
    padding: var(--space-6) 0px;
  }
  .carousel-copy .section-top {
    grid-template-columns: 1fr;
    margin-bottom: var(--space-4);
  }
  .carousel-copy .section-top a {
    display: none;
  }
  .carousel-copy-swiper .swiper-slide {
    height: 450px;
  }
  .carousel-copy .mobile-link {
    display: block;
    margin-top: var(--space-5);
  }
}

@media only screen and (max-width: 768px) {
  .carousel-copy-swiper .swiper-slide .content svg path {
    stroke-width: 1px;
  }
  .carousel-copy-swiper .carousel-navigation .swiper-prev,
  .carousel-copy-swiper .carousel-navigation .swiper-next {
    padding: 3px 10px 5px;
    border: 1px solid var(--color-p);
  }
  .carousel-copy-swiper .carousel-navigation .swiper-prev svg path,
  .carousel-copy-swiper .carousel-navigation .swiper-next svg path {
    stroke-width: 1px;
  }
}
