/* ═══════════════════════════════════════════════════════════════════════════
   George's Concrete — Main Stylesheet
   Color palette: Crimson #DC143C · Dark #1a1a2e · Text #333 · Light #f8f9fa
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson:    #DC143C;
  --crimson-d:  #b01030;
  --crimson-l:  #ff2a52;
  --dark:       #1a1a2e;
  --dark-med:   #2d2d44;
  --text:       #333333;
  --text-muted: #666;
  --light:      #f8f9fa;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --radius:     10px;
  --radius-lg:  16px;
  --nav-h:      72px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--crimson-d); }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--dark); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}
.btn-primary:hover {
  background: var(--crimson-d);
  border-color: var(--crimson-d);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(220,20,60,.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--crimson);
  border-color: var(--crimson);
}
.btn-outline:hover {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(220,20,60,.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--light); color: var(--text); }
.btn-back {
  background: var(--white);
  color: var(--dark);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-back:hover { background: var(--light); color: var(--dark); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-danger { color: #c0392b !important; border-color: #c0392b !important; }
.btn-danger:hover { background: #c0392b !important; color: white !important; }

/* ── Fade-in animation ───────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Section layout ──────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }
.section-label {
  display: inline-block;
  color: var(--crimson);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .6rem;
}
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 2rem;
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
/* Transparent navbar only on pages with a hero section */
body.page-hero #navbar {
  background: transparent;
  color: var(--white);
  box-shadow: none;
}
body.page-hero #navbar.scrolled {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--crimson);
  letter-spacing: -.02em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-link {
  color: inherit;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--crimson); background: rgba(220,20,60,.08); }
.nav-cta {
  background: var(--crimson);
  color: var(--white) !important;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--crimson-d); box-shadow: 0 4px 16px rgba(220,20,60,.35); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  #navbar { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
  body.page-hero #navbar { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
  .nav-hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 2rem 2rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-link {
    display: block;
    padding: 1rem .5rem;
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0;
  }
  .nav-link:hover { color: var(--white); background: transparent; }
  .nav-cta {
    display: block;
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--crimson);
    color: var(--white) !important;
  }
  .nav-cta:hover { background: var(--crimson-d); box-shadow: 0 4px 16px rgba(220,20,60,.4); }
  /* Navbar is always solid white on mobile — spans always dark */
  .nav-hamburger span,
  body.page-hero #navbar .nav-hamburger span,
  body.page-hero #navbar.scrolled .nav-hamburger span { background: var(--dark); }
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: center center / cover no-repeat var(--dark);
  color: var(--white);
  padding-top: var(--nav-h);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,46,.88) 0%, rgba(26,26,46,.6) 40%, rgba(220,20,60,.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 760px;
}
.hero-eyebrow {
  color: var(--crimson-l);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-accent { color: var(--crimson-l); }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); border-color: var(--white); }

/* ════════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════════ */
#services {
  background: var(--dark);
}
#services .section-label { color: var(--crimson); }
#services .section-header h2 { color: var(--white); }
#services .section-header p { color: rgba(255,255,255,.6); }

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  background: var(--dark);
  transition: background var(--transition);
}
.service-item:hover { background: rgba(255,255,255,.04); }
.service-icon-wrap {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(220,20,60,.15);
  border: 1.5px solid rgba(220,20,60,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--crimson);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.service-item:hover .service-icon-wrap {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--white);
}
.service-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .35rem;
}
.service-text p {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin: 0;
  line-height: 1.6;
}

/* Mobile services: compact 2-column icon tiles */
@media (max-width: 640px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }
  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: .75rem;
  }
  .service-text p { display: none; }
  .service-text h3 { font-size: .95rem; }
}

/* ════════════════════════════════════════════════════════════════
   RECENT WORK
   ════════════════════════════════════════════════════════════════ */
