/*
Theme Name: szim2026
Author: NLJ
Description: szim 2026 website
Version: 1.0
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Theme colors */
:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --hot-pink: #ff00ff;
  --neon-green: #03ff00;
  --bg-dark: #191919;
  --bg-light: #fff;
  --gray: #2d2d2d;
  --logo-dark: #1c1c1c;
  --text-dark: #000;
  --text-light: #fff;
  /* Keyboard focus: light ring on dark UI */
  --focus-ring: rgba(255, 255, 255, 0.88);
  --focus-ring-on-light: rgba(95, 95, 95, 0.45);
  --site-max-width: 1600px;
  --site-inline-pad: 40px;
  --pad-scale: 40px;
  --hero-inner-radius: 8px;
  --project-info-radius: var(--hero-inner-radius);
  --pill-radius: 4px;
  --panel-radius: 6px;
  --project-edge-pad: var(--site-inline-pad);
  --site-drawer-toggle-width: 40px;
  --site-drawer-toggle-height: 32px;
  --site-drawer-toggle-inset-top: 12px;
  --site-drawer-toggle-inset-end: 12px;
  --site-navbar-pad-block: 24px;
  --site-navbar-height: calc(
    var(--site-navbar-pad-block) + var(--site-drawer-toggle-height) +
      var(--site-navbar-pad-block)
  );
  --site-drawer-width: min(420px, 92vw);
}

@media (min-width: 1200px) {
  :root {
    --site-drawer-width: min(480px, 34vw);
  }
}

@media (min-width: 1600px) {
  :root {
    --site-drawer-width: min(560px, 30vw);
  }
}

@media (max-width: 1200px) {
  :root {
    --site-inline-pad: 20px;
    --site-drawer-toggle-inset-top: 10px;
    --site-drawer-toggle-inset-end: 10px;
    --site-navbar-pad-block: 16px;
  }
}

@media (max-width: 1024px) {
  :root {
    --site-drawer-toggle-width: 36px;
    --site-drawer-toggle-height: 28px;
  }
}

@media (max-width: 899px) {
  :root {
    --pad-scale: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --site-inline-pad: 12px;
    --pad-scale: 12px;
    --site-drawer-toggle-width: 32px;
    --site-drawer-toggle-height: 24px;
    --site-drawer-toggle-inset-top: 8px;
    --site-drawer-toggle-inset-end: 8px;
    --site-navbar-pad-block: 8px;
  }
}

/* Focus visible — links/fields keep ring; buttons use transparent outline */
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
}

.site-footer a:focus-visible {
  outline-color: var(--focus-ring-on-light);
}

/* Hero slider dots: transparent focus (matches global buttons) */
.site-header [class*="hero-slider__dot"]:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 0 !important;
}

/* Prevent browser tap/focus highlight wash on hero slider controls */
.site-header .hero-slider,
.site-header .hero-slider * {
  -webkit-tap-highlight-color: transparent;
}

.site-header .hero-slider__dot {
  -webkit-appearance: none;
  appearance: none;
}

.site-header .hero-slider__dot:focus,
.site-header .hero-slider__dot:focus-visible,
.site-header .hero-slider__dot:active {
  outline: none !important;
  box-shadow: none !important;
}

/* External links (cross-origin): class added via wp_footer script */
a.is-external {
  color: var(--hot-pink);
}
a.is-external:hover {
  filter: brightness(0.88);
}






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

a,
button:not(:disabled),
[role="button"],
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
summary {
  cursor: pointer;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  color: #222;
  background: var(--bg-dark);
  font-family: var(--font-sans);
  font-size: 20px;
  padding-top: var(--site-navbar-height);
  transition: padding-top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

html.site-scroll-locked,
body.site-drawer--open,
body.photos-lightbox--open {
  overflow-y: hidden;
}

body.home {
  padding-top: 0;
  transition: none;
}

/* Subtle full-page navigation fade (JS adds/removes this class). */
body.site-page-fading-out {
  opacity: 0.88;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.site-page-fading-out {
    opacity: 1;
    transition: none;
  }
}

body.site-navbar--hidden {
  padding-top: 0;
}

.site-wrap {
  width: min(100%, var(--site-max-width));
  margin: 0 auto;
  padding-top: var(--pad-scale);
  padding-bottom: 60px;
}

body.home .site-wrap {
  padding-top: 0;
}

img {
  width: 100%;
  height: auto;
  background: var(--gray);
}

.site-header {
  width: 100%;
  background: var(--bg-dark);
  margin: 0;
  /* padding-inline: var(--site-inline-pad); */
}

body.home .site-header {
  padding: var(--pad-scale) var(--site-inline-pad) 0;
  margin-bottom: 40px;
}

@media (max-width: 1199px) {
  body.home .site-header {
    padding-top: 2.5rem;
  }
}

body.home .site-intro-section {
  padding-bottom: 0;
}

body.home .hero-slider-mount {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.home .hero-slider-lcp {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(85vh, 56.25vw);
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #000;
}

@media (max-width: 600px) {
  body.home .hero-slider-lcp {
    aspect-ratio: 1 / 1;
    max-height: none;
  }
}

body.home .hero-slider-mount[data-has-lcp]:not(.is-hydrated) #szim-app-root {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

body.home .hero-slider-mount.is-hydrated .hero-slider-lcp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

body.home #szim-app-root {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.home #szim-app-root .hero-slider {
  max-width: 100%;
  --hero-border: 0px;
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  border-radius: var(--hero-inner-radius, 8px);
}

/* Home intro: combined logo + headline */
.site-intro-section {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--pad-scale) 0;
  box-sizing: border-box;
}

.site-intro-section-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(100%, var(--site-max-width));
  box-sizing: border-box;
  padding: 0 var(--site-inline-pad);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

@media (min-width: 1200px) {
  .site-intro-section-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 100px;
    align-items: center;
    justify-content: flex-start;
    /* Keep copy clear of the intro hamburger */
    padding-right: calc(var(--site-inline-pad) + var(--site-drawer-toggle-width) + 1.5rem);
  }

  .site-intro-section-content {
    flex: 1 1 auto;
    width: auto;
    max-width: min(28rem, 100%);
    font-size: clamp(1.375rem, 1.95vw, 2rem);
    line-height: 1.2;
    text-wrap: balance;
  }

  body.lang-en .site-intro-section-content {
    max-width: 420px;
  }
}

