:root {
  --page-bg: #111;
  --panel-bg: rgba(17, 17, 17, 0.94);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.22);
  --logo-bg: #fcf6ea;
  --gap: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  text-align: center;
  padding: 48px 20px 30px;
}

.event-logo {
  width: min(260px, 72vw);
  max-height: 130px;
  object-fit: contain;
  background: var(--logo-bg);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.site-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery-menu button,
.load-more-button {
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-menu button:hover,
.load-more-button:hover {
  transform: translateY(-1px);
}

.gallery-menu button.active {
  background: #fff;
  color: #111;
}

.gallery-heading {
  text-align: center;
  padding: 28px 20px 8px;
}

.gallery-heading h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 500;
}

.gallery-heading p {
  margin: 0;
  color: var(--muted);
}

.loading {
  min-height: 42px;
  padding: 12px 20px;
  text-align: center;
  color: var(--muted);
}

.gallery {
  width: calc(100% - 40px);
  max-width: 1800px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 180ms ease;
}

.gallery.is-loading { opacity: 0.4; }

.gallery-item {
  display: block;
  margin-bottom: var(--gap);
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 220ms ease, transform 180ms ease;
}

.gallery-item img.loaded { opacity: 1; }

.gallery-item:hover img { transform: scale(1.015); }

.load-sentinel {
  height: 1px;
  width: 100%;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;
}

.load-more-button[hidden] { display: none; }

.site-footer {
  padding: 52px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.top-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gslide-description,
.glightbox-clean .gslide-description {
  display: none !important;
}

.gslide-media,
.ginner-container {
  position: relative;
}

.floating-download {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 160ms ease, transform 160ms ease;
}

.floating-download:hover {
  background: rgba(0, 0, 0, 0.76);
  transform: translateY(-1px);
}

.floating-download span {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 700px) {
  .site-header { padding-top: 34px; }

  .gallery-menu {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .gallery-menu button { flex: 0 0 auto; }

  .gallery { width: calc(100% - 24px); }

  .top-button {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 600px) {
  .floating-download {
    right: 12px;
    bottom: 12px;
    padding: 9px 13px;
    font-size: 0.86rem;
  }
}


.contact-link {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 0.78;
}
