/* MANYMEN — project pages (/shapingfutures/future|event|cutsandstyles/).
   One template: image hero with a pinned title, light rows of two columns, a full-height
   parallax image, and the "next project" block at the end. Values measured on the 2025 site
   (Montoya theme + Elementor); breakpoints 1466, 1024, 767, 479 as there. */

/* theme gutter per breakpoint (80 / 60 / 40 / 30 / 20) */
body.project { --gutter: 80px; }
@media (max-width: 1466px) { body.project { --gutter: 60px; } }
@media (max-width: 1024px) { body.project { --gutter: 40px; } }
@media (max-width: 767px) { body.project { --gutter: 30px; } }
@media (max-width: 479px) { body.project { --gutter: 20px; } }

/* ---------- image hero */
#hero.has-image { z-index: 2; overflow: hidden; }
#hero.has-image #hero-styles { position: relative; height: auto; }
#hero.has-image #hero-caption { align-items: center; justify-content: center; height: 100vh; padding: 80px var(--gutter) var(--gutter); }
#hero.has-image #hero-caption .inner { transform-origin: bottom left; }

#hero-description {
  position: relative; display: table; width: 100%; margin: 0 auto;
  padding: 20px var(--gutter) 200px; pointer-events: initial;
}
#hero-description .inner { display: table-cell; padding-right: 55%; }
#hero-description p { color: #fff; }
#hero-description .bigger { font-size: 26px; line-height: 42px; margin-bottom: 20px; }
#hero-description hr { display: inline-block; float: none; width: 100%; height: 28px; margin: 0; border: 0; }
#hero-description p.has-animation { font-size: 18px; line-height: 28px; margin-bottom: 20px; }
@media (max-width: 1466px) { #hero-description { padding-bottom: 220px; } #hero-description .inner { padding-right: 45%; } }
@media (max-width: 1024px) { #hero-description { padding-bottom: 200px; } #hero-description .inner { padding-right: 35%; } }
@media (max-width: 767px) {
  #hero-description { padding-bottom: 180px; } #hero-description .inner { padding-right: 15%; }
  #hero-description .bigger { font-size: 20px; line-height: 30px; }
  #hero-description hr { height: 20px; }
}
@media (max-width: 479px) {
  #hero-description { padding-bottom: 160px; } #hero-description .inner { padding-right: 0; }
  #hero-description hr { height: 10px; }
}

/* "[ Jetzt kontaktieren ]" and "WEITER ZU UNSEREN SERVICES" */
.link-text {
  position: relative; display: inline-table; overflow: hidden; width: auto; margin: 0; padding: 0;
  font-size: 16px; font-weight: 500; line-height: 30px; color: #fff; transition: color .05s ease-in-out;
}
.link-text .link { position: relative; display: inline-block; text-align: center; cursor: pointer; transform-origin: 100% 0%; transition: transform .2s; }
.link-text .link::before { content: attr(data-hover); position: absolute; top: 100%; left: 0; width: auto; }
.link-text:hover .link { transform: translateY(-100%); transform-origin: 0% 0%; }

/* hero footer: smaller paddings below 1024 as on the original */
@media (max-width: 1024px) { body.project #hero-footer { padding: 10px var(--gutter); } }
@media (max-width: 767px) { body.project .hero-footer-left .button-text { display: none; } }
#share { position: relative; top: -3px; right: -10px; font-size: 14px; }
#share::before { content: attr(data-text); position: absolute; top: 0; left: -140px; width: 120px; text-align: right; }

/* background image behind the hero, pinned while the hero scrolls */
#hero-image-wrapper { position: absolute; top: 0; left: 0; right: 0; z-index: 0; width: 100vw; height: 100vh; margin: 0 auto; }
#hero-background-layer { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; overflow: hidden; }
#hero-bg-image {
  position: absolute; z-index: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.js #hero-bg-image { opacity: 0; }

/* ---------- content rows */
#main-page-content.project-page { margin-bottom: calc(200vh - 120px); }
@media (max-width: 1024px) { #main-page-content.project-page { margin-bottom: calc(200vh - 100px); } }
@media (max-width: 767px) { #main-page-content.project-page { margin-bottom: calc(200vh - 80px); } }

.pj-row { position: relative; padding: 0 10px; }
.pj-row.light-section { background: #eee; }
.pj-row.pj-white { background: #fff; }
.pj-row.pad-x { padding-left: var(--gutter); padding-right: var(--gutter); }
.pj-row.pad-t { padding-top: 9vw; }
.pj-row.pad-b { padding-bottom: 9vw; }
@media (max-width: 767px) { .pj-row.pad-t { padding-top: 10vw; } .pj-row.pad-b { padding-bottom: 10vw; } }
@media (max-width: 479px) { .pj-row.pad-t { padding-top: 12vw; } .pj-row.pad-b { padding-bottom: 12vw; } }

.pj-inner { position: relative; display: flex; gap: 20px; max-width: 1140px; margin: 0 auto; padding: 10px 0; }
.pj-col { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; padding: 10px 0; }
.pj-col:first-child { padding-right: 10px; }
.pj-col:last-child { padding-left: 10px; }
@media (max-width: 767px) {
  .pj-cols { flex-direction: column; }
  .pj-col:first-child, .pj-col:last-child { padding-left: 0; padding-right: 0; }
}
.pj-center { flex-direction: column; text-align: center; }

.pj-row h1 { margin: 0 0 20px; color: #000; text-align: left; }
.pj-center h1 { text-align: center; }
.light-section .has-mask-fill > span { -webkit-text-fill-color: rgb(0 0 0 / .1); background-image: linear-gradient(#000, #000); }

/* image that opens in the lightbox */
.pj-figure { position: relative; margin: 0; }
.image-link { display: block; width: auto; cursor: pointer; }
.image-link img { display: block; width: 100%; height: auto; border-radius: 8px; }
figcaption {
  position: absolute; right: 0; bottom: 0; z-index: 10; padding: 5px 10px;
  font-size: 10px; font-weight: 400; color: #fff; background-color: rgb(0 0 0 / .3);
}
.vertical-parallax { position: relative; z-index: 0; }

/* text blocks */
.pj-html p { color: #999; }
.pj-text { font-size: 16px; line-height: 28px; color: #46413c; }
.pj-text p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.pj-text strong { font-weight: 600; color: #000; }
.pj-text a { color: #000; }
.pj-text ol { margin: 20px 0 25px 20px; padding: 0; list-style: decimal; font-family: "Poppins", sans-serif; font-weight: 500; }
.pj-text li { margin-bottom: 25px; line-height: 20px; color: #444; }

.pj-logo { align-self: center; flex: none; width: 11.853%; }
.pj-logo img { width: 100%; }
.pj-button {
  align-self: center; display: inline-block; padding: 12px 24px; border-radius: 3px;
  font-size: 15px; font-weight: 300; line-height: 1; text-align: center;
  color: #fff; background-color: #000; transition: all .3s;
}
.pj-button-wrap { display: flex; gap: 5px; justify-content: center; }

/* full-height image with the big title over it */
.pj-row.pj-parallax { padding: 0; background: #fff; }
figure.has-parallax { position: relative; overflow: hidden; height: 100vh; margin: 0; text-align: center; }
/* as on the original the image keeps its own height (an Elementor rule beat the theme's 100 %), so
   on wide-but-low or narrow screens the row behind it shows; on phones that row has the picture as a
   plain background (Elementor mobile setting) */
figure.has-parallax > img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; object-fit: cover; object-position: center; }
@media (max-width: 767px) { .pj-row.pj-parallax { background-image: var(--row-bg, none); } }
.parallax-image-content {
  position: relative; z-index: 10; width: 100%; max-width: 1320px; height: 100%; margin: 0 auto;
  padding: 0 var(--gutter); text-align: center;
}
.parallax-image-content .outer { display: table; width: 100%; height: 100%; margin: 0 auto; padding: 20px 0; }
.parallax-image-content .inner { display: table-cell; vertical-align: middle; }
.parallax-image-content .big-title { margin: 0 0 20px; color: #fff; }

/* ---------- next project (§8.13) */
#project-nav { position: absolute; left: 0; bottom: -200vh; width: 100%; height: 200vh; margin-bottom: 0; overflow: hidden; color: #fff; }
.next-project-wrap { position: absolute; top: 0; left: 0; z-index: 10; display: table; width: 100%; height: 50%; margin: 0 auto; }
.all-works {
  position: absolute; top: 20px; left: 50%; z-index: 100; display: table; width: auto; margin: 25px auto 0;
  font-size: 18px; line-height: 28px; color: #fff; transform: translateX(-50%);
}
.all-works .link-text .link, .all-works .link-text .link::before { padding: 0 16px; }
.all-works::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 2px solid #fff; border-radius: 30px; clip-path: inset(50% 0%); pointer-events: none;
  transition: all .15s ease-out;
}
.all-works:hover::after { clip-path: inset(0% 0%); }
@media (max-width: 479px) { .all-works { top: 0; } }

.next-project-caption { position: absolute; left: 0; right: 0; display: table; width: 100%; height: 100%; margin: 0 auto; padding: 20px var(--gutter); }
.next-caption-wrapper { position: relative; display: table-cell; vertical-align: middle; text-align: left; }
#project-nav .caption-wrapper { position: relative; display: table; margin: 0 auto; text-align: center; }
#project-nav .next-ajax-link-project { position: absolute; top: 0; left: 0; z-index: 10; display: block; width: 100%; height: 100%; margin: 0; }
.next-caption { position: relative; z-index: 1; display: table; margin: 0 auto; text-align: center; transform-origin: center center; }
#project-nav .next-hero-subtitle { display: table; margin: 0 auto 40px; }
#project-nav .next-hero-title span { display: inline-block; transform-origin: top center; }
.next-hero-progress { position: absolute; top: 0; right: 0; z-index: 100; width: 100%; height: 6px; }
.next-hero-progress span { position: absolute; left: 0; width: 0; height: 6px; background-color: #fff; }
.next-project-image-wrapper { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; }
.next-project-image {
  position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; margin: 0 auto; overflow: hidden;
  clip-path: inset(100% 0% 0% 0%); transform: scale(1.25) rotate(-5deg);
}
.next-project-image-bg { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; background-size: cover; background-position: center center; background-repeat: no-repeat; }

/* ---------- image lightbox (§8.16) */
.clapat-img-popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.clapat-img-popup-bg-close { position: absolute; inset: 0; display: block; background-color: rgb(0 0 0 / 0); }
.clapat-img-popup-viewport {
  position: absolute; z-index: 100; display: flex; align-items: center; justify-content: center;
  width: auto; height: auto; margin: 0 auto; padding: 80px 40px; pointer-events: none;
}
.clapat-img-popup img {
  position: relative; z-index: 10; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 160px);
  margin: 0 auto; border-radius: 8px; pointer-events: initial;
}
.clapat-img-popup-preloader { position: absolute; display: block; width: 80px; height: 80px; margin: 0 auto; opacity: 0; }
.clapat-img-popup-preloader div {
  position: absolute; top: 33px; width: 13px; height: 13px; border-radius: 50%; background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.clapat-img-popup-preloader div:nth-child(1) { left: 8px; animation: pj-pre1 .6s infinite; }
.clapat-img-popup-preloader div:nth-child(2) { left: 8px; animation: pj-pre2 .6s infinite; }
.clapat-img-popup-preloader div:nth-child(3) { left: 32px; animation: pj-pre2 .6s infinite; }
.clapat-img-popup-preloader div:nth-child(4) { left: 56px; animation: pj-pre3 .6s infinite; }
@keyframes pj-pre1 { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pj-pre2 { from { transform: translate(0, 0); } to { transform: translate(24px, 0); } }
@keyframes pj-pre3 { from { transform: scale(1); } to { transform: scale(0); } }
.clapat-img-popup-close, .clapat-img-popup-prev, .clapat-img-popup-next {
  position: absolute; z-index: 100; color: #fff; background-color: #000; opacity: 0; cursor: pointer;
  pointer-events: initial; transition: background-color .2s ease-in-out;
}
.clapat-img-popup-close { top: 60px; right: 20px; width: 40px; height: 40px; border-radius: 20px; }
.clapat-img-popup-prev, .clapat-img-popup-next { width: 26px; height: 50px; border-radius: 4px; }
.clapat-img-popup-prev { left: 60px; }
.clapat-img-popup-next { right: 60px; }
.clapat-img-popup-close::after, .clapat-img-popup-prev::after, .clapat-img-popup-next::after {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; text-align: center;
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px;
}
.clapat-img-popup-close::after { content: "\f00d"; line-height: 40px; }
.clapat-img-popup-prev::after { content: "\f104"; line-height: 50px; }
.clapat-img-popup-next::after { content: "\f105"; line-height: 50px; }
@media (max-width: 479px) {
  .clapat-img-popup-viewport { padding: 60px 23px; }
  .clapat-img-popup img { max-height: calc(100vh - 120px); }
  .clapat-img-popup-close { top: 40px; right: 3px; }
  .clapat-img-popup-prev { left: 10px; }
  .clapat-img-popup-next { right: 10px; }
}
