
/* HERO SECTION */
.events-hero {
  position: relative;
  display: flex;
  justify-content: center;
}

.events-hero-img {
  width: 100%;
  filter: brightness(0.75);
}

.events-hero-stack {
  position: absolute;
  top: 60px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: white;
}




/* UPCOMING EVENTS */

.upcoming {
  background-color: var(--bg-primary);
  padding: 60px;
}

.upcoming-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.upcoming-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  gap: 40px;
}

.upcoming-card {
  background-color: var(--purple-dark);
  padding: 20px;
  border-radius: 15px;

  width: 350px;
  height: 420px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;

  border: 2px solid black;
}

.upcoming-card-img {
  width: 100%;
  border-radius: 10px;
  height: 350px;
  border: 2px solid black;
  object-fit: cover;
}

.upcoming-card button {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;

  height: 50px;
  width: 150px;

  border: 2px solid black;
  font-weight: bold;
  background-color: whitesmoke;
  color: var(--purple-darkest);
}


.no-upcoming-events-card {
  background-color: var(--purple-dark);
  padding: 20px;
  border-radius: 15px;

  width: 100%;
  height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 0 auto;

  border: 2px solid black;
}

.upcoming-card button:hover {
  background-color: var(--purple-light);
}


/* SIGNATURE EVENTS */

.signature {
  padding: 60px;
  background-color: var(--bg-lavender);
}

.signature-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-items: center;
  margin: 0 auto;
  align-items: start;
}

.signature-box {
  width: 420px;
  padding: 30px;
  border-radius: 15px;
  background-color: var(--purple-light);

  height: 310px;
  border: 2px solid black;

  text-align: justify;
}

.signature-img-box {
  width: 420px;
  padding: 10px;
  border-radius: 15px;
  background-color: var(--purple-light);

  display: flex;
  justify-content: center;
  align-items: center;

  height: 310px;
  border: 2px solid black;
}

.signature-img-box img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: 1px solid black;
}




/* CAROUSEL */

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 20px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 10px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  width: 900px;
  height: 600px;

  border-radius: 10px;
  object-fit: cover;

  scroll-snap-align: center;
  flex-shrink: 0;

  border: 2px solid black;
}

/* Carousel Buttons */

.carousel-btn {
  background: transparent;
  color: black;
  font-size: 30px;

  width: 60px;
  height: 80px;
  border-radius: 20%;

  border: none;
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--purple-dark);
}




/* DIVIDER */
.divider {
  border: none;
  height: 2px;
  background-color: var(--purple-darkest);
  width: 100%;
  margin: 0;
}




/* Global image sizing*/

img {
  max-width: 100%;
  height: auto;
}



/* these styles to adapt to the smaller screens */
@media (max-width: 768px) {

  /* Reduce padding */
  .upcoming,
  .signature {
    padding: 20px;
  }

  .upcoming-cards-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .upcoming-card {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 300px;
    margin: 0 auto;
  }

  .upcoming-card-img {
  width: 100%;
  border-radius: 10px;
  height: auto;
  max-height: 200px;
  border: 2px solid black;
  object-fit: cover;
}

  

  .signature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  .signature-box,
  .signature-img-box {
    width: 100%;
    max-width: 420px;
    height: auto;
  }


  .signature-box {
    padding: 20px;
    text-align: left;
  }


  .carousel-track img {
    width: 90%;
    max-width: 350px;
    height: auto;
  }

  .events-hero-stack h1 {
    font-size: 32px;
  }


  .carousel-btn {
    width: 40px;
    height: 60px;
    font-size: 24px;
  }
}