@charset "utf-8";
/* ============================================
   BILL'S GIGULATOR — Calendar & Gig Card Styles
   Inject this CSS into Squarespace or any host site.
   Fonts and sizes inherit from host site.
   ============================================ */
/* --- Palette --- */
/* ---- Loading placeholder — reduce layout flash ---- */
#bgig-shows {
  min-height: 600px;
}
/* ---- Month Header ---- */
.bgig-cal-month-hdr {
  margin-top: 24px;
}
.bgig-cal-month-hdr .bgig-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #242424;
  border-bottom: 2px solid #c8a45a;
  padding: 0 8px;
}
.bgig-cal-month-hdr .bgig-cal-nav h2 {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8a45a;
  margin: 0;
  padding: 12px 16px;
  flex: 1;
  text-align: center;
}
.bgig-cal-month-hdr .bgig-cal-nav .bgig-cal-prev,
.bgig-cal-month-hdr .bgig-cal-nav .bgig-cal-next {
  background: none;
  border: 1px solid #333;
  color: #b1adaa;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bgig-cal-month-hdr .bgig-cal-nav .bgig-cal-prev:hover,
.bgig-cal-month-hdr .bgig-cal-nav .bgig-cal-next:hover {
  color: #c8a45a;
  border-color: #c8a45a;
}
/* ---- Day-of-Week Header Row ---- */
.bgig-cal-week-hdr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.bgig-cal-week-hdr span {
  background: #2c2c2c;
  color: #c8a45a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #333;
  border-top: none;
}
/* ============================================
   WEEK ROW — 7-column CSS grid
   ============================================ */
.bgig-cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  /* ============================================
       DAY CELL — flex column so gigs share equal space
       ============================================ */
}
.bgig-cal-week .bgig-cal-day {
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  background: #1e1e1e;
  min-height: 200px;
  transition: background 0.2s ease;
  text-align: center;
  /* Today highlight */
  /* Past days — deemphasized */
}
.bgig-cal-week .bgig-cal-day.bgig-cal-today {
  background: #2a2218;
  border-color: #c8a45a;
  box-shadow: inset 0 0 20px rgba(200, 164, 90, 0.06);
}
.bgig-cal-week .bgig-cal-day.bgig-cal-today .cal-day-hdr {
  background: rgba(200, 164, 90, 0.15);
}
.bgig-cal-week .bgig-cal-day.bgig-cal-today .cal-day-hdr .cal-date {
  color: #e8c86a;
}
.bgig-cal-week .bgig-cal-day.bgig-cal-past {
  filter: grayscale(1);
  opacity: 0.7;
  /* Remove filter when popup is open (filter creates stacking context that breaks fixed positioning) */
}
.bgig-cal-week .bgig-cal-day.bgig-cal-past:hover {
  filter: grayscale(0);
  opacity: 1;
}
.bgig-cal-week .bgig-cal-day.bgig-cal-past:has(.bgig-active) {
  filter: none;
  opacity: 1;
}
/* ---- Date Number ---- */
.cal-day-hdr {
  padding: 6px 8px;
  border-bottom: 1px solid #333;
  background: #2c2c2c;
  flex-shrink: 0;
}
.cal-day-hdr .cal-date {
  font-weight: 700;
  line-height: 1;
  color: #c8a45a;
}
/* Only show first image per day cell */
.bgig-cal-day > .bgig-gig ~ .bgig-gig .bgig-pic {
  display: none;
}
/* Gigs after the first have no pic — shorter min-height, but never smaller than content */
/* ============================================
   GIG CARD
   flex:1 = equal vertical space per gig
   Image on top, time badge + band name below
   ============================================ */
