/* assets/css/gallery.css - GMFL Luxury High-Fashion Gallery Design System */

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  position: relative;
  height: 48vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.35) 0%, rgba(8, 8, 8, 0.75) 60%, rgba(8, 8, 8, 0.98) 100%), url('../images/slider1.jpg') center/cover;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-header-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-header-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.page-header-subtitle {
  font-size: 0.95rem;
  color: var(--white-dim);
  font-weight: 300;
  line-height: 1.6;
}

.page-header-breadcrumb {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.4);
}

.page-header-breadcrumb a {
  color: var(--gold);
  transition: color 0.3s ease;
}

.page-header-breadcrumb a:hover {
  color: var(--white);
}

/* ── Filter Bar ──────────────────────────────────────────── */
.gallery-filter {
  position: sticky;
  top: 95px;
  z-index: 100;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding: 0.6rem 2rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.8rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  position: relative;
  flex-shrink: 0;
}

.filter-tab button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: var(--black-card);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-tab.active button, .filter-tab:hover button {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.35);
}

.filter-count {
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}

/* ── Gallery Section ─────────────────────────────────────── */
.gallery-section {
  padding: 4rem 2rem 6rem;
  background: #080808;
  min-height: 60vh;
}

/* ── Masonry Grid ────────────────────────────────────────── */
#gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Gallery Item Card ───────────────────────────────────── */
.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: var(--black-card);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
}

.item-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

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

/* ── Corner Brackets ─────────────────────────────────────── */
.item-corner-tl, .item-corner-br {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.item-corner-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.item-corner-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.gallery-item:hover .item-corner-tl,
.gallery-item:hover .item-corner-br {
  opacity: 1;
}

/* ── Item Overlay & Meta ─────────────────────────────────── */
.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0) 40%, rgba(8, 8, 8, 0.9) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover .item-overlay {
  opacity: 0.9;
}

.item-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform: translateY(6px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .item-meta {
  transform: translateY(0);
}

.item-title {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

.item-cat-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.2rem;
}

.item-cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.item-location {
  font-size: 0.7rem;
  color: var(--white-dim);
  font-weight: 300;
}

.item-expand {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.8);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gallery-item:hover .item-expand {
  opacity: 1;
  transform: scale(1);
}

.item-expand:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

/* ── Lightbox Modal ──────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 2rem;
}

#lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lightbox-img-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(201, 168, 76, 0.2);
}

.lightbox-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-caption {
  background: var(--black-card);
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 1.2rem 1.8rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-caption-title {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
}

.lightbox-caption-cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
  display: block;
}

.lightbox-caption-desc {
  font-size: 0.88rem;
  color: var(--white-dim);
  font-weight: 300;
  max-width: 450px;
  text-align: right;
}

.lightbox-close {
  position: fixed;
  top: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.85);
  color: var(--gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5001;
}

.lightbox-close:hover {
  background: var(--gold);
  color: #000;
  transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.85);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5001;
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

.lightbox-counter {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 5001;
  background: rgba(8, 8, 8, 0.85);
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 20px;
}

@media (max-width: 1024px) {
  #gallery-grid { column-count: 2; }
}

@media (max-width: 640px) {
  #gallery-grid { column-count: 1; }
  .gallery-filter { padding: 0.5rem 1rem; top: 70px; }
  .lightbox-img-wrap { height: 320px; }
  .lightbox-caption { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .lightbox-caption-desc { text-align: left; max-width: 100%; }
}
