/* =====================================================
   ZARC ARCHITECTS — GALLERY PAGE STYLES (v3)
   6-section service gallery · sticky side nav · polish
   ===================================================== */


/* ── Active page nav highlight ── */
.active-page {
  color: var(--col-white) !important;
}
.active-page::after {
  transform: scaleX(1) !important;
}


/* ══════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(255,255,255,0.6);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}


/* ══════════════════════════════════════
   HERO REVEAL ANIMATIONS
   ══════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 0.75s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════
   GALLERY HERO
   ══════════════════════════════════════ */
.gallery-hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 0 5.5rem;
  background: var(--col-bg-dark);
  overflow: hidden;
}

/* Blueprint canvas background */
.gallery-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

/* Subtle grid overlay */
.gallery-hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.025) 80px, rgba(255,255,255,0.025) 81px),
    repeating-linear-gradient(0deg,  transparent, transparent 80px, rgba(255,255,255,0.025) 80px, rgba(255,255,255,0.025) 81px);
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.gallery-hero-title {
  font-family: var(--ff-cond);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--col-white);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.gallery-hero-title-accent {
  color: rgba(255,255,255,0.18);
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
}

.gallery-hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--col-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.75rem;
}

/* Decorative corner marks on hero */
.hero-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(255,255,255,0.12);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
}
.hero-corner--tl { top: calc(var(--nav-h) + 1.5rem); left: var(--container-pad); border-width: 1px 0 0 1px; }
.hero-corner--br { bottom: 1.5rem; right: var(--container-pad); border-width: 0 1px 1px 0; }


/* ── Hero jump nav pills ── */
.gallery-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-cond);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--col-muted);
  border: 1px solid var(--col-border);
  padding: 0.5rem 1.1rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
  background: transparent;
}
.jump-pill i { font-size: 0.65rem; }
.jump-pill:hover {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
.jump-pill--active {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}


/* ══════════════════════════════════════
   STICKY SIDE NAV (desktop only)
   ══════════════════════════════════════ */
.gallery-service-nav {
  position: fixed;
  left: clamp(0.75rem, 1.5vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Vertical track line */
.gsn-track {
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.1);
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  margin: auto;
  overflow: hidden;
}
.gsn-progress-line {
  width: 100%;
  background: rgba(255,255,255,0.5);
  height: 0%;
  transition: height 0.4s ease;
  transform-origin: top;
}

.gallery-service-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gsn-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.gsn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gsn-num {
  font-family: var(--ff-cond);
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  line-height: 1;
}

.gsn-label {
  font-family: var(--ff-cond);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  transform: translateX(-6px);
  opacity: 0;
}

/* Active state */
.gsn-link.active .gsn-dot {
  background: var(--col-white);
  transform: scale(1.6);
}
.gsn-link.active .gsn-num,
.gsn-link.active .gsn-label {
  color: var(--col-white);
}
.gsn-link.active .gsn-label {
  opacity: 1;
  transform: translateX(0);
}

/* Hover state */
.gsn-link:hover .gsn-dot { background: rgba(255,255,255,0.5); }
.gsn-link:hover .gsn-num  { color: rgba(255,255,255,0.55); }
.gsn-link:hover .gsn-label {
  color: rgba(255,255,255,0.55);
  opacity: 1;
  transform: translateX(0);
}


/* ══════════════════════════════════════
   GALLERY BODY WRAPPER
   ══════════════════════════════════════ */
.gallery-body {
  background: var(--col-bg-dark);
}


/* ══════════════════════════════════════
   SCROLL REVEAL — section-visible
   ══════════════════════════════════════ */
.gallery-service-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-service-section.section-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════
   SERVICE SECTION
   ══════════════════════════════════════ */
.gallery-service-section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--col-border);
  position: relative;
  overflow: hidden;
}
.gallery-service-section:last-child {
  border-bottom: none;
}

/* Alternating subtle background */
.gallery-service-section:nth-child(even) {
  background: var(--col-bg-darker);
}

/* Large ghost number watermark */
.gss-bg-number {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-cond);
  font-size: clamp(10rem, 22vw, 18rem);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}


/* ── Section Header ── */
.gss-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--col-border);
}

.gss-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.gss-num {
  font-family: var(--ff-cond);
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  flex-shrink: 0;
  user-select: none;
  letter-spacing: -0.03em;
  transition: color 0.5s ease;
}
.gallery-service-section.section-visible .gss-num {
  color: rgba(255,255,255,0.1);
}

