/* =========================
   Global
   ========================= */
:root {
  /* Brand greens */
	--theme-green: #85CB33;
	--theme-green-rgb: 133, 203, 51;   /* them green for opacitie usage */
  --theme-green-hover: #9be04a; /* text links, outlines */
	--theme-green-button-hover: #a2dd58; /* button hover states  */
	--theme-green-button-hover-rgb: 162, 221, 88;	/* button hover states for opacitie usage */
	
	/* Core palette */
	--color-bg: #0f0f0f; /* body background */
	--color-tile-bg: #1a1a1a; /* card / tile background */
	--color-text: #f1f1f1; /* primary text */
	--color-text-rgb: 241, 241, 241; /* primary text for opacitie usage */
	--gradient-hero: linear-gradient(to bottom, rgba(27, 30, 34, 1), rgba(27, 30, 34, 0)); /* Banner background gradient */
	
	/* Footer */
	--color-footer-text: #858585;
	--color-footer-text-hover: #999;
  
  /* Typography weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Page content entrance */
.page-fade{
  opacity: 0;
  transform: translateY(8px);
  animation: pageIn 260ms ease-out forwards;
  min-height: 60vh; /* prevents tiny pages from popping */
}

@keyframes pageIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .page-fade{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.accent-color{
	color: var(--theme-green);
}

.muted-text { 
	color: rgba(var(--color-text-rgb), 0.75);
}

.indent {
  margin-left: 1.5rem !important;
}

code {
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.2em 0.5em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Special handling for breadcrumb-style code blocks */
code:has(i.fa-angle-right) {
  white-space: normal;
  display: inline-block;
  word-spacing: 0.5em;
  text-align-last: left;
  text-align: justify;
}

/* Prevent breaks within text segments, only at arrows */
code i.fa-angle-right {
  display: inline-block;
  white-space: nowrap;
  width: auto;
}

/* =========================
   Link Interaction states
   - Desktop: :hover
   - Touch:   :active
   ========================= */

a {
  color: var(--theme-green);
  text-decoration: none;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

/* Keep keyboard focus style everywhere */
a:focus-visible {
  color: var(--theme-green-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Desktop / real hover devices */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--theme-green-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* Touch devices */
@media (hover: none) {
  a:active {
    color: var(--theme-green-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* Do not underline button-style links (keyboard focus) */
a.cta-button:focus-visible,
a.download-button:focus-visible {
  text-decoration: none !important;
}

@media (hover: hover) and (pointer: fine) {
  /* Do not underline button-style links (desktop hover) */
  a.cta-button:hover,
  a.download-button:hover {
    text-decoration: none !important;
  }
}

a.cta-button,
a.download-button {
  color: inherit;
}

/* UI / button links should NOT look like text links */
.cta-button,
.download-button,
.button,
.gallery-nav,
.thumbs-nav,
.lb-nav,
.tile-card a,
.media-gallery a,
.sort-item,
.sort-item a,
.content a,
a.content,

/* Navigation should keep its own styling */
.navbar a,
.desktop-nav a,
.nav-links a,
.mobile-nav a,
.logo-link {
  color: inherit;
  text-decoration: none !important;
}

.nav-links a:focus,
.nav-links a:active,
.mobile-nav a:focus,
.mobile-nav a:active {
  color: var(--theme-green);
}

.layout-container,
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

ul li::marker,
ol li::marker {
 color: var(--theme-green);
}

p:has(+ ul),
p:has(+ ol) {
  margin-bottom: 0.2em;
}

ul,
ol {
  margin-top: 0.2em;
  padding-left: 1.8em;
}

.content ul li a,
a.content {
  font-weight: var(--fw-medium);
  opacity: 0.6;
}

.content ul li a::after,
a.content::after {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font: var(--fa-font-solid);
  content: " \f101";
  font-size: 0.7em;
  margin-left: 0.3em;
}

@media (hover: hover) and (pointer: fine) {
  .content ul li a:hover,
  a.content:hover {
    opacity: 1;
  }
}

@media (hover: none) {
  .content ul li a:active,
  a.content:active {
    opacity: 1;
  }
}

h1, h2, h3 {
  font-weight: var(--fw-extrabold);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--theme-green);
}

.page-content h3 {
  margin-top: 1.8em;
}

.page-read-meta {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

blockquote {
  position: relative;
  margin: 1.5rem 0 0 1.5rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;

  border-left: 4px solid var(--theme-green);
  background: rgba(var(--color-text-rgb), 0.04);

  border-radius: 8px;
  color: rgba(var(--color-text-rgb), 0.92);

  font-style: italic;
  line-height: 1.7;
}

blockquote::before {
  content: "“";
  left: 0.3rem;
  top: -1.7rem;
}

blockquote::after {
  content: "”";
  right: 0.5rem;
  bottom: -4.4rem;
}

blockquote::before,
blockquote::after {
  position: absolute;
  font-family: "Roboto Slab", serif;
  font-weight: var(--fw-regular);
  font-size: 6rem;
  line-height: 1;
  color: rgba(var(--theme-green-rgb), 0.35);
  font-style: normal;
  pointer-events: none;
}
blockquote p {
  margin: 0.5rem 0;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Quote citation (right-aligned, subtle) */
.quote-ref {
  display: block;
  margin-bottom: 1rem;
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.7;
  font-style: normal;
  line-height: 0.35rem;
}

.quote-ref a {
  color: var(--theme-green);
  text-decoration: none;
}

.quote-ref a:focus-visible {
  color: var(--theme-green-hover);
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  .quote-ref a:hover {
    color: var(--theme-green-hover);
    text-decoration: underline;
  }
}

@media (hover: none) {
  .quote-ref a:active {
    color: var(--theme-green-hover);
    text-decoration: underline;
  }
}

/* =====================================
   Text selection and focus highlite
   ===================================== */
::selection {
  background: rgba(var(--theme-green-rgb), 0.5);
  color: #fff;
}

::-moz-selection {
  background: rgba(var(--theme-green-rgb), 0.5);
  color: #fff;
}

button,
a,
.logo-link,
.asset-card-link,
.download-button,
.footer-link-list,
.contact-list, 
.footer-contact-list,
.footer-licenses,
.content,
.quote-ref,
.nav-links {
  /* tap highlight color on iOS/Chrome mobile */
  -webkit-tap-highlight-color: rgba(255, 255, 244, 0.05);
}

.hamburger,
.media-gallery,
.gallery-ui-hidden,
.gallery-thumb {
  /* tap highlight color on iOS/Chrome mobile */
  -webkit-tap-highlight-color: rgba(var(--color-text-rgb), 0) !Important;
}

.sort-button,
.cta-button {
  /* tap highlight color on iOS/Chrome mobile */
  -webkit-tap-highlight-color: rgba(var(--theme-green-button-hover-rgb), 0.30);
}

/* =========================
   Navigation
   ========================= */
.navbar {
  background-color: #111;
  padding: 1rem 0;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-image {
  height: 64px;
  width: auto;
  padding-top: 0.3em;
  margin-bottom: -0.3em;
  transition: transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .logo-link:hover .logo-image {
    transform: scale(1.04);
  }

  .logo-link:active .logo-image {
    transform: scale(1.01);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  width: 100%;
  position: relative;
}

.nav-links,
.desktop-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  transition: transform 160ms ease;
}

.nav-links a {
  display: block;
}

.content a:focus-visible,
a.content:focus-visible,
.nav-links a:focus-visible {
  color: var(--theme-green);
}

@media (hover: hover) and (pointer: fine) {
  .content a:hover,
  a.content:hover,
  .nav-links a:hover {
    color: var(--theme-green);
  }

  .nav-links li:hover {
    transform: scale(1.10);
  }
	
  .nav-links li:active {
    transform: scale(1.02);
  }

  .nav-links a:active {
    color: var(--color-text);
  }
}

@media (hover: none) {
	.nav-links a:focus {
		color: var(--theme-green);
	}
  .content a:active,
  a.content:active,
  .nav-links a:active,
  .mobile-nav a:active	{
    color: var(--theme-green) !Important;
  }
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* =========================
   Hero (Home)
   ========================= */
.hero-banner {
  position: relative;
  min-height: 48vh;
  height: auto;

  overflow: hidden;       /* keep image clipped (unchanged intention) */
  background-color: #1B1E22;
  isolation: isolate;
  padding-bottom: 2rem;
}


.hero-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 130%;
  width: auto;
  max-width: none;
  z-index: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  mix-blend-mode: multiply;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  display: flex;
  justify-content: center;

  padding: 2rem 0;
}

.hero-foreground {
  text-align: center;
  color: var(--color-text);
  padding: 1rem 2rem;
  background: none;
  max-width: 700px;
  width: 90%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.accent {
  color: var(--theme-green);
}

/* =========================
   Buttons
   ========================= */
.cta-button {
  display: inline-block;
  background-color: var(--theme-green);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  color: var(--color-bg);
  font-weight: var(--fw-bold);
  transition: background-color 140ms ease, transform 80ms ease, box-shadow 140ms ease;
}

a.cta-button { 
  color: var(--color-bg); 
}

/* Desktop hover + pressed */
@media (hover: hover) and (pointer: fine) {
  .cta-button:hover {
    background-color: var(--theme-green-button-hover);
  }

  .cta-button:active {
    background-color: var(--theme-green);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    transform: translateY(1px);
  }

  .cta-button:focus-visible {
    outline: 2px solid var(--theme-green-hover);
    outline-offset: 3px;
  }
}

/* Mobile tap: color only (no movement) */
@media (hover: none) {
  .cta-button:active {
    background-color: var(--theme-green-button-hover);
    transform: none;
  }
}

/* =========================
   Back to top button
   ========================= */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  background-color: var(--theme-green);
  color: var(--color-bg);

  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 100;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--theme-green-hover);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    background-color: var(--theme-green-button-hover);
  }
}

@media (hover: none) {
  .back-to-top:active {
    background-color: var(--theme-green-button-hover);
  }
}

.back-to-top svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* =========================
   Intro band (Used on About + other pages)
   ========================= */
.introduction {
  padding: 2rem 1rem 2.5rem 1rem;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.intro-hero-gradient {
  background: var(--gradient-hero);
  padding: 2rem 0 2.5rem 0;
}

.intro-hero-gradient .introduction {
  padding: 0 1rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-intro {
    margin-bottom: 0.85rem;
}

/* =========================
   Sections
   ========================= */
.content-section {
  padding: 3rem 0 5rem 0;
  background: var(--color-bg);
}

.assets-section {
  background: var(--color-bg);
}

.content-section.section-alt,
.assets-section.section-alt {
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(255,255,255,0.04), transparent 60%),
    #141414;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

/* =========================
   Tiles Grid
   ========================= */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
	position: relative;
}

.asset-card {
  background-color: var(--color-tile-bg);
  border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  height: 240px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
    border-color 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
    background-color 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.asset-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .asset-card:hover .asset-card-link {
    background: linear-gradient(to bottom, var(--color-tile-bg), #222);
    transition: background-color 0.2s ease;
  }
	
  .asset-card:active .asset-card-link {
    background: inherit;
  }
  
  .asset-card:not(.asset-card--more) .asset-icon { transition: transform 140ms ease; }
  .asset-card:not(.asset-card--more):hover .asset-icon { transform: scale(1.03); }
}

@media (hover: none) {
  .asset-card:active .asset-card-link {
    background: linear-gradient(to bottom, var(--color-tile-bg), #222);
  }
}

.asset-icon {
  flex: 1;
  display: block;
  max-height: 128px;
  max-width: 128px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.asset-label {
  text-align: center;
  padding: 0 1rem;
}

.asset-label {
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  margin-top: 1rem;
  line-height: 1.25;
  min-height: calc(1.25em * 2);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.asset-image {
  height: 128px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   "+X more" tile
   ========================= */

.asset-card--more {
  position: relative;
}

.asset-image--more {
  display: contents; 
}

.more-preview{
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;

  opacity: 0.28;
  pointer-events: none;

  place-items: center;
}

.more-preview-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.more-preview-icon {
  width: min(64px, 100%);   /* was 70% */
  height: min(64px, 100%);  /* was 70% */
  object-fit: contain;
}

.more-preview-fallback {
  font-size: 2rem;
  opacity: .6;
}

.more-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: var(--fw-black);
  color: rgba(255,255,255,.9);
  text-shadow: 0 6px 20px rgba(0,0,0,.65);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .asset-card--more .more-preview { transition: opacity 140ms ease; }
  .asset-card--more .more-count { transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .asset-card--more:hover .more-preview { opacity: 0.38; }
  .asset-card--more:hover .more-count { transform: scale(1.08); }
}


/* =========================
   Tile Download button
   ========================= */

.download-button {
  display: block;
  background-color: #2a2a2a;
  color: var(--color-text);
  padding: 0.75rem 0;
  width: 100%;
  text-align: center;
  font-weight: var(--fw-bold);
  border-top: 1px solid #333;
  cursor: pointer;
}

a.download-button { 
  color: var(--color-text);
}

.download-button:focus-visible {
  outline: 2px solid var(--theme-green-hover);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .download-button:hover {
    background-color: #3a3a3a;
  }
	
  .download-button:active {
    background-color: var(--theme-green);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    transform: translateY(1px);
  }
}

@media (hover: none) {
  .download-button:active {
    background-color: #3a3a3a;
  }
}

/* =========================
   Sort Dropdown (matches CTA button)
   ========================= */
.sort-dropdown {
  position: relative;
  display: inline-block;
}

.sort-button {
  display: inline-block;
  background-color: var(--theme-green);
  padding: 0.75rem 1.5rem;
  padding-right: 2.4rem;
  border-radius: 6px;
  color: var(--color-bg);
  font-weight: var(--fw-bold);
  border: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

.sort-dropdown.open .sort-button {
  background-color: var(--theme-green);
  transform: translateY(1px);
}

.sort-button:focus-visible {
  background-color: var(--theme-green-button-hover);
}

@media (hover: hover) and (pointer: fine) {
  .sort-button:hover {
    background-color: var(--theme-green-button-hover);
  }
}

@media (hover: none) {
  .sort-button:active {
    background-color: var(--theme-green-button-hover);
  }
}

.sort-caret {
  position: absolute;
  right: 0.8rem;
  top: 50%;

  /* base state */
  transform: translateY(-50%) rotateX(0deg);
  transform-origin: center;

  color: var(--color-bg);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.sort-dropdown.open .sort-caret {
  transform: translateY(-50%) rotateX(180deg);
}

.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid rgba(var(--color-text-rgb), 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 50;
}

.sort-dropdown.open .sort-menu {
  display: block;
}

.sort-item {
  display: block;
  margin: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  color: var(--color-text);
  font-weight: var(--fw-bold);
}

@media (hover: hover) and (pointer: fine) {
  .sort-item:hover {
    background: rgba(var(--color-text-rgb), 0.08);
    color: var(--color-text);
  }
}

@media (hover: none) {
  .sort-item:active {
    background: rgba(var(--color-text-rgb), 0.08);
    color: var(--color-text);
  }
}

.sort-item.active {
  background: rgba(var(--theme-green-rgb), 0.20);
  border: 1px solid rgba(var(--theme-green-rgb), 0.35);
}

/* =========================
   Tile Sort Animation
   ========================= */

/* Animation states */
.asset-card.tile-sorting {
  opacity: 0.7;
}

.asset-card.tile-sorted {
  opacity: 1;
}

.asset-card.is-ghost-hidden {
  opacity: 0 !important;
}

.asset-card--more,
.asset-card[data-fixed="more"] {
  order: 9999;
}

/* =========================
   Tile Gallery (Page Media)
   ========================= */
.media-gallery {
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.gallery-main {
  position: relative;
  overflow: hidden;
	touch-action: pan-y;
}

.gallery-main-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  border-radius: 12px;
  background: #000;
}

.gallery-main-link {
  display: block;
	width: 100%;
}

.gallery-main-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: manipulation;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 15, 15, 0.65);
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
	display: grid;
	place-items: center;
  transition: opacity 140ms ease, background-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-main:hover .gallery-nav {
    opacity: 1;
  }
}

/* Touch: make arrows visible when the gallery is interacted with */
@media (hover: none) {
  .gallery-main:active .gallery-nav {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .gallery-nav:hover {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

@media (hover: none) {
  .gallery-nav:active {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

.gallery-nav.is-prev { left: 12px; }
.gallery-nav.is-next { right: 12px; }

.gallery-nav.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.gallery-nav svg {
  width: 22px;
  height: 22px;
}

.gallery-thumbs-wrap{
  width: 100%;
  max-width: 900px;
  margin: 0.75rem auto 0 auto;

  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.75rem;

  box-sizing: border-box;
}

.gallery-thumbs {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(110px, 14vw, 160px);
  gap: 0.75rem;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;

  padding: 0.25rem 0 0.25rem 4px;
  scroll-padding-inline: 0.75rem;

  justify-content: start;
  box-sizing: border-box;
  margin-left: -4px;
}

/* Hide horizontal scrollbar */
.gallery-thumbs::-webkit-scrollbar {
  height: 0;
}

.gallery-thumb {
  position: relative;
  box-sizing: border-box;
  height: 144px;
  padding: 1.5rem;

  border: none;
  border-radius: 10px;
  overflow: visible;
  background: transparent;

  cursor: pointer;
  opacity: 0.75;

  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  .gallery-thumb:active {
    opacity: 1;
    transform: translateY(-1px);
  }
}

/* Shared image styling */
.gallery-thumb img {
  width: 100%;
  display: block;

  border-radius: 10px;
  background: rgba(var(--color-text-rgb), 0.04);
}

/* Regular image thumbnails */
.gallery-thumb--image img {
  height: 64px;
  padding: 1rem;
  object-fit: contain;
}

/* YouTube thumbnails */
.gallery-thumb--youtube img {
  width: calc(100% + 2rem);
  height: 100%;
  padding: 0;
  object-fit: cover;
}

.gallery-thumb--youtube .thumb-play {
  position: absolute;
  inset: 1.5rem;
  transform: translateX(1.2rem);

  display: grid;
  place-items: center;

  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);

  pointer-events: none;
}

.gallery-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-thumb.is-active img {
  border: 2px solid var(--theme-green);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumb.is-active:hover {
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  .gallery-thumb.is-active:active {
    transform: translateY(-1px);
  }
}

.thumbs-nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;

  background: rgba(15, 15, 15, 0.65);
  color: var(--color-text);
  cursor: pointer;

  display: grid;
  place-items: center;

  opacity: 0;
  transition: opacity 140ms ease, background-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumbs-wrap:hover .thumbs-nav {
    opacity: 1;
  }
}

@media (hover: none) {
  .gallery-thumbs-wrap:active .thumbs-nav {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .thumbs-nav:hover {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

@media (hover: none) {
  .thumbs-nav:active {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

.thumbs-nav svg {
  width: 22px;
  height: 22px;
}

.thumbs-nav.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fullscreen lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox .lb-image {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 12px;
  display: block;
}

.gallery-lightbox .lb-video {
  width: min(92vw, 1200px);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.gallery-lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 15, 15, 0.75);
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-lightbox .lb-close:hover {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

@media (hover: none) {
  .gallery-lightbox .lb-close:active {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

.gallery-lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 15, 15, 0.75);
  color: var(--color-text);
  font-size: 2.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-lightbox .lb-nav svg {
  width: 26px;
  height: 26px;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-lightbox .lb-nav:hover {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

@media (hover: none) {
  .gallery-lightbox .lb-nav:active {
    background: rgba(var(--theme-green-rgb), 0.85);
    color: var(--color-bg);
  }
}

.lb-nav.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.gallery-lightbox .lb-prev {
	left: 18px;
}

.gallery-lightbox .lb-next {
	right: 18px;
}

/* Hide gallery UI when idle */
.gallery-ui-hidden .gallery-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide lightbox UI when idle */
.gallery-lightbox-ui-hidden .lb-nav {
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 200ms ease;
}

/* Smooth fade for lightbox controls when visible */
.gallery-lightbox .lb-close, .gallery-lightbox .lb-nav {
	transition: opacity 200ms ease, background-color 140ms ease;
}

/* =========================
   Video Embed (tile detail pages)
   ========================= */
.video-block {
  max-width: 846px;
  margin: 0 auto 3rem auto;
}

.video-title {
  font-size: 1.25rem;
  font-weight: var(--fw-black);
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 846px;
  margin: 0 auto 2.5rem auto;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.tile-meta {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(var(--color-text-rgb), 0.04);
  border: 1px solid rgba(var(--color-text-rgb), 0.08);
}

/* =========================
   About Page (clean, no box, round photo, name + role)
   ========================= */
.about-title {
  margin: 0 0 0.75rem 0;
  font-size: 2rem;
}

.about-tagline{
  color: var(--theme-green);
  margin: 0.5rem 0 0.75rem 0;
}

.about-hero-note {
  margin: 1rem auto 0 auto;
  max-width: 760px;
  line-height: 1.6;
}

.about-profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start; /* changed from center -> start (top align) */
}

.about-photo {
  align-self: start;
  justify-self: start;
}

.about-photo img {
  width: 320px;
  height: auto;          /* keep original proportions */
  max-width: 100%;
  object-fit: contain;   /* no cropping */
  border-radius: 0;      /* remove circle */
  box-shadow: none;
  display: block;
  margin: 0;
}

.about-text {
  max-width: 720px;
}

.about-meta {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--theme-green);
  letter-spacing: 0.02em;
}

.about-name {
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.about-sep {
  margin: 0 0.4rem;
  opacity: 0.6;
}

.about-role {
  opacity: 0.75;
}

.about-body {
  max-width: 680px;
  line-height: 1.7;
  opacity: 0.95;
}

.about-body p {
  margin: 0 0 1rem 0;
}

.about-highlights {
  margin: 1.25rem 0 0 0;
  padding-left: 1.25rem;
  max-width: 680px;
}

.about-highlights li {
  margin: 0.35rem 0;
  opacity: 0.95;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: rgba(var(--color-text-rgb), 0.04);
  border: 1px solid rgba(var(--color-text-rgb), 0.08);
  border-radius: 12px;
  padding: 1.5rem;
	display: flex;
  flex-direction: column;
}

.about-card .cta-button {
  margin-top: auto;        /* pushes button to bottom */
  align-self: center;      /* centers horizontally */
}

.about-card h3 {
  margin-top: 0;
}

.about-card p {
  margin-bottom: 1.5rem;
}

/* =========================
   Contact list (stacked)
   ========================= */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 0.85rem; /* spacing between rows */
}

/* Each link row */
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;

  color: var(--theme-green);
  text-decoration: none;
}

/* Fixed icon slot so all text starts on the same X */
.contact-icon-wrap{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-icon{
  width: 24px;
  height: 24px;
  overflow: visible;   /* prevents stroke clipping */
  display: block;      /* avoids inline baseline weirdness */
}

/* Keep underline only on text (prettier) */
.contact-text {
  line-height: 1.3;
  text-decoration: none;
}

.contact-item:focus-visible {
  color: var(--theme-green-hover);
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover {
    color: var(--theme-green-hover);
  }
}

@media (hover: none) {
  .contact-item:active {
    color: var(--theme-green-hover);
  }
}

.contact-item:focus-visible .contact-text {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover .contact-text {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

@media (hover: none) {
  .contact-item:active .contact-text {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* =========================
   Footer
   ========================= */
.footer {
  background-color: #000;
  color: var(--color-footer-text);
  font-size: 0.95rem;
  padding: 12rem 0 5rem 0;
}

.footer-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

/* Column titles */
.footer-title {
  color: var(--color-footer-text);
  font-weight: var(--fw-bold);
	font-size: 16pt;
  margin: 0 0 0.85rem 0;
}

/* Brand description */
.footer-desc {
  margin: 0;
  line-height: 1.7;
  color: var(--color-footer-text);
  max-width: 46ch;
}

.footer-author {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-footer-text);
}

/* Footer links */
.footer a {
  color: var(--color-footer-text);
  text-decoration: none;
}

.footer a:focus-visible {
  color: var(--color-footer-text-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
  .footer a:hover {
    color: var(--color-footer-text-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

@media (hover: none) {
  .footer a:active {
    color: var(--color-footer-text-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* Column 2 link list */
.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

/* Divider */
.footer-divider {
  height: 1px;
  background: var(--color-footer-text);
  opacity: 0.25;
  margin: 4.25rem 0 1.25rem 0;
}

/* Bottom row */
.footer-bottom {
  display: flex;
	margin-top: 2rem;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--color-footer-text);
}

.footer-bottom-centered {
  justify-content: center;
	align-items: center !Important;
  text-align: center;
  gap: 0.6rem;
}

.footer-bottom-centered span {
  white-space: nowrap;
}

.footer-copy {
  color: var(--color-footer-text);
}

.footer-licenses {
  color: var(--color-footer-text);
}

.footer-dot {
  margin: 0 0.6rem;
}

/* =========================
   Footer contact list
   ========================= */
.footer .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.footer .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-footer-text);
  text-decoration: none;
}

.footer .contact-icon-wrap {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer .contact-icon {
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
  color: var(--color-footer-text);
}

.footer .contact-item:focus-visible {
  color: var(--color-footer-text-hover);
}

.footer .contact-item:focus-visible .contact-icon {
  color: var(--color-footer-text-hover);
}

@media (hover: hover) and (pointer: fine) {
  .footer .contact-item:hover {
    color: var(--color-footer-text-hover);
  }

  .footer .contact-item:hover .contact-icon {
    color: var(--color-footer-text-hover);
  }
}

@media (hover: none) {
  .footer .contact-item:active {
    color: var(--color-footer-text-hover);
  }

  .footer .contact-item:active .contact-icon {
    color: var(--color-footer-text-hover);
  }
}

.footer .contact-text {
  line-height: 1.3;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
  .hero-content {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .assets-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 3.5rem;
  }
  
	.gallery-thumb { flex-basis: 140px; }
}

@media (max-width: 990px) {
  .assets-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-text {
    margin: 0 auto;
    text-align: left;
  }

  .about-photo {
    display: flex;
    justify-content: center;  /* Center the photo */
	justify-self: center;
  }
	
  .about-photo img {
    margin: 0 auto; /* center the image on mobile */
  }
}

@media (max-width: 750px) {
  .navbar {
    padding: 1rem 0 0.2em 0;
  }

  .mobile-nav li:last-child {
    margin-bottom: 1em;
  }
	.logo-image {
    height: 50px;
	  display: block;
  }

  .logo-link {
	  display: flex;
	  align-items: center;
	  line-height: 0;
  }

	/* Button */
	.hamburger {
		display: grid;
		padding: 0.35rem 0;
		place-items: center;
	}

	/* SVG sizing */
  .hamburger-icon{
    width: 50px;
    height: 50px;
    display: block;
  }

	/* Lines */
  .hamburger .line{
    fill: none;
    stroke: currentColor;        /* keep your theme color behavior */
    stroke-width: 7;
    stroke-linecap: round;
    transition: all 500ms;
  }

  .hamburger .top{
    transform-origin: 26px 40px;
  }

  .hamburger .middle{
    stroke-dasharray: 60 60;
		transition: all 600ms;
  }

  .hamburger .bottom{
    transform-origin: 26px 60px;
  }

  /* OPEN state instead of hover */
  .hamburger.open .top{
    transform: rotate(45deg);
  }

  .hamburger.open .middle{
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
  }

  .hamburger.open .bottom{
    transform: rotate(-45deg);
  }

  /* Optional: subtle feedback on press (not required) */
  .hamburger:active{
    transform: scale(0.98);
  }

	/* Reduced motion */
	@media (prefers-reduced-motion: reduce) {
			.hamburger .ham-line {
					transition: none !important;
			}
	}

  .desktop-nav {
    display: none;
  }

	.mobile-nav {
		display: flex;
		flex-direction: column;
		width: 100%;
		background-color: #111;
		padding: 0;
		gap: 1rem;
		margin: 0.5rem 0 0 0;
		
		/* Container animation */
		max-height: 0;
		overflow: hidden;
		opacity: 1; /* Keep container visible, items control fade */
		transition: max-height 0.5s ease-in-out, margin 0.5s ease-in-out;
	}

	.mobile-nav.open {
		max-height: 500px;
		margin: 0.5rem 0 0 0;
	}

	.mobile-nav li {
		text-align: center;
		opacity: 0;
		transition: opacity 0.25s ease-in-out;
	}

	/* Opening: fade in from top to bottom */
	.mobile-nav.open li {
		opacity: 1;
	}

	.mobile-nav.open li:nth-child(1) { transition-delay: 0ms; }
	.mobile-nav.open li:nth-child(2) { transition-delay: 50ms; }
	.mobile-nav.open li:nth-child(3) { transition-delay: 100ms; }
	.mobile-nav.open li:nth-child(4) { transition-delay: 150ms; }
	.mobile-nav.open li:nth-child(5) { transition-delay: 200ms; }
	.mobile-nav.open li:nth-child(6) { transition-delay: 250ms; }

	/* Closing: fade out from bottom to top */
	.mobile-nav:not(.open) li:nth-child(6) { transition-delay: 0ms; }
	.mobile-nav:not(.open) li:nth-child(5) { transition-delay: 80ms; }
	.mobile-nav:not(.open) li:nth-child(4) { transition-delay: 160ms; }
	.mobile-nav:not(.open) li:nth-child(3) { transition-delay: 240ms; }
	.mobile-nav:not(.open) li:nth-child(2) { transition-delay: 320ms; }
	.mobile-nav:not(.open) li:nth-child(1) { transition-delay: 400ms; }

	.mobile-nav a {
		display: block;
		width: 100%;
		padding: 0.75rem 0;
		text-align: center;
	}

	/* Respect reduced motion */
	@media (prefers-reduced-motion: reduce) {
		.mobile-nav,
		.mobile-nav li {
			transition: none !important;
		}
	}

  /* Hide arrows on the big image */
  .gallery-nav {
    display: none !important;
  }

  /* Hide arrows in lightbox */
  .gallery-lightbox .lb-nav {
    display: none !important;
  }
	
  /* Hide thumb arrows on mobile */
  .thumbs-nav {
    display: none !important;
  }

  /* IMPORTANT: make the wrapper NOT be a 3-part layout anymore */
  .gallery-thumbs-wrap {
    display: block;          /* or display:flex; either is fine */
    padding: 0;              /* remove the side padding that was for arrows */
  }

  /* Make the thumbs strip take full width */
  .gallery-thumbs {
    width: 100%;
  }	

	.footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 665px) {
  .footer-separator {
    display: none;
  }

  .footer-bottom-centered {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 0.4rem;
  }

  .footer-copy {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .footer-licenses {
    width: 100%;
    display: block;
  }

}

@media (max-width: 525px) {
  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
	
  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 485px) {
  .footer-bottom-centered {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.4rem;
  }

  .footer-copy {
    margin-bottom: 0.2rem;
  }

  .footer-licenses {
    display: block;
    white-space: normal;
  }

  .footer-dot {
    display: inline;
  }

  .footer-dot:last-of-type {
    display: none;
  }

  .footer-licenses a:last-child {
    display: block;
    margin-top: 0.4rem;
  }

  .footer-bottom-centered {
    font-size: 0.9rem;
  }
}

@media (max-width: 465px) {
  .cta-button,
  .sort-button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .footer-dot:last-of-type {
    display: none;
  }

  /* Make section header items not squeeze */
  .section-header {
    flex-wrap: wrap;
  }

  .sort-dropdown {
    display: flex;
    justify-content: center;
  }

  .sort-button {
    text-align: left;
    white-space: nowrap;
    padding-right: 2.6rem; /* room for caret */
  }
	
  .assets-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  blockquote,
  .indent {
    margin-left: 0.75rem !important;
  }
	
 .gallery-thumb img {
   height: 56px;
 }

 /* Keep the YouTube thumbnail filling its button on mobile */
 .gallery-thumb--youtube img {
   height: 100%;
 }

 /* Grid is used instead of flex, so adjust the column width here */
 .gallery-thumbs {
   grid-auto-columns: 120px;
 }
 
}