/* =====================================================
   Tennis Event Single Page
===================================================== */

body {
  background-color: white;
}

#content {
  padding-top: 0;
  margin: 0;
}
.inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ts-event-single {
  padding: 4rem 0;
}

.event-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.event-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  font-size: .9rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.event-meta .date i {
  margin-right: .25rem;
}

.badge {
  display: inline-block;
  padding: .15rem .8rem;
  font-size: .8rem;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  background: #e8f9e6;
}
.cat-tournament { background:#dbe5ff; }
.cat-workshop   { background:#e8f9e6; }
.cat-camp       { background:#ffeab3; }

.event-image {
  margin-bottom: 1.5rem;
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.event-content {
  line-height: 1.8;
}

/* ---------- Event Gallery ---------- */
.event-gallery {
  background-color: #F9FAFB;
  padding: 4rem 0;
}

.event-gallery h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.event-gallery-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.event-gallery-grid figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.event-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Image Modal ---------- */
.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-m);
}
.image-modal.show {
  display: flex;
}