.gss-title-wrap .section-label {
  margin-bottom: 0.4rem;
}

.gss-title {
  font-family: var(--ff-cond);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--col-white);
  line-height: 1.05;
}

.gss-header-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.gss-icon-wrap {
  width: 56px;
  height: 56px;
  border: 1px solid var(--col-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.gallery-service-section.section-visible .gss-icon-wrap {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}

.gss-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--col-muted);
  line-height: 1.85;
  max-width: 480px;
}

.gss-author {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-cond);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  border-left: 2px solid rgba(255,255,255,0.12);
  padding-left: 0.75rem;
}
.gss-author i { font-size: 0.58rem; opacity: 0.6; }
.gss-author strong {
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}


/* ══════════════════════════════════════
   ENHANCED EMPTY STATE
   ══════════════════════════════════════ */
.gss-empty {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Ghost project card placeholders */
.gss-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  position: relative;
}

.geg-item {
  background: rgba(255,255,255,0.015);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.geg-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 40%,
    rgba(255,255,255,0.02) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: shimmerSweep 3s ease-in-out infinite;
}
.geg-item:nth-child(2) .geg-item::after { animation-delay: 0.5s; }
.geg-item:nth-child(3) .geg-item::after { animation-delay: 1s; }

@keyframes shimmerSweep {
  0%   { background-position: 200% 200%; }
  50%  { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* Content overlay on ghost cards */
.gss-empty-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2rem;
  background: rgba(40,40,40,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gss-empty-icon {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.1);
  animation: emptyIconFloat 4s ease-in-out infinite;
  display: block;
}
@keyframes emptyIconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.gss-empty-title {
  font-family: var(--ff-cond);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.gss-empty-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  max-width: 380px;
  line-height: 1.75;
}


/* ══════════════════════════════════════
   PROJECT GRID (when projects are added)
   ══════════════════════════════════════ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--col-border);
  border: 1px solid var(--col-border);
}

/* ── Card stagger reveal ── */
.pg-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.23,1,0.32,1),
              transform 0.55s cubic-bezier(0.23,1,0.32,1),
              border-color 0.3s ease;
}
.pg-item.pg-item--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card base ── */
.pg-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--col-bg-darker);
  border: 1px solid transparent;
  outline: none;
}
.pg-item:hover,
.pg-item:focus-visible {
  border-color: rgba(255,255,255,0.18);
  z-index: 1;
}

/* ── Card image area ── */
.pg-img-wrap {
  overflow: hidden;
  height: 240px;
  position: relative;
}
.pg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-item:hover .pg-img,
.pg-item:focus-visible .pg-img { transform: scale(1.04); }

/* ── Blueprint-style card backgrounds ── */
.pg-img--blueprint {
  background-color: #1e2a3a;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(100,160,220,0.08) 30px, rgba(100,160,220,0.08) 31px),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(100,160,220,0.08) 30px, rgba(100,160,220,0.08) 31px);
}
.pg-img--sauna {
  background: linear-gradient(135deg, #1a1f2e 0%, #2a3448 50%, #1e2a3a 100%);
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(100,160,220,0.06) 20px, rgba(100,160,220,0.06) 21px),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(100,160,220,0.06) 20px, rgba(100,160,220,0.06) 21px);
}
.pg-img--bar {
  background: linear-gradient(135deg, #2a1a1a 0%, #3d2020 50%, #2a1515 100%);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(200,100,80,0.07) 25px, rgba(200,100,80,0.07) 26px),
    repeating-linear-gradient(90deg, transparent, transparent 25px, rgba(200,100,80,0.07) 25px, rgba(200,100,80,0.07) 26px);
}
.pg-img--uzbek {
  background: linear-gradient(135deg, #1a2a1a 0%, #203828 50%, #162414 100%);
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 22px, rgba(80,180,120,0.07) 22px, rgba(80,180,120,0.07) 23px),
    repeating-linear-gradient(-60deg, transparent, transparent 22px, rgba(80,180,120,0.07) 22px, rgba(80,180,120,0.07) 23px);
}
.pg-img--office {
  background: linear-gradient(135deg, #1a1a2a 0%, #22224a 50%, #1a1a38 100%);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(120,120,220,0.08) 28px, rgba(120,120,220,0.08) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(120,120,220,0.08) 28px, rgba(120,120,220,0.08) 29px);
}

/* Blueprint icon inside card image */
.pg-blueprint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(100,160,220,0.35);
  pointer-events: none;
}
.pg-blueprint-inner i { font-size: 2.5rem; }
.pg-blueprint-inner span {
  font-family: var(--ff-cond);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(100,160,220,0.4);
}

/* Large overlay text on drawing set cards */
.pg-img-overlay-text {
  font-family: var(--ff-cond);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.07);
  text-align: center;
  line-height: 1;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  user-select: none;
}

