.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
    padding-left: 5vw;
    padding-right: 5vw;
    transition: padding-right 0.6s ease;
  }
  
  
  .carousel-wrapper {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease;
    gap: 2rem;
  }

  .carousel-card {
    flex: 0 0 auto;
    width: 80vw;
    height: calc(80vw / 2); /* 2:1 ratio */
    max-width: 960px;
    max-height: 480px;
    display: flex;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: var(--drop-shadow-1);
    overflow: hidden;
  }

  
  .carousel-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  
  .carousel-card-content .tag {
    font-family: var(--font-slab);
    font-size: clamp(0.7rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: .25rem;
  }
  
  .carousel-card-content .title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: capitalize;
  }
  
  .carousel-card-content .desc {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  
  .carousel-dots {
    text-align: center;
    margin-top: 1rem;
  }
  
  .carousel-dots span {
    display: inline-block;
    width: var(--spacing-sm);
    height: var(--spacing-sm);
    margin: 0 6px;
    border-radius: var(--border-radius-sm);
    background: var(--color-third);
    background-color: var(--color-off-white);
    border: solid 1px var(--color-dark);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .carousel-card:last-child {
    margin-right: 0 !important;
  }
  
  .carousel-dots .active {
    background: var(--color-dark-mode);
  }

  .img-container {
    width: 50%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-right: 1px solid #ccc;
  }

  /* DARK MODE: CAROUSEL ONLY */
body.dark-mode .carousel-container {
    background-color: #0e0e0e;
  }
  
  body.dark-mode .carousel-card {
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #f0f0f0;
  }
  
  body.dark-mode .carousel-card-content .tag {
    color: #bbbbbb;
  }
  
  body.dark-mode .carousel-card-content .title {
    color: #ffffff;
  }
  
  body.dark-mode .carousel-card-content .desc {
    color: #dddddd;
  }
  
  
  body.dark-mode .carousel-dots span {
    background: #666;
  }
  
  body.dark-mode .carousel-dots .active {
    background: #fff;
  }
  
  body.dark-mode .img-container {
    border-color: #333;
    background-color: #000; /* fallback in case bg image fails */
  }
  
  body.dark-mode .carousel-card-content .title,
  body.dark-mode .carousel-card-content .desc {
  font-family: 'Roboto Serif', 'Roboto', serif;
}


  @media (max-width: 768px) {
    .carousel-container {
        overflow: hidden; /* Restore scroll boundary */
      }
      
      .carousel-wrapper {
        overflow-x: auto;
        overflow-y: visible; /* allows shadows */
        display: flex;
        padding: 0 5vw;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
      }
      
      .carousel-card {
        flex-direction: column;
        width: 90vw;
        height: auto;
        max-height: none;
        scroll-snap-align: center;
        margin: 0 auto;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0); /* Just in case it was dropped */
      }
  
    .img-container {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-right: none;
      border-bottom: 1px solid #ccc;
    }
  
    .carousel-card-content {
      padding: 1rem;
    }
  
    .carousel-card .title {
      font-size: 32px;
    }
  
    .carousel-card .desc {
      font-size: 20px;
    }
  
    .carousel-card button {
      padding: 0.75rem 1.5rem;
      font-size: 16px;
    }
  }