/* ==========================================================================
   Event flyers: thumbnails, the flyer on event pages, and the full-screen view.
   Shared by the public site and the Club Members area.
   ========================================================================== */

.flyer-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;   /* flyers usually have the title at the top */
  border-radius: 10px;
  border: 1px solid var(--line, #ddd8e6);
  background: #fff;
}
.flyer-thumb-link { display: inline-flex; flex-shrink: 0; border-radius: 10px; }

.pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c1;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ---- On an event page ---- */
.flyer { margin: 0; }
.flyer-open {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #ddd8e6);
  background: #fff;
  line-height: 0;
}
.flyer-open img { width: 100%; height: auto; display: block; }
.flyer-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  line-height: 1;
  background: rgba(30, 22, 54, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}
.flyer figcaption { margin-top: 8px; font-size: 0.92rem; }
.flyer-note { font-size: 0.85rem; color: var(--ink-soft, #4f4867); }
.flyer-pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line, #ddd8e6);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #1e1636);
  text-decoration: none;
}
.flyer-pdf-card:hover { border-color: var(--purple, #6b2394); }

/* ---- Full-screen view (a <dialog> on top of the page) ---- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(20, 12, 34, 0.94);
  color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(20, 12, 34, 0.6); }
.lightbox-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  flex-shrink: 0;
}
.lightbox-close, .lightbox-link {
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
}
.lightbox-close:hover, .lightbox-link:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  padding: 0 12px 16px;
}
html.lightbox-open { overflow: hidden; }
