/* ==========================================================
   Giorg - cooking class cards
   Shared by index.html, phone/index.html and tablet/index.html.
   Edit here only; do not paste rules back into the HTML.
   After changing this file, bump VERSION in extract-css.py and
   re-run it so the ?v= query updates and browsers refetch.
   ========================================================== */

.gx-band {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #111111;
  padding: 36px 0 44px;
  border-top: 1px solid rgba(201,150,63,0.35);
  border-bottom: 1px solid rgba(201,150,63,0.35);
  box-sizing: border-box;
}
#class {
  margin-top: 0 !important;
  height: 0 !important;
  position: absolute !important;
}
#pu2381-21, #u2381-21, #pu3085-17, #pu3087-17 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.gx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.gx-wrap * { box-sizing: border-box; }
.gx-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 32px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gx-sub {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 14px;
  color: #c9963f;
  margin: 0 0 32px;
  letter-spacing: 0.02em;
}
.gx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
  margin: 0 0 30px;
}
.gx-card, .gx-card:hover, .gx-card:focus, .gx-card:active,
.gx-card *, .gx-card span, .gx-date, .gx-title, .gx-meta {
  text-decoration: none !important;
}
.gx-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #181818;
  border: 1px solid rgba(201, 150, 63, 0.4);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  min-height: 100%;
}
.gx-card:hover, .gx-card:focus {
  transform: translateY(-4px);
  border-color: #c9963f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(201, 150, 63, 0.25);
}
.gx-card:focus-visible {
  outline: 2px solid #c9963f;
  outline-offset: 2px;
}

/* Thumbnails, restored. The poster has no photos, but a poster is a compact
   at-a-glance list and this page has room to actually sell the class - and the
   client supplies custom artwork per class, including the SOLD OUT pieces.
   Deliberately NO opacity:0 reveal this time: images simply show once decoded,
   so there is no way for a JS hiccup to leave every thumbnail invisible. */
.gx-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 60%;              /* 5:3, matching how the images are cropped */
  overflow: hidden;
  background: #241d19;
  border-bottom: 1px solid rgba(201, 150, 63, 0.25);
}
.gx-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  transition: transform 0.35s ease;
}
.gx-card:hover .gx-thumb img { transform: scale(1.04); }
/* Sold-out cards read as unavailable at a glance, behind the stamp. */
.gx-card--soldout .gx-thumb img { filter: grayscale(45%) brightness(0.72); }

/* Skeleton stop retained for audit and performance */
.gx-thumb:has(img.gx-loaded)::before {
  animation: none;
  opacity: 0;
}

.gx-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 18px 18px;
  background: transparent;
  text-align: left;
  position: relative;
}
.gx-date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9963f;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.gx-card .gx-title,
.gx-title {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #ffffff !important;
  font-weight: 700;
}
.gx-card .gx-meta,
.gx-meta {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(246, 241, 232, 0.78) !important;
  font-weight: 400;
  margin: 0 0 16px;
}

/* Spot count tag */
.gx-spots-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  background: #c9963f;
  color: #14110f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  line-height: 1.1;
}
.gx-spots-tag--low {
  background: #b3261e;
  color: #ffffff;
}

/* Sold out cards & stamp */
.gx-card--soldout {
  background: #141414;
  border-color: rgba(201, 150, 63, 0.2);
}
.gx-card--soldout .gx-date,
.gx-card--soldout .gx-title,
.gx-card--soldout .gx-meta {
  opacity: 0.35;
}
.gx-card--soldout:hover,
.gx-card--soldout:focus {
  transform: none;
  border-color: rgba(201, 150, 63, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.gx-soldout-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  display: inline-block;
  border: 2px solid #d9383a;
  color: #ff6b6b;
  background: rgba(18, 18, 18, 0.94);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(217, 56, 58, 0.35), 0 6px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 10;
}

/* Call to action & closing lines matching the poster */
.gx-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9963f !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(201,150,63,0.5);
  padding-bottom: 2px;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.gx-all:hover {
  color: #e0b769 !important;
  border-bottom-color: #e0b769;
}
.gx-all,
.gx-all:link,
.gx-all:visited,
.gx-all:hover,
.gx-all:active {
  color: #c9963f !important;
}

/* Closing tagline. Typography unchanged from the ::after version it replaces;
   only the target moved. It was generated content, which cannot be selected or
   copied and is not indexed - so "GIORG.CA - THUNDER BAY, ON", the name-and-city
   text local search relies on, was invisible to Google. It is real markup now,
   emitted by update-lineup.py. */
.gx-tagline,
.gx-locale {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(246, 241, 232, 0.72);
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin: 0;
}
.gx-tagline { margin-top: 26px; }

/* Responsive queries */
@media (max-width: 1024px) {
  .gx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .gx-band {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 30px 0 38px;
  }
  .gx-heading { font-size: 26px; }
  .gx-title { font-size: 16px; }
  .gx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .gx-band {
    padding: 24px 0 30px;
  }
  .gx-wrap {
    padding: 0 12px;
  }
  .gx-heading {
    font-size: 20px;
    margin: 0 0 6px;
  }
  .gx-sub {
    font-size: 12px;
    margin: 0 0 20px;
  }
  .gx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 0 20px;
  }
  .gx-body {
    padding: 12px 10px 12px;
  }
  .gx-date {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
  }
  .gx-title {
    font-size: 13.5px;
    line-height: 1.25;
    margin: 0 0 4px;
  }
  .gx-meta {
    font-size: 11px;
    line-height: 1.3;
    margin: 0 0 10px;
  }
  .gx-spots-tag {
    font-size: 8.5px;
    letter-spacing: 0.08em;
    padding: 2px 6px;
  }
  .gx-soldout-tag {
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 4px 8px;
  }
  .gx-all {
    font-size: 11.5px;
  }
  .gx-tagline,
  .gx-locale {
    font-size: 12px;
  }
  .gx-tagline { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-card,
  .gx-all {
    transition: none !important;
    animation: none !important;
  }
}
