.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 500px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csss-content {
  max-width: 32%;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.csss-content.left {
  align-items: flex-start;
  text-align: left;
}

.csss-content.center {
  align-items: center;
  text-align: center;
}

.csss-content h2 {
  font-size: 48px;
  font-family: var(--main-font);
  font-weight: var(--font-weight-500);
  line-height: var(--line-height-120);
  margin: 0;
  word-break: keep-all;
  color: #fff;
}

.csss-content p {
  font-size: 16px;
  font-family: var(--main-font);
  font-weight: var(--font-weight-400);
  line-height: var(--line-height-160);
  word-break: keep-all;
  color: #fff;
  margin: 0 0;
}

.csss-content a {
  padding: 8px 16px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 24px;
}

.csss-align-wrapper {
  display: flex;
  height: 100%;
  align-items: center;
}

.csss-align-wrapper.left {
  justify-content: flex-start;
}

.csss-align-wrapper.center {
  justify-content: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 640px !important;
}

.csss-align-wrapper.left {
  justify-content: flex-start;
}

.csss-align-wrapper.center {
  justify-content: center;
}

/* 슬라이드 전체 영역 내부 정렬 제거 */

.swiper-slide {
  display: block;
}

.swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 16%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

/* 콘텐츠 wrapper가 정렬 담당 */

.csss-align-wrapper {
  display: flex;
  height: 100%;
  align-items: center;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 500px;
  z-index: 2;
  position: relative;
}

.csss-align-wrapper.left {
  justify-content: flex-start;
  text-align: left;
}

.csss-align-wrapper.center {
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.csss-content.left {
  align-items: flex-start;
  text-align: left;
  z-index: 2;
}

.csss-content.center {
  align-items: center;
  text-align: center;
}

.csss-content h2,
.csss-content p,
.csss-content a {
  opacity: 0;
  animation-fill-mode: forwards;
}

/* h2: 위에서 아래로 */
.fade-in-top {
  animation: fadeInTop 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* p: 아래서 위로 */
.fade-in-bottom {
  animation: fadeInBottom 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* a: 단순 페이드인 */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Keyframes */
@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* swiper-slide에서 정렬 클래스 지정 시 내부 정렬 반영 */

.swiper-slide.left .csss-align-wrapper {
  justify-content: flex-start;
  text-align: left;
}

.swiper-slide.center .csss-align-wrapper {
  justify-content: center;
  text-align: center;
}

.swiper-slide.left .csss-content {
  align-items: flex-start;
  text-align: left;
}

.swiper-slide.center .csss-content {
  align-items: center;
  text-align: center;
}

@media (max-width: 767px) {
  .csss-align-wrapper {
    align-items: flex-end;
  }
  .csss-content {
    max-width: 100%;
    padding: 0 24px 56px 24px;
  }
  .csss-content h2 {
    font-size: 32px;
  }
  .csss-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 최대 줄 수 */
    -webkit-box-orient: vertical;
  }
}