/* ── Gradient overlay on hover ── */
.pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pg-item:hover .pg-overlay,
.pg-item:focus-visible .pg-overlay { opacity: 1; }

/* ── Sheet count badge ── */
.pg-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--ff-cond);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--col-white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Hover CTA overlay ── */
.pg-hover-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.1rem;
  font-family: var(--ff-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.pg-hover-cta i { font-size: 0.6rem; }
.pg-item:hover .pg-hover-cta,
.pg-item:focus-visible .pg-hover-cta { opacity: 1; transform: translateY(0); }

/* ── Card info area ── */
.pg-info {
  padding: 1rem 1.1rem 1rem;
  border-top: 1px solid var(--col-border);
}
.pg-type {
  font-family: var(--ff-cond);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--col-muted);
  display: block;
  margin-bottom: 0.3rem;
}
.pg-name {
  font-family: var(--ff-cond);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--col-white);
  line-height: 1.25;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.pg-item:hover .pg-name { color: rgba(255,255,255,0.85); }

.pg-loc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--col-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.pg-loc i { font-size: 0.6rem; opacity: 0.6; }

/* Sheet tags inside card */
.pg-sheets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.pg-sheet-tag {
  font-family: var(--ff-cond);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.55rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.pg-item:hover .pg-sheet-tag {
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.2);
}


/* ══════════════════════════════════════
   PROJECT LIGHTBOX
   ══════════════════════════════════════ */
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}
.pg-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.pg-lightbox[hidden] { display: none !important; }

.pg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.pg-lightbox-panel {
  position: relative;
  z-index: 1;
  background: var(--col-bg-darker);
  border: 1px solid rgba(255,255,255,0.12);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.pg-lightbox.open .pg-lightbox-panel {
  transform: translateY(0) scale(1);
}

.pg-lightbox-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--col-border);
  color: var(--col-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
  z-index: 10;
  margin: 0.75rem 0.75rem 0 auto;
}
.pg-lightbox-close:hover { background: rgba(255,255,255,0.12); color: var(--col-white); }

/* ── Panel header ── */
.pgl-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0 1.75rem 1.5rem;
  border-bottom: 1px solid var(--col-border);
  margin-top: -2rem; /* pull up under close btn */
  padding-top: 0.5rem;
}

.pgl-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--col-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.pgl-header-text { flex: 1; min-width: 0; }

.pgl-service {
  font-family: var(--ff-cond);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--col-muted);
  margin-bottom: 0.3rem;
}

.pgl-title {
  font-family: var(--ff-cond);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--col-white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.pgl-location {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--col-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pgl-location i { font-size: 0.65rem; opacity: 0.6; }

/* ── Meta row ── */
.pgl-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--col-border);
}

.pgl-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.75rem;
  border-right: 1px solid var(--col-border);
  border-bottom: 1px solid var(--col-border);
}
.pgl-meta-item:nth-child(even) { border-right: none; }
.pgl-meta-item:nth-last-child(-n+2) { border-bottom: none; }
.pgl-meta-item i {
  font-size: 0.65rem;
  color: var(--col-muted);
  margin-bottom: 0.1rem;
}
.pgl-meta-label {
  font-family: var(--ff-cond);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-muted);
}
.pgl-meta-value {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--col-white);
}

/* ── Body content ── */
.pgl-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pgl-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
}

/* ── Sheet list ── */
.pgl-sheets-title {
  font-family: var(--ff-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-muted);
  margin-bottom: 0.85rem;
}

.pgl-sheets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.pgl-sheet-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.pgl-sheet-item:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.15); }
.pgl-sheet-item i { font-size: 0.6rem; color: var(--col-muted); flex-shrink: 0; }