.site-intro-logo-headline {
  flex: 0 0 auto;
  width: 280px;
  max-width: 100%;
}

.site-intro-logo-headline__svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-intro-section-content {
  min-width: 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 800px;
  text-wrap: balance;
}

@media (max-width: 1199px) {
  .site-intro-section-inner {
    align-items: stretch;
  }

  .site-intro-section-content {
    width: 100%;
    max-width: none;
    text-wrap: wrap;
  }

  .site-intro-section-headline,
  .site-intro-section-body {
    text-wrap: wrap;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-intro-section-content {
    font-size: 33px;
  }
}

@media (max-width: 767px) {
  .site-intro-section-content {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    line-height: 1.3;
  }
}

.site-intro-section-headline {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: inherit;
  text-transform: none;
}

.site-intro-section-body {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-intro-section-body p {
  display: inline;
  margin: 0;
  font-weight: inherit;
}

.site-intro-section-body p:last-child {
  margin-bottom: 0;
}

.site-intro-section-headline strong,
.site-intro-section-headline b {
  font-weight: 700;
}

.site-intro-section-body a {
  color: var(--hot-pink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-intro-section-body a:hover {
  color: var(--hot-pink);
  filter: brightness(0.88);
}

.site-intro-section-lang--en,
.site-intro-section-lang--de {
  display: none;
}

body.lang-en .site-intro-section-headline.site-intro-section-lang--en,
body.lang-en .site-intro-section-body.site-intro-section-lang--en {
  display: block;
}

body.lang-de .site-intro-section-headline.site-intro-section-lang--de,
body.lang-de .site-intro-section-body.site-intro-section-lang--de {
  display: block;
}

.site-intro-section-headline::after {
  content: none;
}

.site-logo-mark-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Projects tabs: About / Über mich panel */
.projects-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 900px) {
  .projects-about {
    grid-template-columns: minmax(240px, 380px) 1fr;
    align-items: start;
  }
}

.projects-about-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projects-about-media {
  margin: 0;
  background: var(--bg-dark);
  max-width: 340px;
}

.projects-about-img {
  display: block;
  width: 100%;
  height: auto;
}

.projects-about-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.projects-about-logo {
  max-width: 340px;
  color: var(--neon-green);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

@media (max-width: 899px) {
  .projects-about {
    gap: clamp(2rem, 6vw, 3rem);
  }

  .projects-about-left {
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.2rem);
  }

  .projects-about-media,
  .projects-about-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

.projects-about-content {
  margin: 0;
  line-height: 1.35;
  color: #fff;
  border-radius: var(--project-info-radius);
  padding: var(--pad-scale);
  border: 1px solid var(--neon-green);
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.projects-about-content p:last-child {
  margin-bottom: 0;
}

.projects-about-content a {
  color: var(--hot-pink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.projects-about-content a:hover {
  color: var(--hot-pink);
  filter: brightness(0.88);
}

.projects-about-content-lang--en,
.projects-about-content-lang--de {
  display: none;
}

body.lang-en .projects-about-content-lang--en,
body.lang-de .projects-about-content-lang--de {
  display: block;
}

@media (max-width: 899px) {
  .projects-about-content {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
  }
}

/* Photo cards in front grid */
.photo-card {
  margin: 0;
}

.photo-card-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  text-align: left;
}

.photo-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #222;
}

.photo-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photos-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 1.5rem auto;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  gap: 0.75rem 0;
  padding: 3.25rem 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.92);
}

.photos-lightbox[hidden] {
  display: none !important;
}

.photos-lightbox-img {
  max-width: min(1200px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.photos-lightbox-caption {
  align-self: stretch;
  justify-self: center;
  box-sizing: border-box;
  width: min(42rem, 100%);
  height: 1.5rem;
  overflow: hidden;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Keep caption band in layout so prev/next stay put with or without text. */
.photos-lightbox-caption[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.photos-lightbox-caption-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.photos-lightbox-caption-meta {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.photos-lightbox-caption-desc {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.9;
}

.photos-lightbox-caption-desc p {
  margin: 0 0 0.35rem;
}

.photos-lightbox-caption-desc p:last-child {
  margin-bottom: 0;
}

.photos-lightbox-caption-desc a {
  color: var(--hot-pink);
}

.photos-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.photos-lightbox-close:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
}

.photos-lightbox-ui {
  display: grid;
  grid-template-columns: 2.25rem minmax(5.75rem, max-content) 2.25rem;
  align-items: center;
  justify-items: center;
  column-gap: 1.25rem;
  pointer-events: none;
}

.photos-lightbox-ui[hidden] {
  display: none !important;
}

.photos-lightbox-nav {
  pointer-events: auto;
  padding: 0.2rem 0.25rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, color 0.2s ease;
}

.photos-lightbox-nav svg {
  width: 1.35rem;
  height: 1.2rem;
  display: block;
}

.photos-lightbox-nav path {
  fill: currentColor;
}

.photos-lightbox-nav--prev svg {
  transform: rotate(180deg);
}

.photos-lightbox-nav:hover {
  filter: brightness(1.12);
  color: #fff;
}

.photos-lightbox-nav:active {
  transform: scale(0.96);
}

.photos-lightbox-nav:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
}

.photos-lightbox-count {
  pointer-events: none;
  box-sizing: border-box;
  min-width: 5.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: var(--pill-radius);
  padding: 0.25rem 0.65rem;
}

@media (max-width: 899px) {
  .photos-lightbox {
    display: none !important;
  }

  .photo-card-btn {
    cursor: default;
    pointer-events: none;
  }
}

/* Contact panel */
.projects-contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.75rem 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.projects-contact-line {
  margin: 0 0 0.75rem;
}

.projects-contact-link {
  color: var(--neon-green);
  text-decoration: underline;
  font-weight: 650;
}

.projects-contact-link.is-external {
  color: var(--hot-pink);
}
.projects-contact-link.is-external:hover {
  filter: brightness(0.88);
}

.about-page {
  background: var(--bg-dark);
  color: var(--text-light);
}

.about-page-shell {
  padding-top: calc(var(--pad-scale) + 40px);
  padding-bottom: 40px;
}

.about-page-content {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--pad-scale) 0;
}

body.home .about-page-content {
  background: var(--bg-dark);
  padding: 40px 0;
}

.about-page-content-inner {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 var(--site-inline-pad);
}

.about-section-heading {
  max-width: none;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  padding: 0;
}

.logo {
  height: auto;
  width: 100%;
  max-height: 200px;
  margin-right: auto;
}

/* Fixed top navbar — slides away on scroll down, back on scroll up */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  color: #fff;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

body.site-navbar--hidden .site-navbar {
  transform: translateY(-100%);
}

body.site-drawer--open .site-navbar {
  transform: translateY(0);
}

body.site-drawer--open.home-intro-in-view .site-navbar {
  transform: translateY(-100%);
}

.site-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1600px;
  min-height: var(--site-navbar-height);
  margin: 0 auto;
  padding: var(--site-navbar-pad-block) var(--site-inline-pad);
  box-sizing: border-box;
}

.site-navbar-inner--with-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.site-navbar-page-title {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-light);
  text-align: center;
}

body.home.home-intro-in-view .site-navbar-inner {
  justify-content: flex-end;
}

body.home.home-intro-in-view .site-navbar-logo {
  display: none;
}

body.home.home-intro-in-view .site-navbar,
body.home.home-intro-in-view.site-navbar--hidden .site-navbar {
  transform: translateY(-100%);
}

.site-intro-section-top {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(100%, var(--site-max-width));
  margin: 0;
  padding: var(--pad-scale) var(--site-inline-pad) 0;
  box-sizing: border-box;
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: none;
}

.site-intro-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.site-intro-section-toolbar .site-drawer-toggle {
  margin-left: auto;
}

.site-intro-section-toolbar .site-drawer-bar {
  background: var(--text-light);
  box-shadow: none;
}

body.site-drawer--open .site-intro-section-toolbar .site-drawer-bar {
  box-shadow: 0 0 0 1px var(--text-light);
}

body.site-drawer--open .site-intro-section-top {
  z-index: 1001;
}

.site-navbar-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--site-drawer-toggle-height);
  color: inherit;
  text-decoration: none;
}

.site-navbar-logo:hover {
  color: var(--neon-green);
}

body.lang-en .site-navbar-logo:hover {
  color: var(--hot-pink);
}

.site-navbar-logo-mark {
  display: block;
  height: 100%;
  width: auto;
  aspect-ratio: 498 / 227;
}

.site-navbar-logo-mark svg,
.site-navbar-logo-mark .site-logo-mark-svg {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.site-drawer-toggle {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  --site-drawer-bar-height: 3px;
  --site-drawer-bar-gap: 7.5px;
  width: var(--site-drawer-toggle-width);
  height: var(--site-drawer-toggle-height);
  padding: 4px;
  margin: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.site-drawer-toggle .site-drawer-bar {
  display: block;
  height: var(--site-drawer-bar-height);
  width: 100%;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
  transform-origin: center;
}

@media (max-width: 1024px) {
  .site-drawer-toggle {
    --site-drawer-bar-height: 2.5px;
    --site-drawer-bar-gap: 6.75px;
    padding: 3.5px;
  }
}

@media (max-width: 600px) {
  .site-drawer-toggle {
    --site-drawer-bar-height: 2px;
    --site-drawer-bar-gap: 6px;
    padding: 3px;
  }
}

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

  .site-navbar {
    transition: none;
  }
}

body.site-drawer--open .site-drawer-toggle .site-drawer-bar:nth-child(1) {
  transform: translateY(calc(var(--site-drawer-bar-height) + var(--site-drawer-bar-gap))) rotate(45deg);
}

body.site-drawer--open .site-drawer-toggle .site-drawer-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

body.site-drawer--open .site-drawer-toggle .site-drawer-bar:nth-child(3) {
  transform: translateY(calc((var(--site-drawer-bar-height) + var(--site-drawer-bar-gap)) * -1)) rotate(-45deg);
}

body.site-drawer--open .site-drawer-toggle .site-drawer-bar {
  box-shadow: 0 0 0 1px #000;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.site-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: var(--site-drawer-width);
  height: 100%;
  max-height: 100dvh;
  background: var(--bg-dark);
  transform: translateY(-105%);
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  padding:
    calc(var(--site-navbar-height) + 1.25rem) var(--site-inline-pad)
    2rem;
}

.site-drawer-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  min-height: 0;
}

.site-drawer-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
}

