/* ============================================================
   events.css / gallery.css / contact.css / footer  (combined)
   ============================================================ */

/* ---------- EVENTS (filmstrip / grid) ---------- */
.events-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
@media (max-width: 600px) {
  .events-strip {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .event-card { scroll-snap-align: center; }
}

.event-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  aspect-ratio: 3 / 4;
}
.event-card:hover {
  transform: scale(1.04) translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(240,165,0,.4), 0 0 40px rgba(240,165,0,.18);
  z-index: 5;
}
.event-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .35s;
  filter: saturate(.92) brightness(.92);
}
.event-card:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }

.event-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(14,13,11,.92) 0%, rgba(14,13,11,.4) 45%, transparent 75%);
}
.event-overlay h3 { font-size: 1.18rem; margin-bottom: 4px; }
.event-overlay .ev-date { font-size: .82rem; color: var(--amber); font-weight: 600; }
.event-view {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 30px;
  background: var(--amber); color: var(--bg);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.event-card:hover .event-view { opacity: 1; transform: none; }

/* Events without photos: shown but not clickable */
.event-card.no-photos { cursor: default; }
.event-card.no-photos:hover {
  transform: none; border-color: var(--line);
  box-shadow: none; z-index: auto;
}
.event-card.no-photos img { filter: saturate(.55) brightness(.62); }
.event-card.no-photos:hover img { transform: none; filter: saturate(.55) brightness(.62); }
.event-soon {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 30px;
  background: rgba(237,232,216,.12); color: var(--text-dim);
  border: 1px solid var(--line);
}

/* "no content yet" card */
.event-card.empty { cursor: default; }
.event-card.empty:hover { transform: none; border-color: var(--line); box-shadow: none; }
.event-card.empty .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, var(--surface-1) 0 12px, var(--surface-2) 12px 24px);
}
.event-card.empty .placeholder .ph-icon { width: 46px; height: 46px; opacity: .4;
  filter: invert(60%) sepia(20%) saturate(400%) hue-rotate(0deg); }
.event-card.empty .placeholder h3 { font-size: 1.05rem; color: var(--text); }
.event-card.empty .placeholder p { font-size: .82rem; color: var(--text-dim); }

/* ---------- GALLERY PAGE ---------- */
.gallery-header {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 50px) 28px 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.gallery-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 30px;
  border: 1px solid var(--line); color: var(--text-dim);
  font-size: .88rem; transition: border-color .25s, color .25s, gap .25s var(--ease);
}
.gallery-back:hover { color: var(--text); border-color: var(--amber); gap: 12px; }
.gallery-titles { margin-left: 4px; }
.gallery-titles h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.gallery-titles .g-date { color: var(--amber); font-weight: 600; font-size: .95rem; margin-top: 4px; }

.gallery-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 28px 100px;
  columns: 4 280px; column-gap: 14px;
}
.gallery-grid .g-item {
  break-inside: avoid; margin-bottom: 14px;
  border-radius: 12px; overflow: hidden; background: var(--surface-1);
  cursor: pointer; opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  border: 1px solid var(--line);
}
.gallery-grid .g-item.in { opacity: 1; transform: none; }
.gallery-grid .g-item img { width: 100%; transition: transform .5s var(--ease); }
.gallery-grid .g-item:hover img { transform: scale(1.05); }

.gallery-empty {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 28px 120px;
  text-align: center; color: var(--text-dim);
}
.gallery-empty .ge-card {
  border: 1px dashed var(--line); border-radius: 18px; padding: 60px 24px;
  background: var(--surface-1);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(8,7,6,.95); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 84vh; border-radius: 8px;
  transform: scale(.94); transition: transform .35s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.lightbox.open img { transform: scale(1); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(237,232,216,.08); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--text); transition: background .25s, transform .25s;
}
.lb-btn:hover { background: var(--amber); color: var(--bg); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-top { position: absolute; top: 22px; right: 22px; display: flex; gap: 12px; }
.lb-top .lb-btn { position: static; transform: none; width: 46px; height: 46px; font-size: 1.1rem; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: .82rem; color: var(--text-dim); letter-spacing: .15em; }

@media (max-width: 600px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ---------- CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; gap: 36px; } }
.contact-lead { color: var(--text-dim); font-size: 1.05rem; max-width: 40ch; margin-bottom: 34px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item a { font-size: 1.1rem; transition: color .25s; }
.contact-item a:hover { color: var(--amber); }
.contact-item .ci-icon { width: 38px; height: 38px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--amber); }
.contact-item .ci-icon svg { width: 20px; height: 20px; display: block; }
.contact-item .ci-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }

.ig-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ig-strip a {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
}
.ig-strip a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: saturate(.9) brightness(.85); }
.ig-strip a:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.ig-strip a .ig-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; background: rgba(14,13,11,.55); transition: opacity .3s; color: var(--text); }
.ig-strip a:hover .ig-ov { opacity: 1; }
.ig-strip a .ig-ov svg { width: 26px; height: 26px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-1);
  padding: 50px 28px 40px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; }
.footer-logo img { width: 30px; height: 30px; border-radius: 50%;
  filter: invert(93%) sepia(8%) saturate(420%) hue-rotate(2deg) brightness(102%) contrast(96%); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; color: var(--text-dim); transition: color .25s; }
.footer-links a:hover { color: var(--amber); }
.footer-copy { font-size: .82rem; color: var(--text-dim); width: 100%; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }

/* ---------- LEGAL MODALS ---------- */
.legal-modal { position: fixed; inset: 0; z-index: 6000; display: none; }
.legal-modal.open { display: block; }
.legal-modal .lm-overlay { position: absolute; inset: 0; background: rgba(8,7,6,.8); backdrop-filter: blur(4px); }
.legal-modal .lm-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(640px, 92vw); max-height: 84vh; overflow-y: auto;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px;
}
.legal-modal h2 { font-size: 1.6rem; margin-bottom: 20px; }
.legal-modal h3 { font-size: 1rem; color: var(--amber); margin: 22px 0 8px; }
.legal-modal p { color: var(--text-dim); font-size: .92rem; margin-bottom: 10px; }
.legal-modal .lm-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; }
.legal-modal .lm-close:hover { background: var(--amber); color: var(--bg); }
.legal-modal .lm-note { font-size: .82rem; color: var(--text-dim); font-style: italic; }