/* ── Tags ── */
.pgl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--col-border);
}

.pgl-tag {
  font-family: var(--ff-cond);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--col-muted);
  border: 1px solid var(--col-border);
  padding: 0.28rem 0.7rem;
}

/* ── Actions ── */
.pgl-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--col-border);
}
.pgl-actions .btn { flex: 1; min-width: 180px; justify-content: center; display: inline-flex; align-items: center; gap: 0.5rem; }
.pgl-actions .btn i { font-size: 0.8rem; }


/* ══════════════════════════════════════
   RENDER FILTER BAR
   ══════════════════════════════════════ */
.render-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.render-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--col-muted);
  border: 1px solid var(--col-border);
  background: transparent;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, transform 0.2s ease;
}
.render-filter-btn i { font-size: 0.62rem; }
.render-filter-btn:hover {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.render-filter-btn.active {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
}

.render-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.render-count {
  font-family: var(--ff-cond);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0;
}

.render-page-info {
  font-family: var(--ff-cond);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}


/* ══════════════════════════════════════
   RENDER PAGINATION
   ══════════════════════════════════════ */
.render-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--col-border);
}

.rpg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--col-border);
  background: transparent;
  color: var(--col-muted);
  cursor: pointer;
  font-size: 0.7rem;
  transition: color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, transform 0.2s ease;
}
.rpg-btn:hover:not(:disabled) {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
.rpg-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.rpg-pages {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rpg-dot {
  width: 34px;
  height: 34px;
  border: 1px solid var(--col-border);
  background: transparent;
  color: var(--col-muted);
  font-family: var(--ff-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, transform 0.2s ease;
}
.rpg-dot:hover {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.rpg-dot.active {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}


/* ══════════════════════════════════════
   RENDER GRID
   ══════════════════════════════════════ */
.render-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--col-border);
  border: 1px solid var(--col-border);
}

/* Wide card spans 2 columns */
.rg-item--wide {
  grid-column: span 2;
}

/* ── Card base ── */
.rg-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--col-bg-darker);
  border: 1px solid transparent;
  outline: none;
  /* reveal animation */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.23,1,0.32,1),
              transform 0.5s cubic-bezier(0.23,1,0.32,1),
              border-color 0.3s ease;
}
.rg-item.rg-item--visible {
  opacity: 1;
  transform: translateY(0);
}
.rg-item.rg-item--hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.rg-item:hover,
.rg-item:focus-visible {
  border-color: rgba(255,255,255,0.2);
  z-index: 2;
}

/* ── Image wrap ── */
.rg-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
}
.rg-item--wide .rg-img-wrap {
  height: 340px;
}

.rg-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.23,1,0.32,1);
  filter: brightness(0.9);
}
.rg-item:hover .rg-img-wrap img,
.rg-item:focus-visible .rg-img-wrap img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* ── Hover overlay ── */
.rg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.2) 50%,
    transparent 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}
.rg-item:hover .rg-overlay,
.rg-item:focus-visible .rg-overlay { opacity: 1; }

.rg-overlay-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--col-white);
  font-size: 0.85rem;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.rg-item:hover .rg-overlay-icon { transform: scale(1); }

/* ── Card info strip ── */
.rg-info {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--col-border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rg-type-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-cond);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid;
  width: fit-content;
}
.rg-type-badge--interior {
  color: rgba(200,170,110,0.9);
  border-color: rgba(200,170,110,0.3);
  background: rgba(200,170,110,0.06);
}
.rg-type-badge--exterior {
  color: rgba(100,180,140,0.9);
  border-color: rgba(100,180,140,0.3);
  background: rgba(100,180,140,0.06);
}

.rg-name {
  font-family: var(--ff-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--col-white);
  line-height: 1.2;
  transition: color 0.3s ease;
}
.rg-item:hover .rg-name { color: rgba(255,255,255,0.8); }

.rg-meta {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--col-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rg-meta i { font-size: 0.58rem; opacity: 0.5; }


/* ══════════════════════════════════════
   RENDER LIGHTBOX
   ══════════════════════════════════════ */
.render-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.36s ease;
  pointer-events: none;
}
.render-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.render-lightbox[hidden] { display: none !important; }

.render-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.render-lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.36s cubic-bezier(0.23,1,0.32,1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.render-lightbox.open .render-lightbox-panel {
  transform: translateY(0) scale(1);
}

.render-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.render-lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--col-white);
}

