/*--------------------------------------------------------------
# Index
--------------------------------------------------------------*/

/* Spotlight
--------------------------------------------- */

.spotlight {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 0;
  padding-bottom: 4.5rem;
}

.spotlight .slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  transition-property: transform;
}

.spotlight .left-area {
  height: 50vh;
}

.spotlight img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.spotlight .right-area {
  background-color: rgb(var(--color-base-50));
}

@media (min-width: 768px) {
  .spotlight .slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .spotlight .left-area {
    height: calc(100vh - 60px);
  }
  .spotlight .right-area {
    height: calc(100vh - 60px);
  }
}

.spotlight .right-area > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.5rem 20px 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.spotlight .title {
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  font-family: var(--font-sans-condensed);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .spotlight .title {
    font-size: var(--font-4xl);
  }
}

.spotlight .navigation {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight .navigation .icon {
  position: relative;
  z-index: 2;
  margin: 10px;
  padding: 4px;
  border-radius: 4px;
  background-color: rgb(var(--color-base-950));
  color: rgb(var(--color-base-0));
  font-size: var(--font-2xl);
  cursor: pointer;
}

.spotlight .navigation .prev:hover,
.spotlight .navigation .next:hover {
  background-color: rgb(var(--color-base-500));
}

.spotlight .navigation .prev:after {
  content: '\e5c4';
}

.spotlight .navigation .next:after {
  content: '\e5c8';
}

.spotlight .navigation .swiper-button-disabled {
  opacity: 0.25;
  cursor: auto;
  pointer-events: none;
}

/* Animations */

.spotlight .slide .right-area > .container :is(.title, .description) {
  visibility: hidden;
}

.spotlight .slide.swiper-slide-active .right-area > .container .title {
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
  visibility: visible;
}

.spotlight .slide.swiper-slide-active .right-area > .container .description {
  animation: spotlight 400ms;
  animation-delay: 1200ms;
  animation-fill-mode: backwards;
  visibility: visible;
}

@keyframes spotlight {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
