/* =====================
   Page Layout
===================== */
.fair-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-title {
  font-size: 18px;
  margin-bottom: 20px;
}

/* =====================
   Grid
===================== */
.fair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =====================
   Fair Card
===================== */
.fair-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  overflow: hidden;
}

/* =====================
   Thumbnail
===================== */
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #f3f3f3;
  cursor: pointer;
  overflow: hidden;
}

.thumb input {
  display: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: transform 0.35s ease;
}

.thumb:hover img {
  transform: scale(1.05);
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

/* =====================
   Information
===================== */
.fair-info {
  padding: 12px;
  font-size: 12px;
}

.fair-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.fair-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: #666;
}

.fair-dday {
  margin-top: 6px;
  font-weight: 700;
  color: #005BFF;
}

.thumb {
  position: relative;
}

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

.thumb-placeholder {
  pointer-events: none;
}

.thumb img {
  pointer-events: none;
}