.bgig-gig {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
  /* Disable links in normal view — popup re-enables */
  /* ---- Band Image ---- */
  /* ---- Time Badge ---- */
  /* ---- Band Name ---- */
  /* Release proj-name min-height when gig has extra content */
  /* Hide empties */
  /* ---- Hide detail fields by default ---- */
  /* ---- Ticket Link ---- */
}
.bgig-gig:hover {
  background: #2a2a2a;
}
.bgig-gig:last-child {
  border-bottom: none;
}
.bgig-gig a {
  pointer-events: none;
  color: inherit;
}
.bgig-gig .bgig-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0 8px 0;
  margin: 0;
}
.bgig-gig .bgig-pic {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #242424;
}
.bgig-gig .bgig-pic a {
  display: block;
  line-height: 0;
}
.bgig-gig .bgig-pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.bgig-gig .bgig-pic:empty {
  min-height: 100px;
  background: transparent;
}
.bgig-gig:hover .bgig-pic img {
  filter: saturate(1);
  transform: scale(1.03);
}
.bgig-gig .bgig-time {
  padding: 5px 8px 2px;
}
.bgig-gig .bgig-time .bgig-time-show {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c8a45a;
  background: rgba(200, 164, 90, 0.12);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 14px;
}
.bgig-gig .bgig-proj {
  text-align: center;
  padding: 2px 8px;
}
.bgig-gig .bgig-proj .bgig-proj-name {
  font-weight: 700;
  line-height: 1.25;
  min-height: 38.5px;
  display: inline-block;
  color: #e8e0d4;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 16px;
}
.bgig-gig .bgig-proj .bgig-proj-name .bgig-proj-feat {
  font-size: 0.8em;
  font-weight: 400;
}
.bgig-gig .bgig-proj a.bgig-proj-name:hover {
  color: #c8a45a;
}
.bgig-gig .bgig-proj span.bgig-proj-name {
  color: #b1adaa;
}
.bgig-gig:has(.bgig-ticket:not(:empty)) .bgig-proj-name,
.bgig-gig:has(.bgig-event:not(:empty)) .bgig-proj-name,
.bgig-gig:has(.bgig-misc:not(:empty)) .bgig-proj-name {
  min-height: auto;
}
.bgig-gig .bgig-event:empty,
.bgig-gig .bgig-misc:empty,
.bgig-gig .bgig-ticket:empty,
.bgig-gig .bgig-proj-prefix:empty {
  display: none;
}
.bgig-gig .bgig-date,
.bgig-gig .bgig-proj-desc {
  display: none;
}
.bgig-gig .bgig-misc {
  font-size: 0.8em;
  color: #b1adaa;
  padding: 0 8px 4px;
  max-height: 1.4em;
  line-height: 1.4;
  overflow: hidden;
}
.bgig-gig .bgig-misc p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.bgig-gig .bgig-ticket-url {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  background: #c8a45a;
  color: #1a1a1a;
  padding: 3px 8px;
  margin: 4px 8px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.bgig-gig .bgig-ticket-url:hover {
  background: #ddb866;
}
/* ---- Cancelled Gigs ---- */
.bgig-gig-cancel .bgig-proj .bgig-proj-name,
.bgig-gig-cancel .bgig-time-show {
  text-decoration: line-through;
  color: #706858;
}
.bgig-gig-cancel .bgig-pic img {
  filter: grayscale(1);
}
.bgig-gig-cancel .bgig-cancel-txt {
  color: #c44;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 4px;
  margin: 0;
  font-size: 16px;
}
.bgig-gig-cancel.bgig-gig.bgig-active .bgig-cancel-txt {
  font-size: 32px;
}
/* ============================================
   GIG POPUP — shown when .bgig-active is added
   ============================================ */
.bgig-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}
.bgig-gig.bgig-active {
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: #242424;
  border: 1px solid #c8a45a;
  border-radius: 8px;
  flex: none;
  cursor: default;
  /* Descriptions stay left-aligned */
  /* Re-enable links in popup */
  /* Show hidden fields in popup */
  /* Always show image in popup (override calendar hide rule) */
}
.bgig-gig.bgig-active .bgig-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  color: #e8e0d4;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bgig-gig.bgig-active .bgig-close:hover {
  background: #c8a45a;
  color: #1a1a1a;
}
.bgig-gig.bgig-active .bgig-info {
  padding: 0;
  text-align: center;
}
.bgig-gig.bgig-active .bgig-misc,
.bgig-gig.bgig-active .bgig-proj-desc {
  text-align: center;
  max-height: none;
  overflow: visible;
}
.bgig-gig.bgig-active .bgig-misc p,
.bgig-gig.bgig-active .bgig-proj-desc p {
  white-space: wrap;
  overflow: visible;
  margin-bottom: 1.4em;
}
.bgig-gig.bgig-active a {
  pointer-events: auto;
}
.bgig-gig.bgig-active .bgig-date {
  display: block;
  padding: 16px 8px;
  font-weight: 700;
  font-size: 16px;
  color: #c8a45a;
}
.bgig-gig.bgig-active .bgig-misc,
.bgig-gig.bgig-active .bgig-proj-desc {
  display: block;
  padding: 8px 8px;
  color: #b1adaa;
}
.bgig-gig.bgig-active .bgig-misc p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.5;
}
.bgig-gig.bgig-active .bgig-proj-desc {
  font-style: italic;
}
.bgig-gig.bgig-active .bgig-pic {
  display: block !important;
}
.bgig-gig.bgig-active .bgig-pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  filter: saturate(1);
}
.bgig-gig.bgig-active .bgig-pic:empty {
  display: none !important;
}
.bgig-gig.bgig-active .bgig-time {
  padding: 8px 8px 4px;
}
.bgig-gig.bgig-active .bgig-proj {
  padding: 4px 8px 8px;
}
.bgig-gig.bgig-active .bgig-proj-name {
  font-size: 22px;
  min-height: auto;
}
.bgig-gig.bgig-active .bgig-proj-feat {
  display: block;
}
/* ============================================
   MOBILE — stacked list, one day per row
   ============================================ */
