/* Carousel wrapper */
.about-carousel {
  width: 100%;
}

/* Hide all slides by default */
.about-slide {
  margin-left: 1%;
  margin-right: 1%;
  display: flex;
  flex-direction: row;
  margin-top: -2rem; 
  gap: 2rem;
  margin-bottom: 1rem; 
  align-items: stretch;
}

/* Hide slides that are not currently active */
.about-slide:not(.show) {
  display: none;
}

/* The slide currently being shown uses a horizontal flex layout */


/* Image column for active slide */

.about-slide-image {
  aspect-ratio: 16 / 9;
  flex: 0 1 clamp(60%, 60%, 60%); /* Responsive width */
  overflow: hidden;
}

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

/* Content column for active slide */
.about-slide.show .about-slide-content {
  flex: 1;
  padding-left: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-slide.show .about-slide-content .about-social-links{
  justify-content: flex-start;
}

/* Social links, text and navigation styles remain unchanged */
.about-social-links {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;

  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400; /* Regular */
  font-size: 16px;
}

.about-social-links a {
  text-decoration: none;
  color: #000;
}

.about-social-links a:hover {
  text-decoration: underline; /* Or leave it off if you want no hover effect */
  color: #000; /* Or any accent color */
}

.about-slide-text {
  position: relative;
  bottom: 0;
  left: 0;

  padding-right: 3rem; /* Controls text wrap distance from edges */
  font-size: 16px;
  line-height: 1.6;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  color: #222222;
  max-width: 100%; /* Prevents overflow */
  box-sizing: border-box;
}

.about-slide-nav {
  position: relative;
  bottom: 0;
  display: flex;
  gap: 1.5rem;
}

.about-slide-nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
  color: #000;
}

.about-slide-nav button:hover {
  text-decoration: underline;
}

/* Responsive layout: stack columns on narrow screens */
@media (max-width: 768px) {
  .about-slide.show {
    flex-direction: column;
  }
  .about-slide.show .about-slide-image,
  .about-slide.show .about-slide-content {
    max-width: 98%;
    flex-basis: 98%;
  }
  .about-slide-image {
    width: 100%;
    aspect-ratio: 3 / 4;     /* Force portrait aspect ratio on mobile */
    max-width: none;
    min-width: 0;
    height: auto;
  }

about-slide-content {
    display: flex;
    flex-direction: column;
  }

  .about-slide-nav {
    order: -1;
    margin-bottom: 1rem;
  }
.about-slide.show .about-slide-content {
  flex: 1;
  padding: 0rem;
}
  .about-social-links {
    flex-direction: row; 
    gap: 0.5rem;
  }
.about-slide-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Place both nav + links above text */
  .about-slide-nav,
  .about-social-links {
    order: -1;
  }

  /* Visually group them in a row */
  .about-slide-nav,
  .about-social-links {
    display: flex;
    gap: 1rem;
  }

  .about-slide-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .about-social-links {
    justify-content: flex-end;
    margin-left: auto;
    max-width: 50%;
  }
	  .about-slide-text {
  padding-right: 0rem;
}
}