#work { background: var(--white); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: var(--light);
}
.work-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.work-item:hover .work-img { transform: scale(1.06); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(220,20,60,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.work-item:hover .work-overlay { opacity: 1; }

@media (max-width: 768px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--crimson); }
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════════ */
#about { background: var(--dark); color: var(--white); }
#about h2, #about .section-label { color: var(--white); }
#about .section-label { color: var(--crimson-l); }
.about-inner { max-width: 800px; }
.about-text p { color: rgba(255,255,255,.8); }
.about-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.5rem; }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.stat-number { display: block; font-size: 2.2rem; font-weight: 800; color: var(--crimson-l); }
.stat-label  { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.about-areas { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════ */
#contact { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(220,20,60,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 .2rem; }
.contact-item a { font-weight: 600; font-size: 1rem; color: var(--dark); }
.contact-item a:hover { color: var(--crimson); }
.contact-item p { color: var(--text); font-size: .95rem; margin: 0; }
.response-promise {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border-left: 3px solid var(--crimson);
  padding: .85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: .5rem;
}
.response-promise i { color: var(--crimson); }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #c0392b;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
label span { color: var(--crimson); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(220,20,60,.1);
}
textarea { resize: vertical; min-height: 120px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
#footer { background: var(--dark); color: rgba(255,255,255,.8); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--crimson-l); display: block; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-contact h4, .footer-areas h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: .6rem;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--crimson-l); }
.footer-areas p { font-size: .9rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 1rem; }
}

/* ════════════════════════════════════════════════════════════════
   THANK YOU PAGE
   ════════════════════════════════════════════════════════════════ */
.thankyou-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
  background: var(--light);
}
.thankyou-card {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.thankyou-icon { font-size: 3.5rem; color: var(--crimson); margin-bottom: 1rem; }
.thankyou-card h1 { font-size: 2rem; margin-bottom: .75rem; }
.thankyou-lead { font-size: 1.05rem; margin-bottom: 1rem; }
.thankyou-phones { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ════════════════════════════════════════════════════════════════
   ERROR PAGE
   ════════════════════════════════════════════════════════════════ */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
}
.error-card { text-align: center; max-width: 480px; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--crimson); line-height: 1; }
.error-card h1 { font-size: 1.75rem; margin: .5rem 0 1rem; }
.error-card p  { color: var(--text-muted); margin-bottom: 2rem; }

/* ════════════════════════════════════════════════════════════════
   GALLERY PAGE
   ════════════════════════════════════════════════════════════════ */
.gallery-page { padding-top: var(--nav-h); background: var(--white); }
.gallery-header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.gallery-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 1rem 0 .5rem; }
.gallery-header p  { color: var(--text-muted); }

/* Tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 0 1.5rem 2rem;
  flex-wrap: wrap;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.tab-btn.active { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.tab-count { opacity: .75; font-weight: 400; font-size: .82rem; }
.tab-panel { padding: 0 1.5rem 4rem; max-width: 1400px; margin: 0 auto; }
.tab-panel.hidden { display: none; }

/* Masonry grid */
.masonry-grid {
  columns: 4;
  column-gap: .75rem;
}
.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: .75rem;
  break-inside: avoid;
  background: var(--light);
  cursor: pointer;
}
.masonry-img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.masonry-item:hover .masonry-img { transform: scale(1.04); }
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(220,20,60,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.masonry-item:hover .masonry-overlay { opacity: 1; }

@media (max-width: 1100px) { .masonry-grid { columns: 3; } }
@media (max-width: 768px)  { .masonry-grid { columns: 2; } }
@media (max-width: 480px)  { .masonry-grid { columns: 1; } }

/* Before & After */
.ba-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}
.ba-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: .3; }
/* Gallery year dividers (public B&A tab) */
.gallery-year-section { margin-bottom: 3rem; }
.gallery-year-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gallery-year-label {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--dark);
  white-space: nowrap;
}
.gallery-year-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.ba-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.ba-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ba-title {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  background: var(--light);
}

/* Completed Work grid */
.completed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 2rem var(--container-pad);
}
.completed-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--light);
}
.completed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.completed-item:hover img { transform: scale(1.05); }
.completed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.completed-item:hover .completed-overlay { background: rgba(0,0,0,.28); }
.completed-overlay i { color: var(--white); font-size: 2rem; opacity: 0; transition: opacity .2s; }
.completed-item:hover .completed-overlay i { opacity: 1; }