@media (max-width: 900px) {
  /* Gigs become horizontal: thumbnail | text */
  .bgig-gig {
    flex: none;
    min-height: auto;
    /* Force all children into column 2 by default */
  }
  .bgig-gig .bgig-info {
    display: grid;
    grid-template-columns: max(25%, 132px) 1fr;
  }
  .bgig-gig .bgig-info > * {
    grid-column: 2;
  }
  .bgig-gig .bgig-date {
    font-size: 25px;
  }
  .bgig-gig .bgig-pic {
    grid-column: 1;
    grid-row: 1 / 20;
    /* span enough rows to cover all siblings */
    align-self: center;
    box-sizing: border-box;
    padding: 8px 2px 8px 8px;
  }
  .bgig-gig .bgig-pic a {
    display: block;
  }
  .bgig-gig .bgig-pic:empty {
    min-height: 80px;
    background: transparent;
  }
  .bgig-gig .bgig-time {
    padding: 6px 12px 2px;
  }
  .bgig-gig .bgig-proj {
    padding: 2px 12px 6px;
  }
  .bgig-gig .bgig-misc,
  .bgig-gig .bgig-proj-desc {
    white-space: normal;
    text-align: center;
    max-height: none;
    overflow: visible;
    padding: 2px 12px 6px;
  }
  .bgig-gig .bgig-misc p,
  .bgig-gig .bgig-proj-desc p {
    white-space: wrap;
    overflow: visible;
    margin-bottom: 1.4em;
  }
  /* Mobile popup — reset mobile grid back to vertical stack */
  .bgig-gig.bgig-active .bgig-info {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .bgig-gig.bgig-active .bgig-pic {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    align-self: auto;
  }
  .bgig-gig.bgig-active .bgig-pic img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .bgig-gig.bgig-active .bgig-info > * {
    grid-column: auto;
  }
  /* ---- Mobile List: Date header + alternating day colors ---- */
  /* Hide date on repeat gigs (server adds bgig-date-repeat class) */
  .bgig-date-repeat .bgig-date {
    display: none;
  }
  /* Space before each new day (except the first) */
  .bgig-date-new + .bgig-date-new,
  .bgig-date-repeat + .bgig-date-new {
    margin-top: 48px;
  }
  /* Style the date as a day header on first occurrence */
  .bgig-date-new .bgig-date {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    font-weight: 700;
    color: #c8a45a;
    padding: 10px 12px 4px;
    border-bottom: 1px solid #333;
    background: #2c2c2c;
  }
  /* Push image below the date header row */
  .bgig-date-new .bgig-pic {
    grid-row: 2 / 20;
  }
  /* Alternating day colors (server adds bgig-day-odd / bgig-day-even) */
  .bgig-day-odd {
    background: #1e1e1e;
  }
  .bgig-day-even {
    background: #242424;
  }
}
@media (max-width: 480px) {
  .bgig-cal-month-hdr h2 {
    padding: 10px 12px;
  }
}
/*# sourceMappingURL=bgig-calendar.css.map */