/* ============================================
   MAVUYISE GAMAZINE FACTORY — STYLESHEET
   Mobile-first. Base = 320px, scales up.
   Brand: Green (#3a8c2f / #5cb85c) + Red (#c0392b)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #3a8c2f;
  --green-light: #5cb85c;
  --green-dark:  #2a6b22;
  --red:         #c0392b;
  --red-dark:    #96281b;
  --white:       #ffffff;
  --off-white:   #f5f7f4;
  --dark:        #1a1a1a;
  --grey:        #666;
  --light-grey:  #eee;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --radius:      12px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  /* prevent horizontal scroll on mobile */
  overflow-x: hidden;
}

/* IMAGES — always responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINER — fluid on mobile, capped on desktop */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* SECTION — tighter on mobile */
.section { padding: 50px 0; }
.bg-light { background: var(--off-white); }

/* scale up padding on larger screens */
@media (min-width: 768px) { .section { padding: 70px 0; } }
@media (min-width: 1024px) { .section { padding: 90px 0; } }

.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0 12px;
}
.section-head p {
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}
.section-head.light h2 { color: var(--white); }
.section-head.light p  { color: rgba(255,255,255,0.8); }

@media (min-width: 768px) {
  .section-head { margin-bottom: 50px; }
  .section-head h2 { font-size: 2.2rem; }
  .section-head p  { font-size: 1rem; }
}

.section-label {
  display: inline-block;
  background: rgba(58, 140, 47, 0.12);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.section-head.light .section-label {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ---- NAVBAR — mobile first ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; }
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 768px) { .logo-img { height: 56px; } }

/* Mobile: nav hidden, shown via JS */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  padding: 16px 24px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  gap: 14px;
  list-style: none;
}
.nav-links.open { display: flex; }

/* Desktop: nav always visible inline */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 28px;
    align-items: center;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 600; }

.btn-nav {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--green-dark) !important; }

/* Hamburger — visible mobile only */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}
@media (min-width: 768px) { .hamburger { display: none; } }

/* ---- HERO — mobile first ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #1a3d12;
  /* no background-image — using .hero-bg-img instead for precise control */
}
@media (min-width: 768px) {
  .hero {
    align-items: center;
    padding-top: 80px;
    padding-bottom: 0;
  }
}

/* Full-cover image with object-position to keep walls visible */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: kenburns 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.04); } /* subtle on mobile, won't crop the house */
}
@media (min-width: 768px) {
  @keyframes kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.06); }
  }
}

/* Mobile: full dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.15) 100%
  );
}
/* Desktop: directional overlay, image shows on right */
@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.50) 55%,
      rgba(0,0,0,0.08) 100%
    );
  }
}

/* Mobile: centered, Desktop: left-aligned */
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  width: 100%;
  max-width: 620px;
  text-align: center;
}
@media (min-width: 768px) { .hero-content { text-align: left; } }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-tag span {
  display: inline-block;
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}
/* "Gamazine." in italic serif — the premium accent */
.hero-content h1 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #a8e063;
  letter-spacing: 0;
}

.hero-content > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 440px;
  font-weight: 300;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero-content > p {
    font-size: 1.05rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 36px;
  }
}

/* Buttons — stacked on mobile, inline on larger */
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
@media (min-width: 480px) {
  .hero-btns {
    flex-direction: row;
    justify-content: center;
  }
}
@media (min-width: 768px) {
  .hero-btns { justify-content: flex-start; }
}

/* Stats bar — wrap cleanly on mobile */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .hero-stats { justify-content: flex-start; gap: 24px; margin-top: 44px; }
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; align-items: center; }
@media (min-width: 768px) { .hero-stat { align-items: flex-start; } }

.hero-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  display: none;
}
@media (min-width: 400px) { .hero-stat-divider { display: block; } }

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none; /* hidden on mobile to avoid clutter */
}
@media (min-width: 768px) { .hero-scroll { display: block; bottom: 30px; } }
.hero-scroll a {
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(192,57,43,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,0.45);
}
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- ABOUT — mobile first ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
  }
}
.about-visual {
  position: relative;
  min-height: 280px;
  display: none; /* hidden on mobile */
}
@media (min-width: 900px) { .about-visual { display: block; min-height: 380px; } }
.texture-block {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.texture-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}
.texture-block::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 180px; height: 180px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.25;
}
.about-badge-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}
.about-badge-card i { color: var(--green); font-size: 1.6rem; }

.about-text .section-label { margin-bottom: 12px; }
.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.about-text p { color: var(--grey); margin-bottom: 14px; }
.about-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}
.about-list li i { color: var(--green); font-size: 1rem; }

/* ---- SERVICES — mobile first (1 col → 2 → 3) ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px)  { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.13);
  border-bottom-color: var(--green);
}
.service-icon {
  width: 58px; height: 58px;
  background: rgba(58, 140, 47, 0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon i { color: var(--green); font-size: 1.4rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.service-card p  { font-size: 0.9rem; color: var(--grey); line-height: 1.6; }

/* ---- WHY US — mobile first (1 col → 2 → 4) ---- */
.why {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--white);
  transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.14); }
.why-card i { font-size: 2rem; color: #a8e063; margin-bottom: 14px; display: block; }
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p  { font-size: 0.88rem; color: rgba(255,255,255,0.8); }

/* ---- CONTACT — mobile first (stacked → side by side) ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item > i {
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(58, 140, 47, 0.10);
  color: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-item h4 { font-size: 0.85rem; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-item p  { font-size: 0.95rem; color: var(--dark); }
.contact-item a  { color: var(--green); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  width: fit-content;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-whatsapp i { font-size: 1.2rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

/* ---- FOOTER — mobile first (stacked → 3 col) ---- */
.footer {
  background: #111;
  color: rgba(255,255,255,0.8);
  padding: 40px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img { height: 50px; width: auto; object-fit: contain; }
.footer-logo p   { font-weight: 700; font-size: 1rem; color: var(--white); }
.footer-links    { display: flex; flex-direction: column; gap: 12px; }
.footer-links a  { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.93rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--green-light); }
.footer-contact  { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: var(--green-light); }
.footer-bottom   { text-align: center; padding: 18px 0; font-size: 0.83rem; color: rgba(255,255,255,0.4); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.3s; }

.why-grid .why-card:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.3s; }

/* Active nav link */
.nav-links a.active { color: var(--green); font-weight: 600; }

/* ---- PROJECTS — mobile first (1 col → 2 → 3) ---- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.project-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 140, 47, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay i {
  color: var(--white);
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* Placeholder cards */
.project-placeholder { cursor: default; }
.project-placeholder:hover { transform: none; box-shadow: var(--shadow); }
.placeholder-img {
  aspect-ratio: 4 / 3;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #bbb;
}
.placeholder-img i  { font-size: 2.5rem; }
.placeholder-img p  { font-size: 0.88rem; font-weight: 500; }

.project-info { padding: 20px 22px 24px; }
.project-tag {
  display: inline-block;
  background: rgba(58, 140, 47, 0.10);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.project-placeholder .project-tag {
  background: rgba(0,0,0,0.06);
  color: #999;
}
.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.project-info p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.lightbox.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lightbox-inner img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;  /* contain so full image shows on small screens */
  display: block;
  background: #000;
}
@media (min-width: 768px) {
  .lightbox-inner img { max-height: 70vh; }
}
.lightbox-caption {
  padding: 18px 24px;
  background: var(--dark);
}
.lightbox-caption h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.lightbox-caption p  { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* end of stylesheet */
