/* =========================================================
   IRL EVENTS GALLERY PAGE — specific styles
   These extend style.css (loaded first).
   Edit content in stratehiya.js, not here.
========================================================= */

/* =========================================================
   HERO
========================================================= */
.st-hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.st-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.st-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin: 0;
}

.st-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   GALLERY
========================================================= */
.st-gallery {
  border-top: 1px solid var(--border);
  padding: 60px 0 110px;
}

.st-gallery-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- filter tabs ---- */
.st-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.st-gallery-filter {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.st-gallery-filter:hover {
  border-color: var(--orange);
  color: var(--white);
}

.st-gallery-filter.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #15100c;
}

.st-empty {
  text-align: center;
  color: var(--muted-2);
  padding: 60px 0;
  font-size: 15px;
}

/* ---- masonry-style photo grid ----
   uses CSS columns so photos of different heights stack nicely
   like a Pinterest / gallery wall */
.st-photo-grid {
  column-count: 3;
  column-gap: 16px;
}

@media (max-width: 900px) { .st-photo-grid { column-count: 2; } }
@media (max-width: 560px) { .st-photo-grid { column-count: 1; } }

/* ---- individual photo card (is a <button> for accessibility) ---- */
.st-photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  break-inside: avoid;          /* keeps a photo from splitting across columns */
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.st-photo-card:hover,
.st-photo-card:focus-visible {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 106, 26, 0.15);
  outline: none;
}

.st-photo-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.st-photo-card:hover .st-photo-img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* dark caption overlay that slides up on hover */
.st-photo-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.st-photo-card:hover .st-photo-overlay,
.st-photo-card:focus-visible .st-photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.st-photo-cat {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-light);
}

.st-photo-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* small zoom icon that appears top-right on hover */
.st-photo-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.9);
  color: #15100c;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.st-photo-zoom svg { width: 17px; height: 17px; }

.st-photo-card:hover .st-photo-zoom,
.st-photo-card:focus-visible .st-photo-zoom {
  opacity: 1;
  transform: scale(1);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.st-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.st-lightbox[hidden] { display: none; }

.st-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}

.st-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.st-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.8);
  display: block;
}

.st-lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.st-lightbox-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.st-lightbox-counter {
  font-size: 12.5px;
  color: var(--muted);
}

/* close + nav buttons */
.st-lightbox-close,
.st-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 19, 15, 0.85);
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.st-lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
}

.st-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
}

.st-lightbox-prev { left: 24px; }
.st-lightbox-next { right: 24px; }

.st-lightbox-close:hover,
.st-lightbox-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #15100c;
}

@media (max-width: 600px) {
  .st-hero { padding: 70px 20px 60px; }
  .st-lightbox-nav { width: 42px; height: 42px; font-size: 24px; }
  .st-lightbox-prev { left: 10px; }
  .st-lightbox-next { right: 10px; }
  .st-lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
}