.upcoming-events-div {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: #000;
  position: relative;
}

.upcoming-events-div::before {
  content: '';
  position: absolute;
  top: 10.6%;
  left: 1rem;
  width: 10.6rem;
  height: 10.5rem;
  background: linear-gradient(to right, #fff7f5 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 10;
  pointer-events: none;
}

.upcoming-events-div::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 1rem;
  width: 10.6rem;
  height: 10.5rem;
  background: linear-gradient(to left, #fff7f5 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 10;
  pointer-events: none;
}

.upcoming-title {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 2rem;
}

/* .day-scroll {
  display: flex;
  gap: 30px;
  padding: 10px;

  width: 100%;
  justify-content: center;

  overflow-x: hidden;
} */

.day-scroll {
  display: flex;
  gap: 25px;

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  padding: 1.5rem 4.6rem;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

  position: relative;
}

.day-scroll {
  cursor: grab;
}

.day-scroll:active {
  cursor: grabbing;
}

.day-scroll::-webkit-scrollbar {
  height: 5px;
}

.day-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 20px;
}

.day-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.day-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.day-item {
  /* min-width: 70px; */
  /* background: #e6e6e6; */
  background: #fae3d4;
  /* color: var(--primary-color); */
  padding: 1.4rem 0.3rem 0.4rem 0.3rem;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;

  display: grid;
  gap: 1rem;
  place-items: center;
  position: relative;
  z-index: 1;
}
.day-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.day-item span:first-child {
  font-family: poppins, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.1px;
  font-weight: 600;
  text-transform: uppercase;
  /* color: #ddd; */
}
.day-item span:last-child {
  width: 2.6rem;
  height: 2.6rem;
  font-family: poppins, sans-serif;
  font-size: 1.28rem;
  letter-spacing: 1.2px;
  font-weight: 800;
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  padding: 0.25rem;
  place-content: center;
}

/* .today {
  padding: 1.5rem 0.5rem;
} */

.day-item.active {
  background: #111;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px) scale(1.1);
}
/* .day-item.active span:last-child {
  background-color: #fff;
  color: var(--primary-color);
} */

.day-item.past {
  opacity: 0.3;
  /* transform: scale(0.9); */
}

.day-item.future {
  /* transform: scale(0.95); */
  opacity: 0.6;
}

.event-titles {
  font-size: 1.4rem;
  font-weight: 800;
  color: #222;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  flex: 1 1 0;
  padding-block: 1rem;
}

/* .poster-slider {
  display: flex;
  gap: 40px;
  overflow-x: auto;

  padding: 2rem;
} */
.poster-slider {
  display: flex;
  justify-content: center;
  gap: 30px;
  overflow-x: auto;
  /* width: 100%; */
  margin: auto;
  padding: 0 2rem 2rem 2rem;
}

.post-wrapper {
  /* display: flex;
    flex-direction: column;
    align-items: center; */
}

.poster-card {
  min-width: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Past overlay */
.poster-card.past::after {
  content: 'Event Over';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Future overlay */
.poster-card.future::after {
  content: 'Coming Soon';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.post {
  width: 370px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
}

.logo-insta-frame {
  width: 42px;
  height: 42px;
  padding: 0.4rem;
  background: #fff;
  border: 0.5px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.username {
  font-size: 0.92rem;
  font-weight: 600;
  color: #222;
}

/* Image area */
.image-container {
  width: 100%;
  height: 24rem;
  overflow: hidden;
  position: relative;
  object-fit: cover;

  background-color: #ffe4e1;
}
.image-container a {
  display: block;
  width: 100%;
  height: 100%;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: fill;
}

.image-container::after {
  content: attr(data-status);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  z-index: -1;
}

.image-container.past::after,
.image-container.future::after {
  opacity: 1;
  z-index: 1;
}

/* Overlay text boxes */
.label {
  position: absolute;
  color: #111;
  text-shadow: 4px 4px 2.5px rgba(0 0 0 / 0.4);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.68rem;
  letter-spacing: 1px;
  line-height: 40px;
  text-align: center;
  width: 20rem;
}

.world {
  top: 40%;
  left: 10%;
}

.environment {
  top: 52%;
  left: 20%;
}

.day {
  top: 64%;
  left: 45%;
}

/* Footer */
.insta-frame-footer {
  display: flex;
  justify-content: space-between;
  padding: 6px 15px;

  color: #000;
}

.insta-frame-footer .icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icons span {
  /* width: 30px; */
  font-size: 25px;
  /* margin-right: 12px; */
  display: inline-flex;
  align-items: center;
}

.icons span ion-icon:last-child {
  font-size: 24px;
  transform: scaleX(-1);
}

.icons span img {
  transform: translateY(-2px);
}

.insta-frame-footer span {
  font-size: 24px;
}

@media (max-width: 1100px) {
  .day-scroll {
    justify-content: flex-start;
    overflow-x: auto;

    scroll-behavior: smooth;
    padding-bottom: 12px;
  }

  .day-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .day-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }
}

@media (max-width: 900px) {
  .upcoming-events-div {
    padding: 1.5rem 0rem;
  }
  .upcoming-events-div::before {
    left: 0;
  }

  .upcoming-events-div::after {
    right: 0;
  }

  .poster-slider {
    padding: 2rem 1rem;
    width: 100%;
  }

  .post {
    /* width: 300px; */
  }

  .image-container {
    width: 100%;
    /* height: 260px; */
  }
}

@media (max-width: 500px) {
  .post {
    width: 86vw;
  }

  .image-container {
    /* height: 240px; */
  }
}

@media (max-width: 768px) {
  .poster-slider {
    justify-content: flex-start;
  }
  .day-item {
    /* padding: 1rem 0.4rem 0.3rem 0.4rem; */
    transform: scale(0.95);
  }

  .day-item.active {
    transform: scale(1);
  }
}
