:root {
  --page: #f3f0ea;
  --paper: #fffdf8;
  --ink: #141414;
  --charcoal: #202225;
  --charcoal-2: #2d3035;
  --muted: #69645c;
  --line: #ded6c9;
  --gold: #b7863b;
  --gold-soft: #efe2cd;
  --blue: #253f5c;
  --success: #285943;
  --shadow: 0 24px 70px rgba(25, 24, 22, 0.14);
  --nav-width: 292px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 34, 37, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 34, 37, 0.04) 1px, transparent 1px),
    var(--page);
  background-size: 54px 54px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.material-symbols-outlined {
  font-size: 1.14rem;
  line-height: 1;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--nav-width);
  padding: 28px 22px;
  color: #f7f2e9;
  background: linear-gradient(180deg, #141414, #25282d 68%, #171717);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

.profile-link {
  display: block;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.profile-link img {
  width: 142px;
  height: 142px;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 4px solid rgba(183, 134, 59, 0.82);
  border-radius: 50%;
  filter: contrast(1.08);
}

.profile-link span {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-link small {
  display: block;
  margin-top: 6px;
  color: rgba(247, 242, 233, 0.7);
  font-size: 0.78rem;
}

.side-nav nav {
  display: grid;
  gap: 8px;
}

.side-nav nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(247, 242, 233, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.side-nav nav a:hover,
.side-nav nav a:focus-visible,
.side-nav nav a.active {
  color: #ffffff;
  background: rgba(183, 134, 59, 0.22);
}

.mobile-header {
  display: none;
}

.page-shell {
  margin-left: var(--nav-width);
}

.section-panel {
  padding: clamp(58px, 8vw, 104px) clamp(22px, 6vw, 74px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(222, 214, 201, 0.8);
}

.intro {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  background:
    radial-gradient(circle at 85% 20%, rgba(183, 134, 59, 0.2), transparent 32%),
    linear-gradient(135deg, #fffdf8 0%, #efe6d8 48%, #d9d0c4 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(2.65rem, 7vw, 6.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  line-height: 1.22;
}

.typed-line {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 800;
}

#typed-role::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--gold);
  vertical-align: -0.12em;
  animation: blink 900ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.intro-summary,
.section-heading p,
.about-grid p,
.timeline li,
.project-body p,
.project-body li,
.skill-grid p,
.contact-section p {
  color: var(--muted);
}

.intro-summary {
  max-width: 720px;
  font-size: 1.08rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--charcoal);
}

.button.secondary {
  color: var(--ink);
  background: var(--gold-soft);
  border-color: #dbc49c;
}

.button.quiet {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.portrait-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(183, 134, 59, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  filter: contrast(1.08);
}

.portrait-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 16px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(12px);
}

.portrait-caption strong,
.portrait-caption span {
  display: block;
}

.portrait-caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 34px;
}

.quick-facts {
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quick-facts li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.quick-facts li:last-child {
  border-bottom: 0;
}

.quick-facts strong {
  color: var(--blue);
}

.quick-facts span {
  color: var(--muted);
}

.dark-section {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(183, 134, 59, 0.14), transparent 36%),
    linear-gradient(180deg, #191a1d, #282b30);
}

.dark-section .section-heading p,
.dark-section .project-body p,
.dark-section .project-body li,
.dark-section .skill-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.dark-section .eyebrow {
  color: var(--gold);
}

.project-grid,
.analytics-grid {
  display: grid;
  gap: 20px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

/* Cards in the same row share a height so there are no obvious gaps between them. */
.project-grid .project-card {
  display: flex;
  flex-direction: column;
}

.project-grid .project-card .project-body {
  flex: 1 1 auto;
}

/* A single leftover card spans the full width so the last row never looks half-empty. */
.project-grid .wide-card {
  grid-column: 1 / -1;
}

.nvidia-card {
  border-color: rgba(118, 185, 0, 0.42);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.nvidia-card img {
  background: #0b0d0a;
}

.result-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(80, 200, 140, 0.4);
  border-radius: 8px;
  background: rgba(40, 89, 67, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

.result-banner .material-symbols-outlined {
  color: #6fd6a3;
  font-size: 1.35rem;
}

.result-banner strong {
  color: #ffffff;
}

.writeup {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.writeup summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--gold);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.writeup summary::-webkit-details-marker {
  display: none;
}

.writeup summary .material-symbols-outlined {
  transition: transform 200ms ease;
}

.writeup[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.writeup-body {
  padding: 4px 18px 18px;
}

.writeup-body h4 {
  margin: 18px 0 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.writeup-body ul,
.writeup-body ol {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.writeup-body li {
  margin-bottom: 8px;
}

.writeup-body li strong {
  color: rgba(255, 255, 255, 0.94);
}

.writeup-body p {
  color: rgba(255, 255, 255, 0.74);
}

.project-column {
  display: grid;
  gap: 20px;
  align-content: start;
}

.analytics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.analytics-card,
.timeline article,
.skill-grid div,
.credential-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04);
}

.dark-section .project-card,
.dark-section .skill-grid div {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.project-card img,
.analytics-card img {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.project-body {
  padding: 22px;
}

/* Infographic banner: show the whole image, never crop the text. */
.project-card img.pipeline-banner {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #070b16;
}

/* Let the banner bleed over the card's border/corners so it sits truly edge-to-edge. */
.ai-grid .ai-card.flush-top {
  overflow: hidden;
}

.ai-grid .ai-card.flush-top .pipeline-banner {
  margin: -1px -1px 0;
  width: calc(100% + 2px);
  max-width: none;
  border-radius: 0;
}

/* Clickable banners open the in-page gallery (see .lightbox). */
.banner-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.banner-link:focus-visible,
.pipeline-banner:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.banner-link::after {
  content: "Click to open gallery";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.banner-link:hover::after,
.banner-link:focus-visible::after {
  opacity: 1;
}

.banner-link:hover img {
  filter: brightness(1.05);
}

.project-type {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body ul,
.timeline ul {
  padding-left: 20px;
  margin: 14px 0 0;
}

code {
  padding: 0.1rem 0.28rem;
  border-radius: 6px;
  color: var(--blue);
  background: rgba(37, 63, 92, 0.09);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.dark-section code {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tool-row span {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--blue);
  background: #e9eef3;
  font-size: 0.78rem;
  font-weight: 800;
}

.dark-section .tool-row span {
  color: #ffffff;
  background: rgba(183, 134, 59, 0.22);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: transform 160ms ease;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.project-actions .text-link {
  margin-top: 0;
}

.video-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.video-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(183, 134, 59, 0.42);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(183, 134, 59, 0.2), rgba(255, 255, 255, 0.06));
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.video-link:hover,
.video-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 134, 59, 0.78);
  background: linear-gradient(135deg, rgba(183, 134, 59, 0.3), rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.video-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(20, 20, 20, 0.34);
  font-size: 1.35rem;
}

.video-copy {
  display: grid;
  gap: 4px;
}

.video-copy strong {
  color: #ffffff;
  line-height: 1.25;
  text-decoration: none;
}

.video-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  padding: 24px;
  border-left: 5px solid var(--gold);
}

.timeline span {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.skill-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-grid div,
.credential-grid article {
  padding: 22px;
}

.education-section {
  background: #f7f3ec;
}

.credential-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cert-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cert-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cert-list li:last-child {
  border-bottom: 0;
}

.cert-list strong {
  color: var(--gold);
  white-space: nowrap;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 34px;
  color: #ffffff;
  background: #141414;
}

.contact-cards {
  display: grid;
  gap: 12px;
  align-content: center;
}

.contact-cards a {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  text-decoration: none;
}

.contact-cards a:hover,
.contact-cards a:focus-visible {
  color: #ffffff;
  border-color: rgba(183, 134, 59, 0.56);
}

@media (max-width: 1120px) {
  .analytics-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .side-nav {
    inset: 62px 0 auto 0;
    display: none;
    width: auto;
    max-height: calc(100vh - 62px);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .side-nav.open {
    display: block;
  }

  .profile-link {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    color: #ffffff;
    background: rgba(20, 20, 20, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-brand {
    font-weight: 800;
    text-decoration: none;
  }

  .menu-toggle {
    display: inline-grid;
    width: 42px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .page-shell {
    margin-left: 0;
  }

  .intro,
  .about-grid,
  .project-grid,
  .credential-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }

  .portrait-card {
    max-width: 430px;
  }
}

@media (max-width: 640px) {
  .section-panel {
    padding: 54px 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .analytics-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts li,
  .cert-list li {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 4px;
  }

  .intro-actions .button {
    width: 100%;
  }

  .contact-cards a {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Project filters ---------- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.proj-filter {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.proj-filter:hover,
.proj-filter:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(183, 134, 59, 0.7);
}

.proj-filter.is-active {
  color: #1c1304;
  background: linear-gradient(90deg, #b7863b, #d8ab63);
  border-color: transparent;
}

.project-card.hide {
  display: none;
}

/* ---------- Active Directory video heading ---------- */
.video-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Skill chips ---------- */
.skill-grid h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.skill-grid h3 .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(183, 134, 59, 0.22);
  font-size: 1.2rem;
}

/* Reset the nested chips container so it isn't styled like a card by `.skill-grid div`. */
.skill-grid .skill-chips,
.dark-section .skill-grid .skill-chips {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chips span {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.skill-chips span:hover {
  border-color: rgba(183, 134, 59, 0.7);
  background: rgba(183, 134, 59, 0.18);
}

/* ---------- AI & Automation section ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.ai-grid .ai-card {
  display: flex;
  flex-direction: column;
}

.ai-grid .ai-card .project-body {
  flex: 1 1 auto;
}

.ai-grid .wide-card {
  grid-column: 1 / -1;
}

.wip-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

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

/* ---------- Scroll reveal animation ---------- */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.has-js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Banner lightbox gallery ---------- */
.pipeline-banner {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 18px);
  padding: clamp(10px, 2vw, 24px);
  background: rgba(9, 9, 11, 0.93);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.lb-open {
  overflow: hidden;
}

.lb-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.lb-image {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 96vw;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #0b0d0a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  flex: 0 0 auto;
  max-width: 880px;
  margin: 0;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.lb-close,
.lb-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.lb-close:hover,
.lb-close:focus-visible,
.lb-nav:hover,
.lb-nav:focus-visible {
  background: rgba(183, 134, 59, 0.32);
  border-color: rgba(183, 134, 59, 0.7);
}

.lb-close {
  position: absolute;
  top: clamp(12px, 2.4vw, 24px);
  right: clamp(12px, 2.4vw, 24px);
  width: 46px;
  height: 46px;
}

.lb-close .material-symbols-outlined {
  font-size: 1.6rem;
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
}

.lb-nav:hover,
.lb-nav:focus-visible {
  transform: translateY(-50%) scale(1.07);
}

.lb-prev {
  left: clamp(8px, 2vw, 28px);
}

.lb-next {
  right: clamp(8px, 2vw, 28px);
}

.lb-nav .material-symbols-outlined {
  font-size: 2rem;
}

.lb-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lb-thumbs {
  display: flex;
  gap: 10px;
  max-width: min(1180px, 92vw);
  padding: 6px 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 134, 59, 0.6) transparent;
}

.lb-thumbs::-webkit-scrollbar {
  height: 8px;
}

.lb-thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(183, 134, 59, 0.5);
}

.lb-thumb {
  flex: 0 0 auto;
  width: 108px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-thumb:hover,
.lb-thumb:focus-visible {
  opacity: 0.92;
  transform: translateY(-2px);
}

.lb-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }

  .lb-thumbs {
    scroll-behavior: auto;
  }
}

@media (max-width: 640px) {
  .lb-nav {
    width: 42px;
    height: 42px;
  }

  .lb-thumb {
    width: 86px;
    height: 48px;
  }
}
