/* 이벤트 목록 — 35_Event_1 main-content > board-list-2, .idx-ev1 스코프 */

.idx-ev1 {
  --idx-ev1-bar: #272a31;
  --idx-ev1-panel: #272a31;
  --idx-ev1-caption: #3b3f46;
  --idx-ev1-page: #eeff00;
  width: 100%;
  max-width: 1550px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-sizing: border-box;
}

.idx-ev1__bar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: var(--idx-ev1-bar);
  border-radius: 16px;
  overflow: hidden;
}

.idx-ev1__bar-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
}

.idx-ev1__bar-title {
  margin: 0;
  font: 600 16px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.08px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-ev1__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  background-color: var(--idx-ev1-panel);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.idx-ev1__grid-wrap {
  width: 100%;
  overflow: visible;
}

.idx-ev1__grid {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.idx-ev1__card {
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* API 빈 목록 */
.idx-ev1__grid > li.idx-ev1__card--empty {
  grid-column: 1 / -1;
}

.idx-ev1__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  height: 70%;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
}

.idx-ev1__link:focus-visible {
  outline: 2px solid var(--idx-ev1-page);
  outline-offset: 2px;
}

.idx-ev1__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: #1f2228;
}

.idx-ev1__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.idx-ev1__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: var(--idx-ev1-caption);
  border-radius: 10px;
  font: 600 14px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.07px;
  color: #fff;
  text-align: center;
}

.idx-ev1__pager {
  display: flex;
  min-height: 30px;
  align-items: center;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.idx-ev1__page-current {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.07px;
  color: var(--idx-ev1-page);
}

/* 태블릿·모바일: 한 줄에 카드 2개 */
@media (max-width: 1024px) {
  .idx-ev1__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