/* Project Gallery */
.pg-wrapper { padding: 2rem var(--container-pad) 3rem; }
.pg-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.pg-ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.pg-ba-col {
  position: relative;
}
.pg-ba-col:not(:last-child) { border-right: 2px solid var(--border); }
.pg-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  z-index: 2;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .7rem;
  border-radius: 50px;
}
.pg-badge-before { background: rgba(0,0,0,.6); color: var(--white); }
.pg-badge-after  { background: var(--crimson); color: var(--white); }
.pg-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light);
  cursor: pointer;
}
.pg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.pg-photo:hover img { transform: scale(1.04); }
.pg-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.pg-photo:hover .pg-photo-overlay { background: rgba(0,0,0,.25); }
.pg-photo-overlay i { color: var(--white); font-size: 1.6rem; opacity: 0; transition: opacity .2s; }
.pg-photo:hover .pg-photo-overlay i { opacity: 1; }
.pg-extra {
  border-top: 1px solid var(--border);
  padding: .75rem 1rem;
  background: var(--light);
}
.pg-extra-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
}
.pg-extra-count {
  background: var(--border);
  border-radius: 50px;
  padding: .1rem .5rem;
  font-size: .7rem;
}
.pg-extra-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.pg-extra-scroll::-webkit-scrollbar { display: none; }
.pg-extra-photo {
  flex: 0 0 140px;
  height: 100px;
  aspect-ratio: unset;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .pg-ba-row { grid-template-columns: 1fr; }
  .pg-ba-col:not(:last-child) { border-right: none; border-bottom: 2px solid var(--border); }
}

/* Comparison slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--dark);
}
/* After image: full width, defines the height */
.ba-slider-after {
  display: block;
  position: relative;
}
.ba-slider-after img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.ba-label-after {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 50px;
  color: var(--white);
  background: var(--crimson);
  z-index: 2;
}
/* Before image: absolutely covers the slider, clipped on right */
.ba-slider-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0); /* updated by JS */
  z-index: 2;
}
.ba-slider-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-label-before {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 50px;
  color: var(--white);
  background: rgba(0,0,0,.6);
}
/* Handle */
.ba-slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  cursor: ew-resize;
  width: 68px;
}
.ba-slider-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,.5);
}
.ba-slider-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  font-size: 1.4rem;
}

/* Filmstrip before/after layout */
.ba-strip { padding: 1.25rem 1.5rem; }
.ba-strip-after-row { border-top: 1px solid var(--border); }
.ba-strip-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.ba-strip-badge {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .75rem;
  border-radius: 50px;
}
.ba-strip-before { background: rgba(0,0,0,.07); color: var(--text-muted); }
.ba-strip-after  { background: rgba(220,20,60,.12); color: var(--crimson); }
.ba-strip-count  { font-size: .8rem; color: var(--text-muted); }
.ba-strip-scroll {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.ba-strip-scroll::-webkit-scrollbar { display: none; }
.ba-strip-photo {
  flex-shrink: 0;
  width: 220px;
  height: 165px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ba-strip-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
  pointer-events: none;
}
.ba-strip-photo:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .ba-strip { padding: 1rem; }
  .ba-strip-photo { width: 150px; height: 115px; }
  .ba-strip-scroll { gap: .5rem; }
}

/* ════════════════════════════════════════════════════════════════
   ADMIN — LOGIN
   ════════════════════════════════════════════════════════════════ */
.admin-body {
  background: var(--light);
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}
.admin-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}
.admin-login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--crimson);
  margin-bottom: 1.5rem;
}
.admin-login-logo i { font-size: 1.25rem; }
.admin-login-card h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.admin-login-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.admin-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #c0392b;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 1rem;
  text-align: left;
}
.admin-login-form .form-group { text-align: left; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  right: .75rem; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}
.admin-back-link { display: block; margin-top: 1.25rem; font-size: .85rem; color: var(--text-muted); }
.admin-back-link:hover { color: var(--crimson); }

/* ════════════════════════════════════════════════════════════════
   ADMIN — DASHBOARD
   ════════════════════════════════════════════════════════════════ */
