/* CTWC Schedule - Frontend Styles (restored) */

/* ---------- Base wrappers ---------- */
.ctwc-event-container,
.ctwc-event-page {
  margin: 0 !important;
  font-family: Arial, sans-serif !important;
  color: #fff !important;
  background: #0d0d0d !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-image:
    linear-gradient(45deg, #111 25%, transparent 25%),
    linear-gradient(-45deg, #111 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111 75%),
    linear-gradient(-45deg, transparent 75%, #111 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Content bounds */
.ctwc-event-container .ctwc-container {
  position: relative;
  padding: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.ctwc-event-page .ctwc-event-inner {
  padding: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Slide header ---------- */
.ctwc-title-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.ctwc-logo {
  height: 120px;
  width: auto;
}

.ctwc-title {
  color: #FFD700 !important;
  font-size: 80px !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  font-family: Arial, sans-serif !important;
}

.ctwc-notes {
  width: 150px;
  text-align: left;
}

.ctwc-note {
  font-size: 0.9em;
  margin-top: 5px;
  font-weight: 700 !important;
  font-family: Arial, sans-serif !important;
  line-height: 1.1 !important;
}

.ctwc-tentative-note { color: #fff !important; }
.ctwc-inworks-note { color: #9b9a9a !important; }

/* Download button */
.ctwc-download-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  padding: 8px 12px;
  background-color: #FFD700;
  color: #000;
  font-weight: 800;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* ---------- Tour grid ---------- */
.ctwc-tour-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.4fr 1fr;
  gap: 20px;
  text-align: left;
  margin: 0 auto 10px auto;
}

.ctwc-tour-grid .ctwc-column {
  display: flex;
  flex-direction: column;
  font-size: 30px !important;
  line-height: 33px !important;
  font-family: Arial, sans-serif !important;
  font-weight: 800 !important;

  /* stroke effect like original design */
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #000;
  paint-order: stroke fill;
}

.ctwc-event-name {
  font-weight: 800 !important;
  color: #FFD700 !important;
}

.ctwc-location,
.ctwc-date {
  color: #fff !important;
  font-weight: 800 !important;
}

/* In works muted */
.ctwc-inworks {
  color: #9b9a9a !important;
}

/* In-works rows: ensure the event title (and its link) is also muted */
.ctwc-inworks .ctwc-event-name,
.ctwc-inworks .ctwc-event-name a.ctwc-event-link,
.ctwc-event-container .ctwc-inworks .ctwc-event-name a.ctwc-event-link {
  color: #9b9a9a !important;
}

/* Make event links look identical to the yellow names (and override theme link styles) */
.ctwc-event-container .ctwc-event-name a.ctwc-event-link,
.ctwc-event-container a.ctwc-event-link {
  color: #FFD700 !important;
  font-weight: 800 !important;
  font-family: Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 33px !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ctwc-event-container .ctwc-event-name a.ctwc-event-link:hover,
.ctwc-event-container a.ctwc-event-link:hover {
  text-decoration: none !important;
  filter: brightness(1.05);
}

/* Avoid hover brightening on muted in-works titles */
.ctwc-inworks a.ctwc-event-link:hover {
  filter: none !important;
}

/* Don't brighten in-works titles on hover */
.ctwc-inworks .ctwc-event-name a.ctwc-event-link:hover {
  filter: none !important;
}

/* ---------- Event page ---------- */
.ctwc-event-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #FFD700 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.ctwc-event-title {
  color: #FFD700 !important;
  font-size: 56px !important;
  line-height: 1.05 !important;
  margin: 0 0 14px 0 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 900 !important;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #000;
  paint-order: stroke fill;
}

.ctwc-event-meta {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  margin-bottom: 18px;
}

.ctwc-event-meta-item {
  margin: 6px 0;
}

/* Website link yellow */
.ctwc-event-website a,
.ctwc-event-meta a {
  color: #FFD700 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ctwc-event-website a:hover,
.ctwc-event-meta a:hover {
  text-decoration: underline !important;
}

/* Featured image sizing */
.ctwc-featured-image,
.ctwc-event-page img.ctwc-featured-image {
  display: block;
  margin: 18px auto;
  max-width: 600px !important;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Description */
.ctwc-event-description {
  font-size: 18px !important;
  line-height: 1.6 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 500 !important;
}

/* Gallery */
.ctwc-event-gallery-title {
  color: #FFD700 !important;
  margin: 26px 0 12px 0;
  font-size: 28px !important;
  font-weight: 900 !important;
  font-family: Arial, sans-serif !important;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #000;
  paint-order: stroke fill;
}

.ctwc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.ctwc-gallery-item {
  display: block;
  text-decoration: none !important;
  border: 0 !important;
}

.ctwc-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Helpful utility */
.ctwc-dontbreak { white-space: nowrap; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .ctwc-title { font-size: 52px !important; }
  .ctwc-tour-grid .ctwc-column { font-size: 22px !important; line-height: 26px !important; }
  .ctwc-event-container .ctwc-event-name a.ctwc-event-link { font-size: 22px !important; line-height: 26px !important; }
  .ctwc-logo { height: 90px; }
  .ctwc-event-title { font-size: 40px !important; }
}
