/* ============================================================
   Art_By_Tofa — Portfolio Design System
   ============================================================ */

@import url(fontawesome-all.min.css);
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --bg:          #0e0e12;
  --surface:     #16161e;
  --card:        #1e1e2a;
  --card-hover:  #252538;

  --border:       rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.12);
  --border-bright:rgba(255,255,255,0.22);

  --accent:      #e63946;
  --accent-h:    #ff4757;
  --accent-glow: rgba(230,57,70,0.22);

  --text:        #f0f0f5;
  --text-2:      #a0a0b4;
  --text-3:      #5a5a72;

  --font-head: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --nav-h: 64px;
  --radius: 12px;
  --ease:   0.3s cubic-bezier(.4,0,.2,1);
  --ease-s: 0.55s cubic-bezier(.4,0,.2,1);

  --shadow:   0 4px 24px rgba(0,0,0,.45);
  --shadow-h: 0 10px 44px rgba(0,0,0,.65);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-h); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
p { color: var(--text-2); line-height: 1.75; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== Navigation ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(14,14,18,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), box-shadow var(--ease);
}
#nav.scrolled {
  background: rgba(14,14,18,.97);
  box-shadow: 0 2px 24px rgba(0,0,0,.55);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text) !important;
}
.nav-logo .acc { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: .25rem;
}
.nav-links li a {
  display: block;
  padding: .35rem .9rem;
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 6px;
  position: relative;
  transition: color var(--ease);
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--ease);
}
.nav-links li.active a,
.nav-links li a:hover  { color: var(--text); }
.nav-links li.active a::after,
.nav-links li a:hover::after { width: 55%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-icons {
  display: flex;
  list-style: none;
  gap: .5rem;
}
.nav-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-2);
  font-size: .95rem;
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.nav-icons a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:first-child  { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:last-child   { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: .4rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: .7rem 1rem;
  border-radius: 8px;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--ease);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--card);
  color: var(--text);
}
.nav-mobile-icons {
  display: flex;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.nav-mobile-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text-2);
  font-size: 1rem;
  border: 1px solid var(--border);
  padding: 0;
}
.nav-mobile-icons a:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== Container / Section ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 580px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ===== Hero / Intro ===== */
#intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) 2rem 4rem;
  overflow: hidden;
}
#intro::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/bg.jpg') center/cover no-repeat;
  filter: brightness(.22) saturate(.7);
  z-index: -2;
}
#intro::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(230,57,70,.14) 0%, transparent 70%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  z-index: -1;
}

.intro-inner {
  max-width: 820px;
  animation: fadeUp .9s var(--ease-s) both;
}
.intro-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .35rem 1.1rem;
  border: 1px solid rgba(230,57,70,.4);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.intro-title {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.intro-title .acc { color: var(--accent); display: block; }
.intro-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.intro-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-3);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

/* ===== Portfolio Category Cards (Homepage) ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--card);
  transition: transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-h);
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease-s), filter var(--ease);
}
.cat-card:hover img {
  transform: scale(1.07);
  filter: brightness(.75);
}
.cat-card-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,18,.95) 0%, rgba(14,14,18,.45) 45%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--ease);
}
.cat-card:hover .cat-card-body {
  background: linear-gradient(to top, rgba(14,14,18,.98) 0%, rgba(14,14,18,.6) 55%, rgba(14,14,18,.1) 80%);
}
.cat-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.cat-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  font-family: var(--font-head);
}
.cat-desc {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--ease-s), opacity var(--ease);
  margin-bottom: 0;
}
.cat-card:hover .cat-desc {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 1rem;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: gap var(--ease);
}
.cat-card:hover .cat-link { gap: .65rem; }

/* ===== About Section ===== */
.about-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  position: relative;
  z-index: 1;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius) + 8px);
  opacity: .25;
  transition: opacity var(--ease);
  z-index: 0;
}
.about-img-wrap:hover::before { opacity: .55; }

