/* ============================================================
   MICHAEL'S GALLERY — SHARED STYLES
   Warm & Artsy · Playfair Display + DM Sans
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:           #f5f0e8;
  --surface:      #ebe4d6;
  --dark:         #1a1410;
  --text:         #37302a;
  --text-light:   #7a6c5e;
  --accent:       #b05c38;
  --accent-light: #cc7a55;
  --olive:        #5a6e50;
  --border:       #d0c4b0;
  --white:        #faf7f2;
  --nav-h:        68px;
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:         'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --radius:       6px;
  --gap:          14px;
  --shadow:       0 2px 20px rgba(26,20,10,.08);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--dark);
  margin-right: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 6px 10px;
  border-radius: 20px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
  background: var(--surface);
}

/* ── Language Switcher ───────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 3px 7px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.4;
}
.lang-btn:hover {
  color: var(--accent);
  border-color: var(--border);
}
.lang-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(176, 92, 56, 0.07);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 16px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav {
    padding: 0 16px;
    /* iOS Safari bug: backdrop-filter on a parent clips position:fixed descendants.
       Disable it on mobile so the dropdown menu renders correctly. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
  .nav-toggle {
    display: flex;
    margin-left: 8px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .lang-switcher { margin-left: 4px; gap: 1px; }
  .lang-btn { font-size: 0.62rem; padding: 4px 6px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    z-index: 101;
    box-shadow: 0 8px 16px rgba(26,20,10,.08);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 20px; }
  .nav-links a {
    display: block;
    padding: 10px 12px;
    font-size: .84rem;
  }
}

/* Very small phones — hide lang switcher to guarantee hamburger fits */
@media (max-width: 380px) {
  .lang-switcher { display: none; }
  .nav-logo { font-size: 1.15rem; }
}

/* ─── Hero (Homepage) ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18,12,6,.55) 0%,
    rgba(18,12,6,.30) 50%,
    rgba(18,12,6,.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,247,242,.7);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(250,247,242,.8);
  letter-spacing: .04em;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 13px 34px;
  background: transparent;
  border: 1.5px solid rgba(250,247,242,.6);
  color: var(--white);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 40px;
  transition: background .25s, border-color .25s, color .25s;
}
.hero-cta:hover {
  background: rgba(250,247,242,.15);
  border-color: var(--white);
}

/* ─── Collections Grid (Homepage) ────────────────────────── */
.collections {
  padding: 90px 0 100px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-sub {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 52px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.category-card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}
.category-card:hover {
  box-shadow: 0 8px 40px rgba(26,20,10,.18);
  transform: translateY(-3px);
}

.card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.category-card:hover .card-img { transform: scale(1.06); }

.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent, rgba(18,12,6,.82));
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-info h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.card-info span {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(250,247,242,.65);
  text-transform: uppercase;
}

.card-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(250,247,242,.15);
  border: 1px solid rgba(250,247,242,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s;
}
.category-card:hover .card-arrow {
  opacity: 1;
  transform: scale(1);
}