.render-lightbox-img-wrap {
  width: 100%;
  max-height: 82vh;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.render-lightbox-img-wrap img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}

/* ── Prev / Next navigation arrows ── */
.rlb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}
.rlb-nav--prev { left: 0.75rem; }
.rlb-nav--next { right: 0.75rem; }
.rlb-nav:hover {
  background: rgba(0,0,0,0.8);
  color: var(--col-white);
  border-color: rgba(255,255,255,0.35);
}
.rlb-nav:active { transform: translateY(-50%) scale(0.94); }
.rlb-nav:disabled {
  opacity: 0.18;
  cursor: not-allowed;
}

.render-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}

.rlb-caption-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rlb-counter {
  font-family: var(--ff-cond);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Suggestions strip ── */
.rlb-suggestions {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  padding: 0.85rem 1rem 1rem;
}

.rlb-suggestions-label {
  font-family: var(--ff-cond);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 0.65rem;
}

.rlb-suggestions-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.rlb-sug-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.rlb-sug-thumb:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  z-index: 2;
}
.rlb-sug-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.75);
}
.rlb-sug-thumb:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}
.rlb-sug-thumb .rlb-sug-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.4rem 0.3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-family: var(--ff-cond);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rlb-sug-thumb:hover .rlb-sug-label { opacity: 1; }

/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  .rlb-nav { width: 36px; height: 36px; font-size: 0.75rem; }
  .rlb-nav--prev { left: 0.4rem; }
  .rlb-nav--next { right: 0.4rem; }
  .rlb-suggestions-strip { grid-template-columns: repeat(3, 1fr); }
  .rlb-suggestions-strip .rlb-sug-thumb:last-child { display: none; }
}

.render-lightbox-badge {
  font-family: var(--ff-cond);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid;
  flex-shrink: 0;
}
.render-lightbox-badge--interior {
  color: rgba(200,170,110,0.9);
  border-color: rgba(200,170,110,0.35);
}
.render-lightbox-badge--exterior {
  color: rgba(100,180,140,0.9);
  border-color: rgba(100,180,140,0.35);
}

#render-lightbox-caption-text {
  font-family: var(--ff-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}


/* ══════════════════════════════════════
   RENDER GRID RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .render-grid { grid-template-columns: repeat(2, 1fr); }
  .rg-item--wide { grid-column: span 2; }
  .rg-img-wrap { height: 220px; }
  .rg-item--wide .rg-img-wrap { height: 270px; }
}
@media (max-width: 600px) {
  .render-grid { grid-template-columns: 1fr; }
  .rg-item--wide { grid-column: span 1; }
  .rg-img-wrap,
  .rg-item--wide .rg-img-wrap { height: 230px; }
  .render-lightbox { padding: 0; align-items: flex-end; }
  .render-lightbox-panel { max-height: 95vh; }
  .render-lightbox-img-wrap { max-height: 75vh; }
  .render-lightbox-img-wrap img { max-height: 75vh; }
  .render-lightbox-close { top: 0; right: 0; position: fixed; }
}


/* ══════════════════════════════════════
   PDF PREVIEW MODAL
   ══════════════════════════════════════ */
.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pdf-preview-modal.open { opacity: 1; }
.pdf-preview-modal[hidden] { display: none !important; }

.pdf-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pdf-preview-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #111;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.pdf-preview-modal.open .pdf-preview-panel {
  transform: translateY(0);
}

/* ── Header bar ── */
.pdf-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #0d0d0d;
  flex-shrink: 0;
}
.pdf-preview-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--col-white);
}
.pdf-preview-title-wrap i {
  color: rgba(200,100,80,0.85);
  font-size: 1rem;
}
.pdf-preview-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Small button variant ── */
.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.65rem;
}

/* ── Close button ── */
.pdf-preview-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pdf-preview-close:hover {
  color: var(--col-white);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

/* ── Body / iframe ── */
.pdf-preview-body {
  position: relative;
  flex: 1;
  min-height: 0;
}
#pdf-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #1a1a1a;
}

/* ── Loading indicator ── */
.pdf-loading-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--ff-cond);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pdf-loading-indicator.hidden { opacity: 0; }

