/* ===============================
   🔥 Container & Layout Styling
   =============================== */
.events-page .container {
  background: #1a1a1a;
  border: 2px solid #ff4500;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 0 16px rgba(255,69,0,0.4);
  max-width: 1200px;
}

#eventsContainer,
.ads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}
@keyframes flickerGlow {
  0%, 100% { opacity: 1; }
  25% { opacity: 0.7; }
  50% { opacity: 0.9; }
  75% { opacity: 0.6; }
}

.section-divider,
.section-label.section-ads {
  grid-column: 1 / -1;
}

/* ===============================
   📇 Flyer Card Styling
   =============================== */
.responsive {
  max-width: 300px;
  margin: 0 auto;
  padding: 1rem;
  background: #1a1a1a;
  border: 2px solid #ff4500;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255,69,0,0.3);
  text-align: center;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsive:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(255,106,0,0.5);
}

.flyer-sections {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ===============================
   🖼️ Flyer Image Styling
   =============================== */
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ff4500;
  box-shadow: 0 0 10px rgba(255,69,0,0.4);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ===============================
   📝 Flyer Text & Date
   =============================== */
.event-date {
  font-size: 0.85rem;
  color: #ffcc99;
  margin-bottom: 6px;
}

.gallery .desc {
  margin-top: 8px;
  font-size: 1.05rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.gallery .desc strong {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.2rem;
  color: #ff4500;
  text-shadow: 0 0 6px #ff4500, 0 0 12px #ff6a00;
}

/* ===============================
   🧡 SpitfireTN Highlight
   =============================== */
.spitfiretn-highlight {
  border-color: #ffcc00;
  box-shadow: 0 0 12px rgba(255,204,0,0.6);
}

.was-spitfiretn::after {
  content: "🎧 SpitfireTN DJ'd";
  display: block;
  font-size: 0.8rem;
  color: #ffcc00;
  margin-top: 4px;
}

/* ===============================
   📆 Month Group Header
   =============================== */
.month-group {
  grid-column: 1 / -1;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff4500;
  margin: 1rem 0 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ff4500;
}

/* ===============================
   🚫 No Events Message
   =============================== */
.no-upcoming-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: #ccc;
  font-style: italic;
  margin-top: 2rem;
  transition: opacity 1s ease;
}

.no-upcoming-msg.fade-out {
  opacity: 0;
}

/* ===============================
   🎯 Filter Buttons
   =============================== */
.flyer-filters {
  text-align: center;
  margin-bottom: 1.5rem;
}

.flyer-filters button {
  background: #ff4500;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.flyer-filters button:hover {
  background: #ff6600;
}

.flyer-filters button.active {
  background: #fff;
  color: #ff4500;
  border: 2px solid #ff4500;
}
.image-wrapper {
  position: relative;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ff4500;
  box-shadow: 0 0 10px rgba(255,69,0,0.4);
  transition: transform 0.3s ease;
}

.branding-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 48px;
  height: 48px;
  z-index: 2;
}

.branding-badge img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.branding-badge img:hover {
  opacity: 1;
}

/* ===============================
   💡 Lightbox Overlay
   =============================== */
.event-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.event-lightbox.active {
  display: flex;
}

.event-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border: 2px solid #ff4500;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
  margin-bottom: 1rem;
}

.event-lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #ff4500;
  cursor: pointer;
}

#lightboxCaption {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}
.lightbox-image-wrapper {
  position: relative;
  display: inline-block;
}

.badge-lightbox {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 64px;
  height: 64px;
  z-index: 10;
}

.badge-lightbox img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.badge-lightbox img:hover {
  opacity: 1;
}

/* ===============================
   🧭 Section Headers & Dividers
   =============================== */
.section-label {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.6rem;
  color: #ff4500;
  text-shadow: 0 0 6px #ff4500, 0 0 12px #ff6a00;
  margin: 2rem 0 2rem;
  text-align: center;
}

.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #ff4500, #ff6a00);
  margin: 3rem auto 2rem;
  width: 80%;
  opacity: 0.6;
}

.section-events {
  margin-top: 1rem;
}

.section-ads {
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .responsive {
    max-width: 100%;
    padding: 1rem;
  }

  .gallery img {
    height: auto;
    max-height: 240px;
  }

  .section-label {
    font-size: 1.3rem;
    margin: 1.5rem 0;
  }

  .flyer-filters button {
    margin: 0.25rem;
    padding: 0.5rem 0.75rem;
  }
}
.branding-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  z-index: 2;
}

.branding-badge img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gallery {
  position: relative; /* Needed for absolute positioning inside */
}

.branding-badge img:hover {
  opacity: 1;
}
