/* ── PAGE HEADER ── */
.page-header {
  text-align: center;
  padding: 52px 20px 32px;
  background: #222;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 13px;
  color: #777;
}

/* ── WRAP ── */
.media-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* ── FILTER TABS ── */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #888;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .2s;
}

.tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.tab.active { background: #f5a623; border-color: #f5a623; color: #111; }

/* ── MEDIA GRID ── */
.media-grid {
  columns: 3;
  column-gap: 16px;
}

.media-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #1a1a1a;
}

.media-item.hidden { display: none; }

.media-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}

.media-item:hover img {
  transform: scale(1.04);
}

/* overlay */
.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.media-item:hover .media-overlay { opacity: 1; }

.media-cat {
  display: inline-block;
  background: #f5a623;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: .5px;
  width: fit-content;
}

.media-overlay p {
  font-size: 12px;
  color: #ddd;
  margin-bottom: 10px;
}

.zoom-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.zoom-btn:hover { background: #f5a623; color: #111; border-color: #f5a623; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.lb-title {
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
  letter-spacing: .5px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}

.lb-close:hover { background: #e74c3c; border-color: #e74c3c; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}

.lb-arrow:hover { background: rgba(245,166,35,.7); border-color: #f5a623; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .media-grid { columns: 2; }
}

@media (max-width: 540px) {
  .media-grid { columns: 1; }
  .lb-arrow { display: none; }
}