.pdf-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer note ── */
.pdf-preview-footer {
  padding: 0.6rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0d0d0d;
  flex-shrink: 0;
}
.pdf-preview-note {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pdf-preview-note i { opacity: 0.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .pdf-preview-header { padding: 0.75rem 1rem; flex-wrap: wrap; }
  .pdf-preview-footer { display: none; }
  .btn--sm { padding: 0.4rem 0.75rem; font-size: 0.6rem; }
}


/* ══════════════════════════════════════
   VIDEO GRID
   ══════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--col-border);
  border: 1px solid var(--col-border);
}

/* Card base */
.vg-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--col-bg-darker);
  border: 1px solid transparent;
  outline: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.23,1,0.32,1),
              transform 0.55s cubic-bezier(0.23,1,0.32,1),
              border-color 0.3s ease;
}
.vg-item.pg-item--visible {
  opacity: 1;
  transform: translateY(0);
}
.vg-item:hover,
.vg-item:focus-visible {
  border-color: rgba(255,255,255,0.18);
  z-index: 1;
}

/* Featured: span full width */
.vg-item--featured {
  grid-column: 1 / -1;
}

/* Thumbnail area */
.vg-thumb-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
}
.vg-item--featured .vg-thumb-wrap {
  height: 400px;
}

/* Video thumbnail element — fills the wrap, acts as poster + hover player */
.vg-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #111;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.4s ease;
  pointer-events: none;
  filter: brightness(0.82);
}
/* Hover: scale up */
.vg-item:hover .vg-thumb-video,
.vg-item:focus-visible .vg-thumb-video {
  transform: scale(1.04);
}
/* Playing state: full brightness */
.vg-thumb-video--playing {
  filter: brightness(1) !important;
}

/* Dark gradient overlay sitting above the video poster */
.vg-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
/* Lighten overlay when video is actively playing */
.vg-item:has(.vg-thumb-video--playing) .vg-thumb-wrap::after {
  opacity: 0.5;
}
/* Hide play button while video is playing — driven by JS class */
.vg-play-btn--hidden {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.75) !important;
  pointer-events: none;
}

/* Play button */
.vg-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--col-white);
  font-size: 1rem;
  opacity: 0.75;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
              opacity 0.35s ease,
              background 0.3s ease,
              border-color 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.vg-play-btn i { margin-left: 3px; }

.vg-play-btn--lg {
  width: 76px;
  height: 76px;
  font-size: 1.4rem;
}

.vg-item:hover .vg-play-btn,
.vg-item:focus-visible .vg-play-btn {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.65);
}

/* Duration / type badge */
.vg-duration-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--ff-cond);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.28rem 0.65rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
}

/* Featured label */
.vg-featured-label {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--ff-cond);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.28rem 0.65rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
}

/* Info strip */
.vg-info {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--col-border);
}

/* Film reel icon top-left overlay on hover */
.vg-item::after {
  content: '\f008'; /* fa-film unicode */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 5.5rem;
  left: 1.1rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.vg-item:hover::after,
.vg-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   VIDEO LIGHTBOX
   ══════════════════════════════════════ */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}
.video-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.video-lightbox[hidden] { display: none !important; }

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-lightbox-panel {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 960px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1);
  display: flex;
  flex-direction: column;
}
.video-lightbox.open .video-lightbox-panel {
  transform: translateY(0) scale(1);
}

/* Header bar */
.video-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 1rem;
}

.video-lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.video-lightbox-title-wrap i { font-size: 0.65rem; }
#video-lightbox-title { color: rgba(255,255,255,0.75); }

.video-lightbox-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.video-lightbox-close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--col-white);
  border-color: rgba(255,255,255,0.3);
}

/* Video element */
.video-lightbox-body {
  position: relative;
  width: 100%;
  background: #000;
  line-height: 0;
}
.video-lightbox-body video {
  width: 100%;
  max-height: 75vh;
  display: block;
  outline: none;
}

/* ══════════════════════════════════════
   VIDEO GRID RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
  .vg-item--featured { grid-column: 1 / -1; }
  .vg-thumb-wrap { height: 210px; }
  .vg-item--featured .vg-thumb-wrap { height: 260px; }
  .video-lightbox { padding: 0; align-items: flex-end; }
  .video-lightbox-panel { max-height: 90vh; border-radius: 0; }
  .video-lightbox-body video { max-height: 60vh; }
}

@media (max-width: 480px) {
  .vg-thumb-wrap { height: 180px; }
  .vg-item--featured .vg-thumb-wrap { height: 220px; }
}

/* ══════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════ */
.gallery-cta-strip {
  background: var(--col-bg-darker);
  border-top: 1px solid var(--col-border);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.gallery-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px),
    repeating-linear-gradient(0deg,  transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
  pointer-events: none;
}

