.event-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
}

.popup-spacer {
  height: 100px;
  width: 100%;
}

.popup-inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: inline-block;
}

.popup-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.eventpromotion-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.eventpromotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.eventpromotion-item {
  overflow: hidden;
  cursor: pointer;
}

.eventpromotion-imgwrap {
  position: relative;
  width: 100%;
}

.eventpromotion-imgwrap img {
  width: 100%;
  display: block;
  transition: 0.3s ease;
}

.eventpromotion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  z-index: 1;
  pointer-events: none;
}

.eventpromotion-end .eventpromotion-imgwrap img {
  filter: grayscale(100%);
  opacity: 0.5;
}

.eventpromotion-text {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 500;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
}

.event-date {
  color: #555;
}

.event-filter {
  display: flex;
  gap: 10px;
  margin: 10px 20px 20px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}

.filter-btn[aria-selected="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}

.eventpromotion-item.is-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .eventpromotion-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 태블릿 등 중간 사이즈 → 2개 */
  }
}

@media (max-width: 600px) {
  .eventpromotion-grid {
    grid-template-columns: 1fr;
    /* 모바일에서는 1개 */
  }

  .event-filter {
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px;
  }

  .filter-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
  }
}