.about-text h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 1.5rem; }
.about-p { margin-bottom: 1.25rem; }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-lbl {
  font-size: .72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ===== Page Hero (gallery pages) ===== */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.page-hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.page-hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Gallery Grid ===== */
.gallery-wrap { padding: 3.5rem 0 6rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}
.gallery-grid.two-col  { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.gallery-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.four-col  { grid-template-columns: repeat(4, 1fr); }

/* span helpers */
@media (min-width: 640px) {
  .g-span2 { grid-column: span 2; }
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 1/1;
}
.g-item.portrait { aspect-ratio: 3/4; }
.g-item.wide     { aspect-ratio: 16/9; }
.g-item.std      { aspect-ratio: 4/3; }

.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.g-item:hover img { transform: scale(1.06); }

.g-overlay {
  position: absolute; inset: 0;
  background: rgba(14,14,18,0);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.g-item:hover .g-overlay { background: rgba(14,14,18,.5); }

.g-zoom {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem;
  opacity: 0; transform: scale(.7);
  transition: all var(--ease);
}
.g-item:hover .g-zoom { opacity: 1; transform: scale(1); }
.g-item:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Comics / Manga Reader ===== */
.comic-section {
  background: #090909;
  padding: 2.5rem 0 6rem;
}
.comic-reader {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.comic-page {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 40px rgba(0,0,0,.8);
  cursor: pointer;
  position: relative;
}
.comic-page img {
  width: 100%; height: auto;
  display: block;
  transition: transform var(--ease);
}
.comic-page:hover img { transform: scale(1.008); }
.comic-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.comic-page:hover .comic-overlay { background: rgba(0,0,0,.35); }
.comic-page:hover .g-zoom { opacity: 1; transform: scale(1); }

.comic-sep {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 3rem 0;
  color: var(--text-3);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.comic-sep::before, .comic-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ===== Lightbox ===== */
#lightbox {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: background .35s ease;
}
#lightbox.active {
  background: rgba(0,0,0,.93);
  pointer-events: all;
}
#lb-content {
  position: relative;
  opacity: 0; transform: scale(.92);
  transition: opacity .35s ease, transform .35s ease;
}
#lightbox.active #lb-content { opacity: 1; transform: scale(1); }
#lb-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  transition: opacity .15s ease;
}
#lb-close {
  position: fixed; top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10001;
  transition: all var(--ease);
  visibility: hidden; opacity: 0; pointer-events: none;
}
#lightbox.active #lb-close { visibility: visible; opacity: 1; pointer-events: all; }
#lb-close:hover { background: var(--accent); border-color: var(--accent); }

.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10001;
  transition: all var(--ease);
  visibility: hidden; opacity: 0; pointer-events: none;
}
#lightbox.active .lb-arrow { visibility: visible; opacity: 1; pointer-events: all; }
.lb-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
#lb-prev { left: 1.25rem; }
#lb-next { right: 1.25rem; }
#lb-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.4); font-size: .8rem; letter-spacing: .1em;
  z-index: 10001; pointer-events: none;
}

/* ===== Footer ===== */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem 2.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); margin-bottom: 1rem;
}
.footer-brand .acc { color: var(--accent); }
.footer-about {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 290px;
}
.footer-heading {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { font-size: .875rem; color: var(--text-2); transition: color var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-contact { font-size: .875rem; color: var(--text-2); line-height: 2; }
.footer-contact a { color: var(--text-2); transition: color var(--ease); }
.footer-contact a:hover { color: var(--accent); }
.footer-social {
  display: flex; gap: .6rem; margin-top: 1.25rem;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-2); font-size: .95rem;
  transition: all var(--ease);
}
.footer-social a:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .8rem; color: var(--text-3); }
.footer-copy a { color: var(--text-2); }

/* ===== Back to Top ===== */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  opacity: 0; transform: translateY(10px);
  transition: all var(--ease);
  z-index: 999;
  box-shadow: 0 4px 20px var(--accent-glow);
}
#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--accent-h); transform: translateY(-2px); }

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ===== Utilities ===== */
.acc { color: var(--accent); }
.divider {
  height: 1px; background: var(--border);
  margin: 0; border: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 380px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1/-1; }
  .footer-about { max-width: 100%; }
}
@media (max-width: 768px) {
  :root { --section-gap: 3rem; }
  .nav-links, .nav-icons { display: none; }
  .nav-toggle { display: flex; }
  .gallery-grid.three-col,
  .gallery-grid.four-col   { grid-template-columns: repeat(2,1fr); }
  .gallery-grid.two-col    { grid-template-columns: 1fr; }
  .lb-arrow { width: 40px; height: 40px; font-size: .85rem; }
  #lb-prev { left: .5rem; }
  #lb-next { right: .5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: 1; }
}
@media (max-width: 520px) {
  .gallery-grid,
  .gallery-grid.three-col,
  .gallery-grid.four-col { grid-template-columns: 1fr; }
  .intro-actions { flex-direction: column; align-items: center; }
  .about-stats { gap: 1.75rem; }
  .g-span2 { grid-column: span 1; }
}