.gallery-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.gallery-cta-title {
  font-family: var(--ff-cond);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--col-white);
  margin-bottom: 0.5rem;
}

.gallery-cta-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--col-muted);
  margin-top: 0.3rem;
}

/* Large button variant */
.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-lg i { transition: transform 0.3s ease; }
.btn-lg:hover i { transform: translateX(4px); }


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* ── Large desktop: show side nav ── */
@media (min-width: 1201px) {
  .gallery-service-nav { display: flex; }
}

/* ── Tablet landscape (≤1200px) — hide side nav ── */
@media (max-width: 1200px) {
  .gallery-service-nav { display: none; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {
  .gallery-hero { padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem; }
  .gallery-hero-title { font-size: clamp(2.4rem, 8vw, 4.5rem); }

  .gss-header {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }
  .gss-header-right { flex-direction: row; align-items: flex-start; gap: 1.25rem; }

  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .gss-empty-grid { grid-template-columns: repeat(2, 1fr); }
  .geg-item:last-child { display: none; }

  .gallery-cta-inner { gap: 1.75rem; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  .gallery-hero { padding: calc(68px + 2.5rem) 0 2.5rem; }
  .gallery-hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .gallery-hero-sub { font-size: 0.9rem; margin-bottom: 2rem; }

  /* Jump pills — scrollable row */
  .gallery-jump-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .gallery-jump-nav::-webkit-scrollbar { display: none; }
  .jump-pill { flex-shrink: 0; font-size: 0.62rem; padding: 0.42rem 0.85rem; }

  /* Section */
  .gallery-service-section { padding: 3.5rem 0; }
  .gss-header { gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.75rem; }
  .gss-header-left { gap: 1rem; }
  .gss-num { font-size: clamp(3rem, 12vw, 5rem); }
  .gss-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .gss-desc { font-size: 0.875rem; }
  .gss-header-right { flex-direction: column; gap: 1rem; }

  /* Ghost grid */
  .gss-empty-grid { grid-template-columns: 1fr 1fr; }
  .geg-item { aspect-ratio: 3 / 2; }

  /* Project grid */
  .project-grid { grid-template-columns: 1fr 1fr; }
  .pg-img-wrap { height: 160px; }

  /* CTA */
  .gallery-cta-strip { padding: 3.5rem 0; }
  .gallery-cta-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .gallery-cta-inner .btn { width: 100%; justify-content: center; }

  .gss-bg-number { font-size: clamp(8rem, 30vw, 14rem); }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .gallery-hero-title { font-size: clamp(2rem, 12vw, 3rem); }
  .jump-pill { font-size: 0.58rem; padding: 0.38rem 0.65rem; }

  .gss-empty-grid { grid-template-columns: 1fr; }
  .geg-item { aspect-ratio: 16 / 7; }
  .geg-item:not(:first-child) { display: none; }

  .project-grid { grid-template-columns: 1fr; }
  .pg-img-wrap { height: 200px; }

  .hero-corner { display: none; }

  /* Lightbox small screen */
  .pg-lightbox { padding: 0; align-items: flex-end; }
  .pg-lightbox-panel { max-height: 95vh; border-radius: 0; }
  .pgl-meta { grid-template-columns: 1fr 1fr; }
  .pgl-sheets-grid { grid-template-columns: 1fr; }
  .pgl-actions { flex-direction: column; }
  .pgl-actions .btn { min-width: unset; }
}

/* ── Lightbox responsive — tablet ── */
@media (max-width: 768px) {
  .pg-lightbox-panel { max-width: 100%; margin: 0 0.5rem; }
  .pgl-header { padding: 0 1.25rem 1.25rem; }
  .pgl-meta-item { padding: 0.85rem 1.25rem; }
  .pgl-body { padding: 1.25rem; gap: 1.25rem; }
  .pgl-sheets-grid { grid-template-columns: 1fr; }
  .pgl-meta { grid-template-columns: 1fr 1fr; }
}