/* ─── Gallery Page Header ─────────────────────────────────── */
.gallery-header {
  margin-top: var(--nav-h);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.gallery-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.gallery-count {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ─── Masonry Gallery Grid ────────────────────────────────── */
.gallery-main {
  padding: 52px 0 100px;
}

.masonry-grid {
  columns: 3;
  column-gap: var(--gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), filter .3s;
  filter: brightness(.97) saturate(.98);
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(176,92,56,0);
  transition: background .3s;
  pointer-events: none;
  border-radius: var(--radius);
}
.gallery-item:hover::after {
  background: rgba(176,92,56,.06);
}

/* ─── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18,12,6,.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,.6);
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
  z-index: 1001;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1001;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.22); }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--sans);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 40px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-light);
  letter-spacing: .05em;
}

/* ─── Sticky Gallery Header ───────────────────────────────── */
.gallery-header {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ─── Responsive ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .masonry-grid { columns: 2; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .collections { padding: 64px 0 72px; }
}

/* Large mobile / small tablet */
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-cta {
    width: 200px;
    justify-content: center;
  }
  .hero-sub {
    font-size: .9rem;
  }
  .hero-profile-wrap {
    width: 96px;
    height: 96px;
  }
  .hero-profile-img {
    width: 96px;
    height: 96px;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .masonry-grid { columns: 2; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-header { padding: 14px 0 14px; }
  .gallery-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .gallery-main { padding: 24px 0 72px; }
  .container { padding: 0 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  /* Tighter section padding */
  .about-section, .skills-section, .experience-section,
  .collections-section, .contact-section { padding: 48px 0; }

  /* Show card arrows on touch (no hover available) */
  .card-arrow { opacity: 1; transform: scale(1); }

  /* Larger touch targets for nav */
  .nav-links a { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
  .lang-btn { padding: 6px 10px; min-height: 36px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
  .hero { min-height: 100svh; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .14em; }

  /* Experience cards single-column already handled, keep them readable */
  .exp-card, .skill-card { padding: 20px 18px; }

  /* Lightbox bigger close/nav on small screens */
  .lightbox-close { width: 44px; height: 44px; top: 12px; right: 12px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* Very small */
@media (max-width: 380px) {
  .masonry-grid { columns: 1; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-cta { width: 180px; font-size: .75rem; padding: 11px 20px; }
}

/* Touch devices — always show interactive hints */
@media (hover: none) {
  .card-arrow { opacity: 1; transform: scale(1); }
  .category-card:hover .card-img { transform: none; }
  .gallery-item:hover img { transform: none; filter: none; }
  .gallery-item:hover::after { background: none; }
}

/* ─── Profile Photo in Hero ───────────────────────────────── */
.hero-profile-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  position: relative;
}

.hero-profile-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(250,247,242,.55);
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.hero-profile-initials {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(250,247,242,.15);
  border: 3px solid rgba(250,247,242,.4);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}

/* ─── About Section ──────────────────────────────────────── */
.about-section {
  padding: 88px 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 72px;
  align-items: start;
  margin-top: 44px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-meta { display: flex; flex-direction: column; gap: 20px; }

.about-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-meta-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.about-meta-value {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}

.about-meta-value a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Skills Section ─────────────────────────────────────── */
.skills-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.skill-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.skill-card p {
  font-size: .86rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* ─── Experience Section ─────────────────────────────────── */
.experience-section {
  padding: 88px 0;
  background: var(--bg);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.exp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .3s, box-shadow .3s;
}
.exp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.exp-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.35;
}

.exp-date {
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.exp-card p {
  font-size: .86rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* ─── Collections Section (on homepage) ─────────────────── */
.collections-section {
  padding: 80px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ─── Contact Section ────────────────────────────────────── */
.contact-section {
  padding: 88px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  min-width: 220px;
  flex: 1;
}

.contact-card-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.contact-card-value {
  font-size: .98rem;
  color: var(--text);
}

.contact-card-value a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.contact-card-value a:hover { opacity: .7; }

/* ─── Travel Page ────────────────────────────────────────── */
.travel-header {
  margin-top: var(--nav-h);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.travel-main { padding: 64px 0 100px; }

.travel-section { margin-bottom: 72px; }

.travel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-top: 28px;
  box-shadow: var(--shadow);
}

.map-container {
  width: 100%;
  height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  font-size: .82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 20px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.travel-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.travel-list li {
  padding-left: 20px;
  position: relative;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--text);
}

.travel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ─── Travel Collage ─────────────────────────────────────── */
.travel-collage {
  columns: 3;
  column-gap: 12px;
}
.travel-collage .col-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.travel-collage .col-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.92);
}
.travel-collage .col-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}
.travel-collage .col-item.wide {
  column-span: all;
}

@media (max-width: 720px) {
  .travel-collage { columns: 2; }
}
@media (max-width: 480px) {
  .travel-collage { columns: 1; }
}

/* ─── Extra responsive ───────────────────────────────────── */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .experience-grid { grid-template-columns: 1fr; }
  .contact-cards { flex-direction: column; }
  .about-section, .skills-section, .experience-section,
  .collections-section, .contact-section { padding: 60px 0; }
}

@media (max-width: 540px) {
  .skills-grid { grid-template-columns: 1fr; }
  .travel-card { padding: 20px; }
  .map-container { height: 300px; }
}

/* Prevent horizontal overflow without breaking position: sticky */
body { max-width: 100vw; }
.container, .nav, .hero, .gallery-main, .museum-gallery { overflow-x: clip; }

/* ── Keep the nav on one row between 821px and 1000px ───────── */
@media (min-width: 821px) and (max-width: 1000px) {
  .nav { padding: 0 18px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: .7rem; letter-spacing: .04em; padding: 6px 7px; }
}
