
.custom-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
}

.event-box {
    position: relative;
    padding: 0px;
}

.event-box h3 {
    display: none;
}

.event-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 5px 3px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-date .day {
    font-size: 23px;
    line-height: 1;
    font-weight: 600;
    color: #000000;
}

.event-date .month {
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 600;
    color: #777777;
}


/* Ensure the date appears in a square white box with day above month */
.event-date {
    display: inline-block;
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 5px 3px 15px rgba(0, 0, 0, .2);
    text-align: center;
    width: 60px;
    aspect-ratio: 1 / 1;
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    line-height: 1.2;
}

.event-date .month {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #888;
}
@media (min-width: 1200px) {
  .custom-events-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}




/* Modern Pagination Styling */
.pagination,
.wpem-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.pagination a,
.wpem-pagination a,
.pagination span,
.wpem-pagination span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #1c1c1e;
  color: #f5f5f7;
  border: 1px solid #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover,
.wpem-pagination a:hover {
  background-color: #333;
  color: #fff;
}

.pagination span.current,
.wpem-pagination span.current {
  background-color: #f5f5f7;
  color: #131317;
  font-weight: bold;
  border: 1px solid #888;
}

@media (max-width: 480px) {
  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 14px;
  }
}



/* Updated Pagination Styling */
.event-pagination,
.page-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

/* Page number links */
.page-numbers,
.page-numbers a,
.page-numbers span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #1c1c1e;
  color: #f5f5f7;
  border: 1px solid #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effect */
.page-numbers a:hover {
  background-color: #333;
  color: #fff;
}

/* Current/active page */
.page-numbers.current {
  background-color: #f5f5f7;
  color: #131317;
  font-weight: bold;
  border: 1px solid #888;
}

/* Next/Prev buttons */
.page-numbers.next,
.page-numbers.prev {
  font-weight: bold;
  background-color: #2c2c2e;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .page-numbers a,
  .page-numbers span {
    padding: 6px 10px;
    font-size: 14px;
  }
}
