/* Caption Card Base Styles */
.cotc-caption-card {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* Ensure it has a solid background to block parallax */
  box-shadow: 0 -10px 20px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.3);
}

.caption-image-wrapper {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 27.5px;
  right: 27.5px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.caption-image-wrapper .scroll-animator-section,
.caption-image-wrapper .scroll-animator-content {
  width: 100%;
  height: 100%;
}

.caption-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient Masks */
.caption-bg-fade_left {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,1) 100%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.caption-bg-fade_right {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.caption-text-box {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cotc-caption-card__title {
  font-family: var(--cotc-copperplate);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 2.5rem;
}

.cotc-caption-card__text {
  font-family: var(--cotc-roboto);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Background Color Modifiers */
.bg-cotc-black {
  background-color: var(--cotc-black);
  color: var(--cotc-white);
}
.bg-cotc-black .cotc-caption-card__title { color: var(--cotc-yellow); }

.bg-cotc-red {
  background-color: var(--cotc-red);
  color: var(--cotc-white);
}
.bg-cotc-red .cotc-caption-card__title { color: var(--cotc-yellow); }

.bg-cotc-tan {
  background-color: var(--cotc-tan);
  color: var(--cotc-black);
}
.bg-cotc-tan .cotc-caption-card__title { color: var(--cotc-red); }

.bg-cotc-blue {
  background-color: var(--cotc-blue);
  color: var(--cotc-black);
}
.bg-cotc-blue .cotc-caption-card__title { color: var(--cotc-white); }

.bg-cotc-yellow {
  background-color: var(--cotc-yellow);
  color: var(--cotc-black);
}
.bg-cotc-yellow .cotc-caption-card__title { color: var(--cotc-red); }

.bg-cotc-white {
  background-color: var(--cotc-white);
  color: var(--cotc-black);
}
.bg-cotc-white .cotc-caption-card__title { color: var(--cotc-red); }

@media (min-width: 768px) {
  .cotc-caption-card__title {
    font-size: 3.5rem;
  }
  .cotc-caption-card__text {
    font-size: 1.5rem;
  }
}
