.event-wrapper #wrap {
  background: url(../../../wp/wp-content/themes/wp-templ/assets/img/event-report/mv.jpg)
    no-repeat top center / 100% 800px;
}

.event-wrapper .block-header {
  padding-top: 180px;
  margin: 0 0 2.5rem;
}

.event-wrapper .event-container .block-header__ttl {
  font-size: 5rem;
  line-height: 1.44em;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.event-wrapper .event-container .block-header__desc {
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: .03em;
  color: #666;
}

.event-container .event-container__content {
  display: grid;
  grid-template-columns: repeat(auto-fill, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.event-container .event-container__content .event-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
  border-radius: 0;
}

.event-container .event-container__content .event-item .event-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #3887c3;
  min-height: 60px;
}

.event-container .event-container__content .event-item .event-item__top--left {
  text-align: left;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
}

.event-container .event-container__content .event-item .event-item__top--right {
  text-align: right;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.event-container .event-container__content .event-item .event-item__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.event-container .event-container__content .event-item .event-item__inner--content {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.event-item .event-item__inner--item .detail-button {
  display: block;
  min-width: 200px;
  max-width: max-content;
  background: #c9a036;
  color: #fff;
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  border: none;
}

.event-item .event-item__inner--item .note {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #ffa800;
  padding: 5px 10px;
  border-top-right-radius: 5px;
  color: #fff;
}

.event-item .event-item__inner--item .note .number {
  font-size: 1.6rem;
  font-weight: 700;
}

.event-item .event-item__inner--item.event-image {
  position: relative;
  overflow: hidden;
  max-height: 400px;
  aspect-ratio: 5 / 3;
  cursor: pointer;
  order: 1;
}

.event-item .event-item__inner--item.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.event-item .event-item__inner--item.meta-info {
  order: 2;
}

.event-item .event-item__inner--item.event-image:hover img {
  transform: scale(1.05);
}

.event-item .event-item__inner--item.event-content {
  width: 100%;
  grid-column: span 2 / span 2;
  padding: 10px 20px 0;
  order: 3;
}

.event-item .event-item__inner--item .event-title {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-item .event-item__inner--item .event-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-item .event-item__inner--item .event-description p img {
  display: none;
}

.event-item .event-item__inner--item .event-description pre {
  white-space: initial;
}

.event-item .event-meta-label,
.event-item .event-meta-value,
.event-item .event-meta-text .price {
  font-size: 1.6rem;
}

/* Custom styles for wp-pagenavi */
.wp-pagenavi {
  clear: both;
  margin: 40px 0;
  text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wp-pagenavi a:hover {
  background: #f5f5f5;
  border-color: #3887c3;
  color: #3887c3;
}

.wp-pagenavi span.current {
  background: #3887c3;
  border-color: #3887c3;
  color: #fff;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  background: #3887c3;
  color: #fff;
  border-color: #3887c3;
}

.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .nextpostslink:hover {
  background: #2d6a9f;
}

.wp-pagenavi .extend {
  border: none;
  background: none;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .event-wrapper .block-header {
    padding-top: 120px;
    margin: 0 0 40px;
  }

  .event-wrapper .event-container .block-header__ttl {
    font-size: 36px;
    font-size: 3.6rem;
  }

  .event-container .event-container__content .event-item .event-item__top--left {
    font-size: 1.8rem;
  }

  .event-container .event-container__content .event-item .event-item__top--right {
    font-size: 1.4rem;
  }

  .event-container .event-container__content .event-item .event-item__inner--item.event-image {
    max-height: 500px;
  }

  .event-container .event-container__content .event-item .event-item__inner--item .event-title {
    font-size: 18px;
  }

  .event-container .event-container__content .event-item .event-item__inner--item .event-description {
    font-size: 14px;
  }

  .event-container .event-container__content .event-item .event-item__inner--content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .event-container .event-container__content .event-item .event-meta-label,
  .event-container .event-container__content .event-item .event-meta-value,
  .event-container .event-container__content .event-item .event-meta-text .price {
    font-size: 1.4rem;
  }

  .event-container .event-container__content .event-item .event-item__inner--item .note {
    font-size: 1.2rem;
  }

  .event-container .event-container__content .event-item .event-item__inner--item.meta-info {
    order: 3;
  }

  .event-container .event-container__content .event-item .event-item__inner--item.event-content {
    order: 2;
    grid-column: span 1 / span 1;
    padding: 10px 0;
  }
}