.site-drawer-index-trigger {
  width: 100%;
  justify-content: center;
}

body.lang-en .site-drawer-index-trigger {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
}

body.lang-de .site-drawer-index-trigger {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.site-project-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.site-project-index-item {
  margin: 0;
  border-bottom: none;
}

.site-project-index-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  transition: color 0.15s ease;
}

.site-project-index-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  background: #2a2a2a;
}

.site-project-index-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.site-project-index-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-project-index-link:hover {
  color: var(--neon-green);
}

body.lang-en .site-project-index-link:hover {
  color: var(--hot-pink);
}

.site-project-index-item.is-preview-active .site-project-index-link {
  color: var(--hot-pink);
}

.site-project-index-line {
  display: block;
}

.site-project-index-line--title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-project-index-line--client {
  font-weight: 500;
  opacity: 0.92;
}

.site-project-index-line--year {
  font-size: 0.92em;
  font-weight: 500;
  opacity: 0.85;
}

.site-drawer-tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: stretch;
}

.site-drawer-tabs .projects-tabs-pill {
  width: 100%;
  justify-content: center;
}

/* Drawer nav: no visual active state. */
.site-drawer-tabs .projects-tabs-pill--active {
  background: var(--bg-dark);
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.site-drawer-tabs .projects-tabs-pill--active:hover {
  background: var(--bg-dark);
  color: var(--hot-pink);
  border-color: var(--hot-pink);
}

/* Drawer section links: pink when site language is English */
body.lang-en .site-drawer-tabs .projects-tabs-pill {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
}
body.lang-en .site-drawer-tabs .projects-tabs-pill--active {
  background: var(--bg-dark);
  color: var(--hot-pink);
  border-color: var(--hot-pink);
}
body.lang-en .site-drawer-tabs .projects-tabs-pill:hover:not(.projects-tabs-pill--active),
body.lang-en .site-drawer-tabs .projects-tabs-pill--anchor:hover {
  background: var(--bg-dark);
  color: var(--neon-green);
  border-color: var(--neon-green);
}
body.lang-en .site-drawer-tabs .projects-tabs-pill--active:hover {
  background: var(--bg-dark);
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.site-drawer-lang {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.site-drawer-lang-btn {
  padding: 0.45rem 0.85rem;
  border: 2px solid;
  border-radius: var(--pill-radius);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

/* Lang switcher: inactive = neutral; chosen = green (DE) or pink (EN) */
.site-drawer-lang-btn:not(.site-drawer-lang-btn--active) {
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.55);
}
.site-drawer-lang-btn[data-lang="de"].site-drawer-lang-btn--active {
  border-color: var(--neon-green);
  color: var(--neon-green);
}
.site-drawer-lang-btn[data-lang="en"].site-drawer-lang-btn--active {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
}

.site-drawer-lang-btn[data-lang="de"]:hover,
.site-drawer-lang-btn[data-lang="de"]:focus-visible {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.site-drawer-lang-btn[data-lang="en"]:hover,
.site-drawer-lang-btn[data-lang="en"]:focus-visible {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
}

.site-drawer-txt--de,
.site-drawer-txt--en {
  display: none;
}

body.lang-de .site-drawer-txt--de {
  display: inline;
}

body.lang-en .site-drawer-txt--en {
  display: inline;
}

body.site-drawer--open .site-drawer {
  pointer-events: auto;
}

body.site-drawer--open .site-drawer-overlay {
  opacity: 1;
}

body.site-drawer--open .site-drawer-panel {
  transform: translateY(0);
}

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

.projects-section--tabbed {
  padding-top: calc(var(--site-drawer-toggle-inset-top) + var(--site-drawer-toggle-height) + 10px);
}

/* ----- Project single page (dark layout) ----- */
body.project-page {
  background: #191919;
  color: var(--text-light);
  padding-top: 0;
  /* Gap between static title bar and hero / content (desktop) */
  --project-page-below-header-gap: var(--project-page-pad-x);
  /* Vertical spacing between project content and Newer/Older nav */
  --project-nav-top-gap: 100px;
  /* Fixed horizontal insets by breakpoint: desktop/tablet/mobile */
  --project-page-pad-x: var(--site-inline-pad);
  --project-page-pad-x-start: var(--site-inline-pad);
  --project-page-pad-x-end: var(--site-inline-pad);
  /* Keep top offset in sync with single-page side padding */
  --project-page-pad-y-top: var(--project-page-pad-x-start);
  --project-page-title-size: clamp(1.4rem, 3vw, 3rem);
  --project-page-title-line-height: 1.25;
  --project-page-toggle-size: var(--site-drawer-toggle-width);
  --project-desktop-col-gap: var(--project-page-pad-x);
}

body.project-page .site-header {
  background: #191919;
  padding: var(--pad-scale) var(--site-inline-pad) 0;
  max-width: var(--site-max-width);
  margin: 0 auto;
  transition: padding 0.28s ease;
}

body.project-page #szim-app-root {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-inline-pad);
  box-sizing: border-box;
}

body.project-page #szim-app-root .hero-slider {
  max-width: 100%;
  --hero-border: 0px;
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  border-radius: var(--hero-inner-radius, 8px);
}

body.project-page .lang-switcher {
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.project-page .lang-switcher-sep {
  display: none;
}

body.project-page .lang-switcher-link--active {
  color: var(--neon-green);
}

body.project-page .lang-switcher-link:not(.lang-switcher-link--active) {
  color: rgba(255, 255, 255, 0.85);
}

.project-page-shell {
  padding-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.project-page .project-page-shell {
  padding-top: 12px;
}

body.project-page.project-has-hero .project-page-shell {
  padding-top: calc(12px + var(--site-navbar-height));
}

body.project-page.project-has-hero #szim-app-root {
  margin-bottom: var(--project-page-below-header-gap);
}

body.project-page .site-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.project-page-top {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 var(--project-page-pad-x-start) 0;
  padding-right: var(--project-page-pad-x-end);
  max-width: none;
  margin: 0;
  background: var(--bg-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: padding 0.28s ease;
}

body.project-page .project-page-top {
  box-shadow: none;
  padding-bottom: 0;
}

.project-page-top-inner {
  width: min(100%, var(--site-max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  box-sizing: border-box;
}

.project-page-heading {
  min-width: 0;
  flex: 1;
}

.project-page-title {
  margin: 0;
  font-size: var(--project-page-title-size);
  font-weight: 700;
  line-height: var(--project-page-title-line-height);
  color: var(--text-light);
}

.project-page-client {
  font-weight: 700;
}

.project-page-work {
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-page-top-actions {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.project-page-nav-wrap {
  position: relative;
}

.project-page-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

.project-page-menu-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.project-page-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  padding: 0.75rem 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--panel-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 120;
}

.project-page-dropdown.site-nav-menu--open {
  display: block;
}

.project-page-dropdown-link {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

.project-page-dropdown-link:hover {
  color: var(--neon-green);
}

body.project-page .project-single {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-inline-pad) 2rem;
  flex: 1 0 auto;
  box-sizing: border-box;
  transition: padding 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

body.project-page:not(.project-has-hero) .project-single {
  padding-top: var(--site-navbar-height);
}

body.project-page.project-has-hero .project-single {
  padding-top: 0;
}

body.project-page .project-single-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

body.project-page .project-single-intro > .project-single-grid-item,
body.project-page .project-single-intro > .project-single-meta {
  min-width: 0;
  width: 100%;
}

body.project-page .project-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

body.project-page .project-single-grid > .project-single-grid-item {
  min-width: 0;
  width: 100%;
}


body.project-page .project-single-meta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #fff;
  border: 1px solid var(--neon-green);
  border-radius: var(--project-info-radius);
  padding: var(--pad-scale);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 899px) {
  body.project-page .project-single-meta {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
  }
}

body.project-page .project-single-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

body.project-page .project-single-client,
body.project-page .project-single-work {
  display: inline;
}

body.project-page .project-single-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

body.project-page .project-single-list li {
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.project-page .project-single-list li:last-child {
  margin-bottom: 0;
}

body.project-page .project-single-label-lang--en,
body.project-page .project-single-label-lang--de {
  display: none;
}

body.lang-en.project-page .project-single-label-lang--en,
body.lang-de.project-page .project-single-label-lang--de {
  display: inline;
}

body.project-page .project-single-list strong {
  font-weight: inherit;
}

body.project-page .project-single-about {
  margin-top: 0;
  padding-top: 0;
}

body.project-page .project-single-about-body {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.project-page .project-single-about-body a {
  color: var(--hot-pink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.project-page .project-single-about-body a:hover {
  color: var(--hot-pink);
  filter: brightness(0.88);
}

body.project-page .project-single-about-body a.is-external,
body.project-page .project-single-about-body a.is-external:hover {
  color: var(--hot-pink);
  filter: none;
}

body.project-page .project-single-about-body a.is-external:hover {
  filter: brightness(0.88);
}

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

body.project-page .project-single-about-body p:last-child {
  margin-bottom: 0;
}

body.project-page .project-single-about-body-lang--en,
body.project-page .project-single-about-body-lang--de {
  display: none;
}

body.lang-en.project-page .project-single-about-body-lang--en,
body.lang-de.project-page .project-single-about-body-lang--de {
  display: block;
}

body.project-page .project-single-links {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: inherit;
}

body.project-page .project-single-links li {
  margin-bottom: 0.4rem;
}

body.project-page .project-single-link {
  color: var(--hot-pink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.project-page .project-single-link:hover {
  color: var(--hot-pink);
  filter: brightness(0.88);
}

body.project-page .project-single-link.is-external,
body.project-page .project-single-link.is-external:hover {
  color: var(--hot-pink);
  filter: none;
}
body.project-page .project-single-link.is-external:hover {
  filter: brightness(0.88);
}

body.project-page .project-single-figure {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-dark);
}

body.project-page .project-single-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
  line-height: 0;
  text-align: left;
}

@media (min-width: 900px) {
  body.project-page .project-single-img-btn {
    cursor: zoom-in;
  }
}

@media (max-width: 899px) {
  body.project-page .project-single-img-btn {
    pointer-events: none;
  }
}

body.project-page .project-single-img {
  display: block;
  width: 100%;
  height: auto;
}

body.project-page .project-single-embed {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

body.project-page .project-single-embed iframe,
body.project-page .project-single-embed video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.project-page .project-single-block {
  margin: 0;
}

/* Top-align embed; exclude plugin root <a class="_3d-flip-book"> from pill styles (avoids extra margin). */
body.project-page .project-single-block--flip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
  padding-top: 0;
  background: var(--gray);
  padding-left: 12px;
  padding-right: 12px;
}

/* DearFlip / 3D Flip Book: strip stray top spacing so the book lines up with the meta box. */
body.project-page .project-single-block--flip > *:first-child {
  margin-top: 0 !important;
}

body.project-page .project-single-block--flip ._3d-flip-book {
  display: block;
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 0;
}

body.project-page .project-single-block--flip ._3d-flip-book canvas,
body.project-page .project-single-block--flip ._3d-flip-book img {
  line-height: normal;
  vertical-align: top;
}

body.project-page .project-single-block--flip a:not(._3d-flip-book),
body.project-page .project-single-block--flip button,
body.project-page .project-single-block--flip .flipbook-button,
body.project-page .project-single-block--flip input[type="submit"] {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.55rem 1.35rem;
  background: #ffff00;
  color: #000;
  border: none;
  border-radius: var(--pill-radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

/* Bottom project navigation: in normal flow after project content. */
body.project-page .project-single-nav {
  position: static;
  margin-top: auto;
  padding: var(--site-inline-pad);
  box-sizing: border-box;
  background: var(--bg-dark);
  border-top: none;
  transition: padding 0.28s ease;
  display: block;
  padding-top: 100px;
}

@media (max-width: 899px) {
  body.project-page .project-single-nav {
    padding: 80px var(--site-inline-pad) 20px var(--site-inline-pad);
  }
}

body.project-page .site-footer {
  margin-top: 0;
}

body.project-page .project-single-nav__inner {
  width: min(100%, var(--site-max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

body.project-page .project-single-nav__cell {
  min-width: 0;
}

body.project-page .project-single-nav__cell--start {
  text-align: left;
}

body.project-page .project-single-nav__cell--end {
  text-align: right;
}

body.project-page .project-single-nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  width: auto;
  min-height: 0;
  padding: 0;
  font-size: 0.75em;
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}

body.project-page .project-single-nav-link:hover,
body.project-page .project-single-nav-link:focus-visible,
body.project-page .project-single-nav-link:active {
  color: var(--neon-green);
}

body.project-page .project-single-nav-link--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.site-footer {
  margin-top: 0;
  padding: 24px 0;
  background: #ededed;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  color: #000;
}

.site-footer-inner {
  width: min(100%, var(--site-max-width));
  margin: 0 auto;
  padding: 0 var(--site-inline-pad);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem clamp(1rem, 3vw, 3.25rem);
}

.site-footer-brand,
.site-footer-nav,
.site-footer-nav a,
.site-footer-sep {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #000;
}

.site-footer-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15em 0.5em;
}

.site-footer a {
  color: #000;
  text-decoration: none;
  font-weight: 800;
}

.site-footer a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.11em;
}

@media (max-width: 899px) {
  .site-footer {
    padding: 18px 0;
  }
}

.project-index-page {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 0;
  --project-desktop-col-gap: var(--project-page-pad-x);
  --project-page-below-header-gap: var(--project-page-pad-x);
  --project-page-pad-x: var(--site-inline-pad);
  --project-page-pad-x-start: var(--project-page-pad-x);
  --project-page-pad-x-end: var(--project-page-pad-x);
  --project-page-pad-y-top: var(--project-page-pad-x-start);
  --project-page-title-size: clamp(1.4rem, 3vw, 3rem);
  --project-page-title-line-height: 1.25;
}

body.project-index-page .site-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.project-index-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(12px + var(--site-navbar-height));
  padding-bottom: 3rem;
}

.project-index-main {
  width: min(100%, var(--site-max-width));
  margin: 0 auto;
  padding: 0 var(--project-page-pad-x);
}

.project-index-main > :first-child {
  margin-top: 0;
}

.project-index-filters-bar {
  margin-bottom: 20px;
}

.project-index-filters.projects-grid-filters {
  padding-left: 0;
  padding-right: 0;
}

.project-index-empty {
  margin: 1rem 0 0;
}

.project-index-list-wrap {
  margin-top: 0;
}

.project-index-layout {
  display: block;
}

.project-index-list {
  max-height: none;
  overflow: visible;
  padding-bottom: 1rem;
}

.project-index-preview {
  display: none;
}

.project-index-preview-sticky {
  position: sticky;
  top: calc(var(--site-navbar-height) + 1.25rem);
}

.project-index-preview-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  /* Leave room for filters above, and a little padding at the bottom. */
  max-height: calc(100vh - var(--site-navbar-height) - 5rem);
  max-height: calc(100dvh - var(--site-navbar-height) - 5rem);
  object-fit: contain;
  object-position: top center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.project-index-preview-img.is-visible {
  opacity: 1;
}

.project-index-preview-img[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-index-preview-img {
    transition: none;
  }
}

@media (min-width: 1100px) {
  .project-index-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(100px, 8vw, 200px);
    align-items: stretch;
  }

  .project-index-list {
    width: auto;
    max-width: none;
  }

  .project-index-preview {
    display: block;
    min-width: 0;
    /* Stretch with the list so sticky has room to travel while scrolling. */
    min-height: 100%;
  }

  .project-index-preview-sticky {
    position: sticky;
    top: calc(var(--site-navbar-height) + 1.25rem);
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .project-index-preview-img {
    margin-inline: auto;
  }

  body.project-index-page .site-project-index-thumb {
    display: none;
  }

  body.project-index-page .site-project-index-link {
    flex-direction: column;
    align-items: stretch;
    gap: 0.18rem;
  }
}

.disclaimer-main .disclaimer-page {
  color: var(--text-light);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.55;
}

.disclaimer-main {
  max-width: 70ch;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.legal-main {
  max-width: 70ch;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.legal-page-content {
  color: var(--text-light);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.55;
}

.legal-page-content > :first-child {
  margin-top: 0 !important;
}

.legal-page-content p,
.legal-page-content li,
.legal-page-content div,
.legal-page-content span,
.legal-page-content h1,
.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4,
.legal-page-content h5,
.legal-page-content h6 {
  color: var(--text-light);
}

.legal-page-content a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-page-content a:hover {
  color: var(--neon-green);
}

body.disclaimer-legal-page {
  --project-page-title-size: clamp(1.4rem, 3vw, 3rem);
  --project-page-title-line-height: 1.25;
}

.disclaimer-main .disclaimer-page--en {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.disclaimer-main .disclaimer-lang-link {
  margin: 0 0 1rem;
}

.disclaimer-main .disclaimer-page p,
.disclaimer-main .disclaimer-page li,
.disclaimer-main .disclaimer-page div,
.disclaimer-main .disclaimer-page span,
.disclaimer-main .disclaimer-page h1,
.disclaimer-main .disclaimer-page h2,
.disclaimer-main .disclaimer-page h3,
.disclaimer-main .disclaimer-page h4,
.disclaimer-main .disclaimer-page h5,
.disclaimer-main .disclaimer-page h6 {
  color: var(--text-light);
}

.disclaimer-main .disclaimer-page a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.disclaimer-main .disclaimer-page a:hover {
  color: var(--neon-green);
}

.disclaimer-main .disclaimer-page > :first-child {
  margin-top: 0 !important;
}

@media (min-width: 900px) {
  body.project-page .project-single-intro,
  body.project-page .project-single-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--project-desktop-col-gap);
  }

  body.project-page .project-single-intro--meta-only {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----- Front page: tabbed projects grid ----- */

.projects-section {
  min-height: 0;
}

.projects-section--tabbed {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0;
}

.projects-section-heading {
  max-width: 1600px;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  padding: 0 var(--site-inline-pad);
}

.projects-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-light);
}

@media (max-width: 899px) {
  body.home {
    --home-mobile-section-gap: 1.75rem;
  }

  .projects-grid-see-all {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .site-intro-section {
    padding-top: var(--pad-scale);
  }

  .projects-section--tabbed {
    padding-bottom: 20px;
  }

  body.home .about-page-content {
    padding: 20px 0;
  }

  .about-page-content-inner {
    padding: 0 var(--site-inline-pad);
  }
}

.projects-tabs-bar {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid-see-all {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--neon-green);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.projects-grid-see-all:hover {
  color: var(--hot-pink);
}

body.lang-en .projects-grid-see-all:hover {
  color: var(--neon-green);
  filter: brightness(1.08);
}

.photos-see-all-wrap {
  display: none;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
}

@media (min-width: 900px) {
  .photos-see-all-wrap {
    display: block;
  }
}

.photos-see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--neon-green);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.photos-see-all:hover {
  color: var(--hot-pink);
}

body.lang-en .photos-see-all:hover {
  color: var(--neon-green);
  filter: brightness(1.08);
}

.photos-see-all:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.projects-tabs-pills,
.projects-grid-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  padding-left: var(--site-inline-pad);
  padding-right: var(--site-inline-pad);
}

.projects-grid-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 899px) {
  .projects-grid-filter-tabs {
    display: contents;
  }
}

.projects-tabs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--pill-radius);
  background: var(--bg-dark);
  cursor: pointer;
  text-decoration: none;
  transition:
    all 0.2s ease-in,
    color 0.2s,
    border-color 0.2s;
  /* Nav buttons are always green */
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

/* Selected tab = green fill, black text */
.projects-tabs-pill--active {
  background: var(--neon-green);
  color: #000;
  border-color: var(--neon-green);
}

/* Hover non-active: same as selected tab */
.projects-tabs-pill:hover:not(.projects-tabs-pill--active) {
  background: var(--neon-green);
  color: #000;
  border-color: var(--neon-green);
}

.projects-tabs-pill--active:hover {
  background: var(--neon-green);
  color: #000;
  border-color: var(--neon-green);
}

.projects-tabs-pill--anchor:hover {
  background: var(--neon-green);
  color: #000;
  border-color: var(--neon-green);
}

.projects-tabs-pill-txt--de,
.projects-tabs-pill-txt--en {
  display: none;
}

body.lang-de .projects-tabs-pill-txt--de,
body.lang-de .projects-tabs-pill--anchor .projects-tabs-pill-txt--de {
  display: inline;
}

body.lang-en .projects-tabs-pill-txt--en,
body.lang-en .projects-tabs-pill--anchor .projects-tabs-pill-txt--en {
  display: inline;
}

/* Anchor pills follow same hover behavior */

.projects-tabs-menu {
  position: relative;
  flex-shrink: 0;
}

.projects-tabs-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

.projects-tabs-menu-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.projects-tabs-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 10rem;
  padding: 0.5rem 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--panel-radius);
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.projects-tabs-dropdown.site-nav-menu--open {
  display: block;
}

.projects-tabs-dropdown-link {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

.projects-tabs-dropdown-link:hover {
  color: var(--neon-green);
}

.projects-tabs-panel[hidden] {
  display: none !important;
}

.projects-tabs-panel--active {
  display: block;
}

.projects-grid-stage {
  position: relative;
  transition: min-height 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-grid-panel {
  display: block;
  transition:
    opacity 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.34s;
}

.projects-grid-panel[hidden]:not(.projects-grid-panel--leaving) {
  display: none !important;
}

.projects-grid-panel--active:not(.projects-grid-panel--entering):not(.projects-grid-panel--leaving) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.projects-grid-panel--leaving {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: block !important;
  opacity: 0;
  visibility: visible;
  transform: translateY(-10px);
  pointer-events: none;
}

.projects-grid-panel--entering {
  position: relative;
  z-index: 2;
  opacity: 0;
  visibility: visible;
  transform: translateY(14px);
}

@keyframes projects-grid-item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.projects-grid-panel--animate-cards .project-card,
.projects-grid-panel--animate-cards .photo-card--grid {
  animation: projects-grid-item-in 0.42s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.projects-grid-panel--animate-cards .project-card:nth-child(1),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(1) {
  animation-delay: 0ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(2),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(2) {
  animation-delay: 35ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(3),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(3) {
  animation-delay: 70ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(4),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(4) {
  animation-delay: 105ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(5),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(5) {
  animation-delay: 140ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(6),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(6) {
  animation-delay: 175ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(7),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(7) {
  animation-delay: 210ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(8),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(8) {
  animation-delay: 245ms;
}

.projects-grid-panel--animate-cards .project-card:nth-child(n + 9),
.projects-grid-panel--animate-cards .photo-card--grid:nth-child(n + 9) {
  animation-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .projects-grid-stage,
  .projects-grid-panel,
  .projects-grid-panel--animate-cards .project-card,
  .projects-grid-panel--animate-cards .photo-card--grid,
  .project-card-image,
  .photo-card-img {
    transition: none;
    animation: none;
  }

  .projects-grid--front .project-card-link:hover .project-card-image,
  .projects-grid--front .photo-card-btn:hover .photo-card-img {
    transform: none;
  }
}

.projects-tabs-empty {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin: 2rem 0;
}

/* Front-page project grid */
.projects-grid-wrap {
  width: 100%;
  padding: 0 var(--site-inline-pad) 1.25rem;
}

.projects-grid--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 1600px;
  margin: 0 auto;
}

.projects-grid--front {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .projects-grid--front {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.project-card {
  margin: 0;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #2a2a2a;
  overflow: hidden;
  transition: transform 0.2s;
}

.project-card-link:hover {
  transform: none;
}

.project-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #222;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .projects-grid--front .project-card-link:hover .project-card-image,
  .projects-grid--front .photo-card-btn:hover .photo-card-img {
    transform: scale(1.1);
  }
}

.projects-grid--front .project-card-link {
  border-radius: var(--hero-inner-radius);
}

.projects-grid--front .photo-card-btn {
  border-radius: var(--hero-inner-radius);
  overflow: hidden;
}

body.home .projects-grid--front .photo-card-btn {
  border-radius: 0;
}

@media (min-width: 900px) {
  body.home .projects-grid--front .photo-card-btn {
    cursor: zoom-in;
  }
}

.projects-grid--front .project-card,
.projects-grid--front .photo-card--grid {
  min-width: 0;
}

.projects-grid--front .project-card-media {
  width: 100%;
  aspect-ratio: 1 / 1.414;
}

.projects-grid--front .photo-card-media {
  width: 100%;
}

.project-card-below {
  padding: 0.75rem 0.9rem 0.95rem;
  background: #2a2a2a;
  color: var(--text-light);
}

.project-card-below-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.project-card-below-cat {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.project-card-below-desc {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.project-card-below-inner,
.project-card-below-lang--de,
.project-card-below-lang--en {
  max-width: 100%;
}

.project-card-below-lang--de,
.project-card-below-lang--en {
  display: none;
}

body.lang-de .project-card-below-lang--de {
  display: block;
}

body.lang-en .project-card-below-lang--en {
  display: block;
}

@media (min-width: 900px) {
  .project-card-below {
    display: none;
  }
}

.project-card-hover {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--neon-green) 72%, transparent);
  text-align: center;
}

.project-card-hover-inner {
  width: 100%;
}

.project-card-hover-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.2;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-card-hover-cat {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
}

.project-card-hover-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.85);
}

.project-card-hover-line + .project-card-hover-line {
  margin-top: 0.35rem;
}

.project-card-hover-lang--de,
.project-card-hover-lang--en {
  display: none;
}

body.lang-de .project-card-hover-lang--de {
  display: block;
}

body.lang-en .project-card-hover-lang--en {
  display: block;
}

@media (min-width: 900px) {
  .project-card-hover {
    display: flex;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .project-card-link:hover .project-card-hover {
    opacity: 1;
  }

  .project-card-mobile-title {
    display: none;
  }
}

.project-card-mobile-title {
  padding: 0.65rem 0.75rem 0.85rem;
  background: #2a2a2a;
}

.project-card-mobile-txt--de,
.project-card-mobile-txt--en {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
}

body.lang-de .project-card-mobile-txt--de {
  display: block;
}

body.lang-en .project-card-mobile-txt--en {
  display: block;
}

/* Mobile: optional hide titles entirely */
@media (max-width: 899px) {
  .projects-section--tabbed.projects-mobile-no-titles .project-card-mobile-title {
    display: none;
  }
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
  .project-card-hover {
    background: rgba(3, 255, 0, 0.72);
  }
}

.kontakt-section {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.kontakt-section-lang--de,
.kontakt-section-lang--en {
  display: none;
  margin: 0;
}

body.lang-de .kontakt-section-lang--de {
  display: block;
}

body.lang-en .kontakt-section-lang--en {
  display: block;
}

.error-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--site-inline-pad);
  color: var(--text-light);
}

.error-page-logo {
  width: clamp(140px, 28vw, 220px);
  margin: 0 0 1.5rem;
  color: var(--text-light);
}

.error-page-logo svg,
.error-page-logo .site-logo-mark-svg {
  display: block;
  width: 100%;
  height: auto;
}

.error-page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.error-page-message {
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

/* Shared section selector: info, projects, about */
.projects-section--tabbed,
.about-page-content {
  padding-top: 100px;
  padding-bottom: 100px;
}

body.home .projects-section--tabbed {
  padding-top: var(--pad-scale);
}

@media (max-width: 899px) {
  body.home .site-header {
    padding-top: 2.25rem;
    margin-bottom: 20px;
  }

  body.home .about-page-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.home .projects-section--tabbed {
    padding-top: var(--home-mobile-section-gap, 1.75rem);
  }
}

/* Album pages */
.album-archive-page .album-archive {
  padding-bottom: max(160px, calc(2rem + 80px));
}

.album-archive-page .album-archive-grid-wrap {
  padding-left: 0;
  padding-right: 0;
}

.album-archive-page .album-single-header {
  margin: 0;
  max-width: 42rem;
}

.album-archive-page .album-single-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--project-page-title-size, clamp(1.4rem, 3vw, 3rem));
  font-weight: 400;
  line-height: var(--project-page-title-line-height, 1.25);
  color: #fff;
}

body.album-page .project-single.album-single {
  padding-bottom: max(160px, calc(2rem + 80px));
}

body.album-page .album-single-header {
  margin: 0;
  max-width: 42rem;
}

body.album-page .album-single-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1rem;
  margin: 0 0 0.75rem;
}

body.album-page .album-single-heading:last-child {
  margin-bottom: 0;
}

body.album-page .album-single-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--project-page-title-size, clamp(1.4rem, 3vw, 3rem));
  font-weight: 400;
  font-style: normal;
  line-height: var(--project-page-title-line-height, 1.25);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

body.album-page .album-single-count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

body.album-page .album-single-desc {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.album-page .album-single-desc-lang--de,
body.album-page .album-single-desc-lang--en {
  display: none;
}

body.lang-de.album-page .album-single-desc-lang--de,
body.lang-en.album-page .album-single-desc-lang--en {
  display: block;
}

@media (max-width: 899px) {
  body.album-page .album-single-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

body.album-page .album-single-desc p {
  margin: 0 0 0.75rem;
}

body.album-page .album-single-desc p:last-child {
  margin-bottom: 0;
}

body.album-page .album-single-desc a {
  color: var(--hot-pink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.album-page .album-single-desc a:hover {
  filter: brightness(0.88);
}

/* Justified album grid: same-height image rows, aspect widths (≥ ~1/4), captions below. */
body.album-page {
  scrollbar-gutter: stable;
}

body.album-page .album-single-grid.project-single-grid,
body.album-page .album-single-grid {
  display: block !important;
  position: relative;
  grid-template-columns: none !important;
  gap: 0;
  min-height: 1px;
}

body.album-page .album-single-grid > .project-single-grid-item.album-photo {
  width: auto;
  max-width: 100%;
  min-width: 0;
}

body.album-page .album-single-grid[data-album-justified]:not([data-album-justified-ready]) > .album-photo {
  display: inline-block;
  vertical-align: top;
  width: calc(25% - 8px);
  max-width: 100%;
}

body.album-page .album-photo {
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
}

body.album-page .album-photo .project-single-img-btn {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: none;
  background: #1a1a1a;
  line-height: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

body.album-page .album-photo .project-single-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: none;
}

body.album-page .album-single-grid .album-photo-caption {
  display: none;
}

/* Captions in grid only when fullscreen lightbox is disabled. */
@media (max-width: 899px) {
  body.album-page .album-single-grid .album-photo-caption {
    display: block;
  }

  body.album-page .album-photo {
    gap: 0.45rem;
  }
}

body.album-page .album-photo-caption {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
}

body.album-page .album-photo-caption-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

body.album-page .album-photo-caption-desc {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

body.album-page .album-photo-caption-desc p {
  margin: 0 0 0.35rem;
}

body.album-page .album-photo-caption-desc p:last-child {
  margin-bottom: 0;
}

body.album-page .album-photo-caption-desc a {
  color: var(--hot-pink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 599px) {
  body.album-page .album-single-grid.project-single-grid,
  body.album-page .album-single-grid {
    display: grid !important;
    position: static;
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem;
  }

  body.album-page .album-single-grid > .project-single-grid-item.album-photo,
  body.album-page .album-photo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    flex: none !important;
  }

  body.album-page .album-photo .project-single-img-btn {
    height: auto !important;
    background: transparent;
  }

  body.album-page .album-photo .project-single-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  body.album-page .album-photo-caption {
    font-size: 0.8rem;
  }
}

.album-single-back {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.4;
}

.album-single-back a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
}

.album-single-back a:hover {
  color: var(--neon-green);
}

.album-card .project-card-image {
  object-fit: cover;
  object-position: center;
}

.album-card .project-card-link,
.album-card .project-card-link img {
  cursor: pointer;
}

.album-card-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #2a2a2a;
}

.album-card .album-card-count {
  font-family: var(--font-sans);
}
