@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap");


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --bg: #f5f4ee;
  --text: #333;
  --muted: #666;
  --line: #e2e1d9;
  --dark: #0e0e0c;
}


/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier Prime", monospace;
}

body.gallery-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 24px 28px;
}

.site-brand {
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
}


/* =========================================================
   PAGE STRUCTURE
========================================================= */

.pxsid-page {
  min-height: 100vh;
  background: var(--bg);
}

.page-content {
  position: relative;
  z-index: 10;
}

.intro-spacer {
  height: 85vh;
}


/* =========================================================
   INTRO OVERLAY
========================================================= */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  pointer-events: none;
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}


.welcome p {
  min-height: 1.2em;
  margin: 0;
  color: #333;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.05em;
}

/*
.welcome p::after {
  content: "|";
  color: #aaa;
  animation: blink 0.8s step-end infinite;
}


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

/* =========================================================
   SCROLL ARROW
========================================================= */

.scroll-arrow {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #aeada6;
  pointer-events: none;
  will-change: transform, opacity;
}

.arrow-symbol {
  font-size: 0.9rem;
  line-height: 1;
  transform: rotate(90deg);
}

.arrow-label {
  font-size: 0.5rem;
  letter-spacing: 0.28em;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.eyebrow {
  margin: 0 0 48px;
  color: #c0bfb6;
  text-transform: uppercase;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
}

.timeline {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: -200px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.timeline-card {
  position: relative;
  display: flex;
  margin-bottom: 112px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.timeline-card.visible {
  opacity: 1;
  transform: none;
}

.timeline-card.is-right {
  justify-content: flex-end;
}

.timeline-card.is-left {
  justify-content: flex-start;
}

.timeline-dot {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8c7be;
  transform: translateX(-50%);
}

.card-inner {
  width: 44%;
}


/* =========================================================
   PORTFOLIO IMAGE
========================================================= */

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e4e3da;
}

/* Horizontal image */
.image-frame.is-landscape {
  aspect-ratio: 3 / 2;
}

/* Vertical image */
.image-frame.is-portrait {
  aspect-ratio: 2 / 3;
}

/* Square image */
.image-frame.is-square {
  aspect-ratio: 1 / 1;
}

/* Wide panoramic image */
.image-frame.is-panorama {
  aspect-ratio: 16 / 9;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image-button:hover img {
  transform: scale(1.03);
}

.image-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 12, 0.18);
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-button:hover .image-hover,
.image-button:focus-visible .image-hover {
  opacity: 1;
}

/* =========================================================
   CARD META
========================================================= */

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
}

.card-meta p {
  margin: 0;
  color: #666;
  font-size: 0.65rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.card-meta span {
  color: #bcbbb2;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.card-tag {
  color: #cccbc2;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 64px 20px;
  text-align: center;
  border-top: 1px solid #e4e3da;
}

.footer-email {
  display: block;
  margin-bottom: 20px;
  color: #999;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-links a {
  color: #c0bfb6;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.footer-email:hover,
.social-links a:hover {
  color: #444;
}

.copyright {
  margin: 48px 0 0;
  color: #d4d3ca;
  font-size: 0.48rem;
  letter-spacing: 0.15em;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery[hidden] {
  display: none;
}

.gallery {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery.open {
  opacity: 1;
}

.gallery-head,
.gallery-foot {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
}

.gallery-head span,
.gallery-head button {
  color: #666;
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
}

.gallery-head button {
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery-head button:hover {
  color: #ccc;
}


/* =========================================================
   GALLERY STAGE
========================================================= */

.gallery-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 80px;
}

.gallery-stage img {
  position: absolute;
  max-width: calc(100% - 160px);
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s;
}

.gallery-stage img.active {
  opacity: 1;
}

.gallery-zone {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  border: 0;
  background: none;
}

.gallery-prev {
  left: 0;
  cursor: w-resize;
}

.gallery-next {
  right: 0;
  cursor: e-resize;
}


/* =========================================================
   GALLERY FOOTER
========================================================= */

.gallery-foot {
  align-items: flex-end;
}

.gallery-foot p {
  margin: 0;
  color: #888;
  font-size: 0.65rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.gallery-foot [data-gallery-detail] {
  color: #555;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.gallery-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.gallery-dots {
  display: flex;
  gap: 5px;
}

.gallery-dots button {
  width: 4px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
}

.gallery-dots button.active {
  background: #888;
}

.gallery-nav [data-gallery-count] {
  color: #444;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}


/* =========================================================
   CONTENT PAGES
========================================================= */

.content-page {
  max-width: 900px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 140px 28px 80px;
}

.content-page h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
}

.content-page img {
  max-width: 100%;
  height: auto;
}

.entry-content {
  margin-top: 36px;
  line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .timeline-line,
  .timeline-dot {
    display: none;
  }

  .timeline-card,
  .timeline-card.is-right,
  .timeline-card.is-left {
    justify-content: flex-start;
    margin-bottom: 80px;
  }

  .card-inner {
    width: 100%;
  }

  .timeline-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .gallery-stage {
    padding: 0 40px;
  }

  .gallery-stage img {
    max-width: calc(100% - 60px);
  }

  .gallery-head,
  .gallery-foot {
    padding: 18px;
  }

  .welcome p {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .welcome p::after {
    animation: none;
  }

  .timeline-card,
  .image-frame img,
  .gallery,
  .gallery-stage img {
    transition: none;
  }
}

/* =========================================================
   PORTFOLIO PROJECT PAGE
========================================================= */

.portfolio-project {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 140px 48px 96px;
  isolation: isolate;
}

.portfolio-project.scotland::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: 0;

  background:
    url("/wp-content/uploads/2026/07/DSC00643-scaled.jpg")
    center center / cover no-repeat;

  filter: blur(10px);
  opacity: 0.58;
  transform: scale(1.06);

  pointer-events: none;
}

.portfolio-project.italy::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: 0;

  background:
    url("/wp-content/uploads/2026/07/DSC03706-scaled.jpg")
    center center / cover no-repeat;

  filter: blur(10px);
  opacity: 0.58;
  transform: scale(1.06);

  pointer-events: none;
}


.portfolio-project > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   PROJECT HEADER
========================================================= */

.project-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 64px;
}

.project-back {
  display: inline-block;
  margin-bottom: 64px;

  color: #aaa;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-back:hover {
  color: var(--text);
}

.project-eyebrow {
  margin: 0 0 16px;

  color: #bbb;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.project-title {
  max-width: 850px;
  margin: 0;

  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.project-intro {
  max-width: 900px;
  margin: 32px 0 0;

  color: var(--muted);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}


/* =========================================================
   PROJECT HERO
========================================================= */

.project-hero {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1400px;
  height: calc(100vh - 180px);
  margin: 0 auto 96px;
}

.project-hero img {
  display: block;

  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;

  object-fit: contain;
}


/* =========================================================
   PORTFOLIO CONTENT
========================================================= */

.project-content {
  width: 100%;
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
}

.project-content > *:not(.wp-block-gallery) {
  width: 100%;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   EDITORIAL GALLERY
========================================================= */

.project-content .wp-block-gallery {
  display: grid;

  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 34px;

  width: 100%;
  max-width: 1400px;
  margin: 72px auto;
  padding: 0;

  gap: 24px;

  justify-content: center;
  align-content: start;
}

/*
 * Verhindert, dass die ursprüngliche WordPress-Reihenfolge
 * kurz sichtbar ist, bevor JavaScript das Layout aufgebaut hat.
 */
.project-content .wp-block-gallery.is-preparing {
  visibility: hidden;
}

.project-content .wp-block-gallery.is-ready {
  visibility: visible;
}


/* =========================================================
   GALLERY IMAGES
========================================================= */

.project-content .wp-block-gallery .wp-block-image {
  position: relative;

  width: 100% !important;
  min-width: 0;
  max-width: none;
  margin: 0 !important;

  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);

  opacity: 0;
  transform: translateY(22px) scale(0.985);

  transition:
    opacity 0.75s ease var(--gallery-delay, 0ms),
    transform 0.75s ease var(--gallery-delay, 0ms),
    box-shadow 0.4s ease;
}

.project-content
  .wp-block-gallery.is-ready
  .wp-block-image {
  opacity: 1;
  transform: none;
}

.project-content
  .wp-block-gallery
  .wp-block-image
  > a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-content
  .wp-block-gallery
  .wp-block-image
  img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  cursor: zoom-in;

  transition:
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1),
    filter 0.6s ease;
}

.project-content
  .wp-block-gallery
  .wp-block-image:hover
  img {
  transform: scale(1.025);
}


/* =========================================================
   EDITORIAL LAYOUT TYPES
   Werden durch JavaScript zugewiesen
========================================================= */

/* Starkes Leitbild */
.project-content
  .wp-block-gallery
  .layout-hero {
  grid-column: span 6;
  grid-row: span 13;
}

/* Breites Panorama oder ruhiges Landschaftsbild */
.project-content
  .wp-block-gallery
  .layout-wide {
  grid-column: span 7;
  grid-row: span 9;
}

/* Reguläres Querformat */
.project-content
  .wp-block-gallery
  .layout-landscape {
  grid-column: span 5;
  grid-row: span 10;
}

/* Quadratisches oder beinahe quadratisches Bild */
.project-content
  .wp-block-gallery
  .layout-square {
  grid-column: span 4;
  grid-row: span 11;
}

/* Hochformat */
.project-content
  .wp-block-gallery
  .layout-portrait {
  grid-column: span 4;
  grid-row: span 15;
}

/* Kleineres Detail- oder Texturbild */
.project-content
  .wp-block-gallery
  .layout-detail {
  grid-column: span 3;
  grid-row: span 10;
}


/* =========================================================
   FORMAT REFINEMENTS
========================================================= */

.project-content
  .wp-block-gallery
  .is-panorama.layout-wide {
  grid-column: span 8;
  grid-row: span 9;
}

.project-content
  .wp-block-gallery
  .is-landscape.layout-hero {
  grid-column: span 6;
  grid-row: span 13;
}

.project-content
  .wp-block-gallery
  .is-portrait.layout-portrait {
  grid-column: span 4;
  grid-row: span 15;
}

.project-content
  .wp-block-gallery
  .is-square.layout-square {
  grid-column: span 4;
  grid-row: span 11;
}


/* =========================================================
   IMAGE CHARACTER
========================================================= */

/*
 * Nur sehr leichte Korrekturen.
 * Die Bilder sollen ihren ursprünglichen Look behalten.
 */

.project-content
  .wp-block-gallery
  .is-dark
  img {
  filter: brightness(1.035);
}

.project-content
  .wp-block-gallery
  .is-light
  img {
  filter: contrast(1.015);
}

.project-content
  .wp-block-gallery
  .is-muted
  img {
  filter: contrast(1.025);
}

.project-content
  .wp-block-gallery
  .is-dark.is-muted
  img {
  filter:
    brightness(1.04)
    contrast(1.025);
}

.project-content
  .wp-block-gallery
  .is-vivid
  img {
  filter: saturate(0.98);
}

.project-content
  .wp-block-gallery
  .is-high-contrast
  img {
  filter: contrast(0.99);
}

.project-content
  .wp-block-gallery
  .wp-block-image:hover
  img {
  filter: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .portfolio-project {
    padding-right: 32px;
    padding-left: 32px;
  }

  .project-content .wp-block-gallery {
    grid-template-columns:
      repeat(8, minmax(0, 1fr));
    grid-auto-rows: 32px;

    max-width: 900px;
    gap: 18px;
  }

  .project-content
    .wp-block-gallery
    .layout-hero {
    grid-column: span 5;
    grid-row: span 12;
  }

  .project-content
    .wp-block-gallery
    .layout-wide,
  .project-content
    .wp-block-gallery
    .is-panorama.layout-wide {
    grid-column: span 8;
    grid-row: span 9;
  }

  .project-content
    .wp-block-gallery
    .layout-landscape {
    grid-column: span 5;
    grid-row: span 9;
  }

  .project-content
    .wp-block-gallery
    .layout-square {
    grid-column: span 4;
    grid-row: span 10;
  }

  .project-content
    .wp-block-gallery
    .layout-portrait,
  .project-content
    .wp-block-gallery
    .is-portrait.layout-portrait {
    grid-column: span 3;
    grid-row: span 14;
  }

  .project-content
    .wp-block-gallery
    .layout-detail {
    grid-column: span 3;
    grid-row: span 9;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .portfolio-project {
    width: 100%;
    max-width: none;
    padding: 120px 20px 60px;
  }

  .portfolio-project.scotland::before {
    position: fixed;
    inset: -24px;

    filter: blur(8px);
    opacity: 0.48;
    transform: scale(1.08);
  }

  .project-header {
    margin-bottom: 40px;
  }

  .project-back {
    margin-bottom: 40px;
  }

  .project-title {
    font-size: clamp(2.4rem, 13vw, 4.5rem);
  }

  .project-hero {
    height: auto;
    margin-bottom: 48px;
  }

  .project-content .wp-block-gallery {
    display: grid;

    grid-template-columns: 1fr;
    grid-auto-rows: auto;

    width: 100%;
    max-width: none;
    margin: 40px auto;
    gap: 16px;
  }

  .project-content
    .wp-block-gallery
    .layout-hero,
  .project-content
    .wp-block-gallery
    .layout-wide,
  .project-content
    .wp-block-gallery
    .layout-landscape,
  .project-content
    .wp-block-gallery
    .layout-square,
  .project-content
    .wp-block-gallery
    .layout-portrait,
  .project-content
    .wp-block-gallery
    .layout-detail,
  .project-content
    .wp-block-gallery
    .is-panorama.layout-wide,
  .project-content
    .wp-block-gallery
    .is-landscape.layout-hero,
  .project-content
    .wp-block-gallery
    .is-portrait.layout-portrait,
  .project-content
    .wp-block-gallery
    .is-square.layout-square {
    grid-column: auto;
    grid-row: auto;
  }

  .project-content
    .wp-block-gallery
    .wp-block-image
    > a {
    height: auto;
  }

  .project-content
    .wp-block-gallery
    .wp-block-image
    img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* =========================================================
   LIGHTBOX
========================================================= */

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

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

  padding: 32px;
  background: rgba(10, 10, 10, 0.94);

  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
}

.lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 1;

  padding: 8px;
  border: 0;
  background: none;

  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}


.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 60px;
    height: 60px;

    border: 0;
    background: none;

    color: rgba(255,255,255,.45);
    font-size: 3rem;
    line-height: 1;

    cursor: pointer;
    transition: .25s;
}

.lightbox-nav:hover {
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 767px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 88vh;
    border-radius: 6px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
  }
	
	    .lightbox-nav{
        font-size:2rem;
        width:40px;
        height:40px;
    }

    .lightbox-prev{
        left:10px;
    }

    .lightbox-next{
        right:10px;
    }
}