.admin-dashboard-body { background: #f0f2f5; }

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.admin-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.admin-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; color: var(--white); }
.admin-brand i { color: var(--crimson); font-size: 1.1rem; }
.admin-brand-tag {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(220,20,60,.25);
  color: #ff8fa3;
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-left: .2rem;
}
.admin-header-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.admin-btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 3px;
}
.admin-btn-group .btn {
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.admin-btn-backup {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  transition: background .15s;
}
.admin-btn-backup:hover { background: rgba(255,255,255,.2); color: var(--white); }
.admin-btn-save {
  background: var(--crimson);
  color: var(--white);
  transition: background .15s;
}
.admin-btn-save:hover { background: var(--crimson-d); }
.admin-btn-view {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .15s;
}
.admin-btn-view:hover { background: rgba(255,255,255,.2); color: var(--white); }
.admin-btn-logout {
  background: transparent;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.admin-btn-logout:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }

.save-status { font-size: .85rem; font-weight: 500; }
.save-ok  { color: #4ade80; }
.save-err { color: #f87171; }

/* project-actions row: Save Project + New Project under Before column */
.project-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.admin-toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
}
.admin-toolbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.toolbar-info { font-size: .82rem; color: var(--text-muted); margin-left: auto; }
.toolbar-divider { width: 1px; height: 24px; background: var(--border); margin: 0 .2rem; }

/* ── Suggested Projects Panel ──────────────────────────────────────── */
.sug-panel {
  background: var(--white);
  border: 2px solid var(--crimson);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.sug-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: #fff5f7;
  border-bottom: 1px solid #fcd4dc;
  flex-wrap: wrap;
}
.sug-panel-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sug-panel-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.sug-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sug-card {
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.25rem;
}
.sug-card:last-child { border-bottom: none; }
.sug-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.sug-card-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.sug-card-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.sug-thumbs-scroll {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.sug-thumb {
  position: relative;
  width: 130px;
  flex-shrink: 0;
}
.sug-thumb img {
  width: 130px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.sug-thumb img:hover { opacity: .88; transform: scale(1.02); }
.sug-thumb-id {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}
.sug-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s;
  z-index: 2;
}
.sug-thumb:hover .sug-thumb-remove { opacity: 1; }
.sug-thumb-remove:hover { background: var(--crimson); }
.sug-role-btns {
  display: flex;
  gap: 2px;
  margin-top: 5px;
}
.sug-role-btn {
  flex: 1;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background .1s, border-color .1s, color .1s;
  line-height: 1;
}
.sug-role-btn:hover { background: #f0f0f0; }
.sug-active-before { background: #dbeafe; border-color: #2563eb; color: #2563eb; }
.sug-active-after  { background: #dcfce7; border-color: #16a34a; color: #16a34a; }
.sug-active-extra  { background: #f5f5f5; border-color: #aaa;    color: #555; }

.admin-main {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-section-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--light);
}
.admin-section-header h2 { font-size: 1rem; display: flex; align-items: center; gap: .6rem; }
.admin-section-header p  { font-size: .85rem; color: var(--text-muted); margin: .25rem 0 0; }
.admin-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-section-info { flex: 1; min-width: 0; }
.admin-section-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.link-btn { background: none; border: none; color: var(--crimson); font-size: .85rem; cursor: pointer; padding: 0; text-decoration: underline; }
.badge {
  background: var(--crimson);
  color: var(--white);
  font-size: .7rem;
  padding: .1rem .5rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ── Photo thumbnails ──────────────────────────────────────────────────────── */
.photo-pool {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  min-height: 80px;
}
.pool-empty  { color: var(--text-muted); font-size: .9rem; padding: 1rem; grid-column: 1/-1; }
.zone-empty  { color: var(--text-muted); font-size: .82rem; font-style: italic; padding: .5rem 0; }

.thumb-item {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light);
  border: 2px solid transparent;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.thumb-item:hover { border-color: var(--crimson); }
.thumb-item > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.thumb-id {
  position: absolute;
  top: 3px; left: 3px;
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: .6rem;
  padding: .1rem .35rem;
  border-radius: 4px;
  pointer-events: none;
}

/* Rotate / Delete buttons — top-right, on hover */
.thumb-actions {
  position: absolute;
  top: 3px; right: 3px;
  display: none;
  flex-direction: column;
  gap: 3px;
}
.thumb-item:hover .thumb-actions { display: flex; }
.thumb-action {
  border: none;
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.thumb-view   { background: rgba(0,0,0,.6); }
.thumb-view:hover { background: rgba(0,100,200,.85); }
.thumb-rotate { background: rgba(26,26,46,.8); }
.thumb-rotate:hover { background: var(--dark); }
.thumb-delete { background: rgba(220,20,60,.85); }
.thumb-delete:hover { background: var(--crimson); }

/* Admin lightbox */
.admin-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.admin-lb[hidden] { display: none; }
.admin-lb img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
  display: block;
}
.admin-lb-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 1001;
}
.admin-lb-close:hover { background: rgba(255,255,255,.3); }

/* Before / After / Remove buttons — bottom of each thumb */
.thumb-assign {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(0,0,0,.03);
  border-top: 1px solid var(--border);
}
.thumb-assign.muted { font-size: .62rem; color: var(--text-muted); justify-content: center; align-items: center; min-height: 28px; }
.btn-zone {
  flex: 1;
  border: none;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  cursor: pointer;
  padding: .25rem .2rem;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  transition: background var(--transition), color var(--transition);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.btn-before {
  background: var(--light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-before:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-after {
  background: var(--crimson);
  color: var(--white);
}
.btn-after:hover { background: var(--crimson-d); }
.btn-extra {
  background: var(--light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-extra:hover { background: #555; color: var(--white); border-color: #555; }
.btn-zone-full {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-zone-full:hover { background: var(--light); color: var(--text-muted); border-color: var(--border); }
.btn-remove {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-remove:hover { background: #fee; color: #c0392b; border-color: #c0392b; }

/* ── Project layout: sidebar + content ────────────────────────────────────── */
.project-layout {
  display: flex;
  align-items: stretch;
  min-height: 300px;
  border-top: 1px solid var(--border);
}

/* Sidebar */
.project-sidebar {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 70vh;
  background: #fafafa;
}
.proj-empty {
  padding: 1.25rem 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}
.proj-year-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .35rem 1rem;
}
.proj-year-header:first-child { border-top: none; }
.proj-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
}
.proj-item:last-child { border-bottom: none; }
.proj-item:hover { background: #f3f3f3; }
.proj-item.active { background: #fff0f2; border-left: 3px solid var(--crimson); padding-left: calc(1rem - 3px); }
.proj-item.active .proj-name { color: var(--crimson); }
.proj-thumb-wrap {
  width: 40px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-thumb-empty {
  font-size: .7rem;
  color: #bbb;
}
.proj-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.proj-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.proj-meta {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.proj-delete {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: .75rem;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 3px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition), color var(--transition), background var(--transition);
}
.proj-item:hover .proj-delete { opacity: 1; }
.proj-delete:hover { color: var(--crimson); background: #fee; }

/* Active project panel (right side of layout) */
.active-project { padding: 1rem 1.5rem 1.5rem; flex: 1; min-width: 0; }
.active-project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.active-project-col { display: flex; flex-direction: column; gap: .6rem; }
.col-header {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem .9rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.col-count {
  background: rgba(255,255,255,.35);
  border-radius: 50px;
  padding: 0 .5rem;
  font-size: .7rem;
}
.before-label { background: rgba(0,0,0,.07); color: var(--text-muted); }
.after-label  { background: rgba(220,20,60,.12); color: var(--crimson); }
.extra-label  { background: rgba(0,0,0,.04); color: #888; }
.col-zone {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  min-height: 80px;
  padding: .5rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .active-project-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .project-layout { flex-direction: column; }
  .project-sidebar { width: 100%; max-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .active-project-columns { grid-template-columns: 1fr; }
  .photo-pool { grid-template-columns: repeat(2, 1fr); }
  .col-zone   { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .photo-pool { grid-template-columns: repeat(2, 1fr); }
  .admin-header-inner { gap: .5rem; }
  .toolbar-info { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.35); }
