/* Highlight Event — section strip (index.php) + more page grid (highlight.php) */

/* ===== Section strip on index ===== */
.highlight-section {
  margin-top: 8px;
}

.highlight-group {
  margin-bottom: 18px;
}

.highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
}

.highlight-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  border-left: 4px solid var(--primary, #e53935);
  padding-left: 10px;
  line-height: 1.2;
}

.highlight-more {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  padding-left: 12px;
}

.highlight-more:hover {
  color: var(--primary, #e53935);
}

.highlight-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.highlight-card {
  flex: 0 0 auto;
  width: 150px;
  cursor: pointer;
}

.highlight-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
}

.highlight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-card-title {
  font-size: 13px;
  color: #333;
  margin-top: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* hide-scrollbar reuse (define here in case common.css lacks it) */
.highlight-scroll.hide-scrollbar::-webkit-scrollbar { display: none; }
.highlight-scroll.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== More page grid (highlight.php) ===== */
.highlight-page {
  padding: 12px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* display_style = 3 (banner): full-width single column */
.highlight-grid.style-banner {
  grid-template-columns: 1fr;
}

.highlight-grid-card {
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.highlight-grid-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
}

.highlight-grid.style-banner .highlight-grid-image {
  aspect-ratio: 16 / 9;
}

.highlight-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-grid-title {
  font-size: 14px;
  color: #333;
  padding: 8px 10px 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.highlight-empty {
  text-align: center;
  color: #999;
  padding: 60px 20px;
}

/* ===== Event grid variant (highlight.php → events under a highlight) ===== */
/* event-list.css (linked for .event-card) resets .main-content to 30px; re-assert
   the 70px clearance for the fixed 60px .detail-header (matches common.css). */
.main-content {
  padding-top: 70px;
}

@media (max-width: 767px) {
  .main-content {
    padding-top: 70px;
  }
}

/* 2-column, auto-height grid (never widens to 3/4 cols like .event-grid) */
.highlight-event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md, 12px);
}
