:root {
  --g100: #fdfaf3;
  --g400: #f5c842;
  --g600: #d4a017;
  --g800: #b8860b;
  --dark: #1a1005;
}

.gl-page { background: #111; min-height: 80vh; font-family: 'Kanit', sans-serif; }

/* Hero */
.gl-hero {
  background: linear-gradient(135deg, #1a1005 0%, #2a1b05 60%, #1a1005 100%);
  padding: 64px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #f5c842 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.06;
}
.gl-hero-inner { position: relative; z-index: 1; }
.gl-hero-label {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g400);
  border: 1px solid rgba(245,200,66,.35);
  background: rgba(245,200,66,.08);
  border-radius: 9999px; padding: 5px 18px; margin-bottom: 18px;
}
.gl-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600; color: #fdf3d0; line-height: 1.2; margin: 0 0 12px;
}
.gl-hero-desc { font-size: 15px; color: rgba(253,243,208,.55); margin: 0; }

/* Filter */
.gl-filter-wrap {
  max-width: 80rem; margin: 0 auto; padding: 32px 24px 0;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.gl-tab {
  padding: 7px 22px; border-radius: 9999px; font-size: 13px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.15);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
  background: transparent; color: rgba(255,255,255,.55);
  font-family: 'Kanit', sans-serif;
}
.gl-tab.active, .gl-tab:hover {
  border-color: var(--g400);
  background: rgba(245,200,66,.12);
  color: var(--g400);
}

/* Count badge */
.gl-count {
  margin-left: auto;
  font-size: 13px; color: rgba(255,255,255,.35);
}

/* Masonry grid */
.gl-grid-wrap { max-width: 80rem; margin: 0 auto; padding: 28px 24px 80px; }
.gl-grid {
  columns: 4;
  column-gap: 14px;
}
.gl-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px; overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(245,200,66,.1);
  cursor: pointer;
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.gl-item:hover {
  border-color: var(--g400);
  box-shadow: 0 8px 32px rgba(245,200,66,.2);
}
.gl-item img {
  width: 100%; display: block;
  transition: transform .4s ease;
}
.gl-item:hover img { transform: scale(1.04); }
.gl-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,16,5,.9) 0%, rgba(26,16,5,.1) 55%, transparent 100%);
  opacity: 0; transition: opacity .25s ease;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.gl-item:hover .gl-overlay { opacity: 1; }
.gl-overlay-title { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.gl-overlay-caption { font-size: 11px; color: rgba(255,255,255,.6); }
.gl-overlay-date { font-size: 11px; color: var(--g400); margin-top: 6px; }

.gl-type-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 10px; padding: 3px 10px; border-radius: 9999px;
  font-weight: 500;
}
.gl-play-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(245,200,66,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .2s ease, background .2s ease;
}
.gl-item:hover .gl-play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--g400);
}

/* Lightbox */
#gl-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.94); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
#gl-lightbox.open { display: flex; }
#gl-lb-inner {
  position: relative; max-width: 920px; width: 94vw;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(245,200,66,.25);
}
#gl-lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(245,200,66,.2); color: var(--g400);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#gl-lb-close:hover { background: rgba(245,200,66,.4); }
#gl-lb-content img { width: 100%; max-height: 82vh; object-fit: contain; display: block; }
#gl-lb-content iframe { width: 100%; height: 52vw; max-height: 520px; display: block; border: 0; }
#gl-lb-caption {
  padding: 12px 16px; background: #111; font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* Empty */
.gl-empty {
  text-align: center; padding: 100px 20px;
  color: rgba(255,255,255,.3); font-size: 15px;
}

@media (max-width: 1024px) { .gl-grid { columns: 3; } }
@media (max-width: 640px)  { .gl-grid { columns: 2; column-gap: 10px; } .gl-item { margin-bottom: 10px; } }
@media (max-width: 400px)  { .gl-grid { columns: 1; } }
