/* ══════════════════════════════════════
   GALLERY PAGE
══════════════════════════════════════ */

.gallery-page {
  background: var(--black);
  min-height: 100vh;
  padding: 120px 60px 80px;
}

/* ── Header ── */
.gal-header {
  position: relative;
  z-index: 50;
  isolation: isolate;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.gal-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.gal-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 16px;
}

.gal-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin: 0 0 40px;
}

/* ── Type filter (top) ── */
.gal-type-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gal-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 26px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.gal-type-btn:hover {
  border-color: rgba(180,185,200,0.4);
  color: rgba(255,255,255,0.85);
}

.gal-type-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
}

/* ── Grid ── */
.gal-grid {
  max-width: 1400px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.2rem;
  gap: 10px;
  align-items: start; /* cards size to their own content — descriptions vary in length */
}

.gal-card {
  position: relative;
  border-radius: 6px;
  display: block;
  background: #1a1a22;
  overflow: hidden;
}

/* The media box carries the aspect-ratio, not the card itself — the card
   also holds the description text below, which is a variable height. */
.gal-card-media-box {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1; /* photos — square */
}

/* Reels format for video cards — true 9:16 portrait, not a cropped square. */
.gal-card-media-box--video {
  aspect-ratio: 9 / 16;
}

.gal-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
  object-position:  center;
}

/* ── Skeleton placeholder tiles (shown while `loading` is true, see
   Gallery.jsx) — same card shape/spacing as a real result so the grid
   doesn't jump when the real page of media replaces it. .skel-shimmer
   itself (the sweep animation) is the shared global utility in
   index.css; this just sizes/positions the two fake text lines under
   the image to stand in for the description + view-count row. ── */
.gal-card--skeleton {
  cursor: default;
}
.gal-skel-line {
  height: 12px;
  border-radius: 4px;
  margin: 10px 12px 0;
}
.gal-skel-line--short {
  width: 40%;
  margin-top: 8px;
  margin-bottom: 12px;
}

/* Static caption below the image/video — always visible, not hover-only. */
.gal-card-desc {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}

.gal-card-views {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px 14px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
}

.gal-card:hover .gal-card-media {
  transform: scale(1.06);
}

/* Video play overlay */
.gal-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  pointer-events: none;
  transition: background 0.25s, transform 0.25s;
}

.gal-card:hover .gal-play-icon {
  background: rgba(180,170,100,0.7);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Hover overlay */
.gal-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gal-card:hover .gal-card-overlay {
  opacity: 1;
}

.gal-card-service {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--white);
}

.gal-card-type-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 3px;
}

/* Empty state */
.gal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(255,255,255,0.3);
  font-size: 15px;
  letter-spacing: 1px;
}

/* ── Service / category filter (in header) ── */
/* Bounded now — Gallery.jsx only ever renders "Barchasi" + up to
   VISIBLE_PILL_COUNT pills + one "Yana ▾" trigger for the rest, instead
   of one pill per catalog service. That cap means plain wrap+center is
   safe again (a tried horizontal-scroll version was reverted in favor of
   this — capping the count outright is the more scalable fix, since it
   stays a predictable ~7 elements regardless of how many services end up
   with media, rather than relying on scroll affordance to hide growth). */
.gal-service-filters {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.gal-svc-btn {
  padding: 7px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  white-space: nowrap;
}

.gal-svc-btn:hover {
  border-color: rgba(180,185,200,0.35);
  color: rgba(255,255,255,0.8);
}

.gal-svc-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(180,170,100,0.08);
}

/* "Yana ▾" overflow trigger + dropdown panel — styled to match the pills
   around it (same border/radius/font) rather than a native <select>,
   which browsers render with their own OS chrome that can't be skinned
   to match this site's gold-accent pill look. */
.gal-svc-more {
  position: relative;
}

.gal-svc-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gal-svc-more-chevron {
  display: inline-flex;
  transition: transform 0.2s;
}

.gal-svc-more-chevron--up {
  transform: rotate(180deg);
}

.gal-svc-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  max-height: 280px;
  overflow-y: auto;
  /* Was a near-black flat fill (#16171d) that barely read as a panel
     against this page's equally dark background — floated over the
     photo grid below with almost no visible card/backdrop. Matches
     Navbar.jsx's own dropdown panel now (same rgba+blur+border+shadow
     combo) so it actually reads as a floating card, not a stray label. */
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.gal-svc-more-item {
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gal-svc-more-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.gal-svc-more-item.active {
  background: rgba(180,170,100,0.12);
  color: var(--gold);
}

/* ── Lightbox ── */
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gal-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.gal-lightbox-close:hover { background: rgba(255,255,255,0.15); }

.gal-lightbox-inner {
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal-lightbox-media {
  max-width: 100%;
  max-height: 94vh;
  border-radius: 6px;
  object-fit: contain;
}

/* ── Pagination ── */
.gal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 64px;
}

.gal-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.gal-page-btn:hover:not(:disabled) {
  border-color: rgba(180,185,200,0.4);
  color: var(--white);
}

.gal-page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
}

.gal-page-btn--arrow {
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
}

.gal-page-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .gallery-page { padding: 110px 40px 70px; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .gallery-page { padding: 100px 24px 60px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-title { font-size: clamp(30px, 7vw, 48px); }
}

@media (max-width: 500px) {
  .gallery-page { padding: 90px 16px 48px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-type-btn { font-size: 11px; padding: 8px 14px; }
  .gal-svc-btn { font-size: 10px; padding: 6px 13px; }
  .gal-header { margin-bottom: 36px; }
  .gal-sub { font-size: 13px; }

  /* Full-bleed on phones — same photos also run as Instagram posts,
     which render edge-to-edge with zero side margin, so our preview
     needs to match that (not look smaller/more cropped-in than the
     Instagram version of the same shot). Padding drops to 0 and the
     image is allowed to fill the entire viewport instead of stopping
     short at 96vw/94vh. */
  .gal-lightbox { padding: 0; }
  .gal-lightbox-inner { max-width: 100vw; max-height: 100vh; }
  .gal-lightbox-media { max-width: 100vw; max-height: 100vh; border-radius: 0; }
}
/* ════ FOOTER ════ */
.footer {
  background-color: #0e0f14;
  background-image: radial-gradient(60% 40% at 50% 0%, rgba(180,185,200,0.04) 0%, transparent 60%);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 80px 60px 40px;
}

/* ── Top ── */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Brand */
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.footer-logo-top {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-logo-main {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.3px;
}
.footer-logo-sub {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.32);
  line-height: 1.7;
  margin: 0 0 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.footer-social svg { width: 15px; height: 15px; }
.footer-social:hover {
  border-color: rgba(180,185,200,0.3);
  color: var(--gold);
  background: rgba(180,185,200,0.06);
}

/* Columns */
.footer-col {}
.footer-col-title {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li {
  list-style: none;
}
.footer-links a,
.footer-links a:visited {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-links a:hover { color: var(--gold); }

/* Contact column */
.footer-links--contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.45);
}
.footer-links--contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  opacity: 0.6;
}
.footer-links--contact span {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

/* ── Divider ── */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 28px;
}

/* ── Bottom ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.18);
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-inner { padding: 60px 40px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { padding: 48px 20px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
