/* Mert Ozince / Project Gallery V3.3
   Image-first editorial split on large screens, true natural-ratio images on small screens.
   Must load AFTER V2, V3, V3.2. Only project detail pages. No image cropping. */
.pf-shell .pf-cover-stage {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  height: clamp(530px, calc(100svh - 105px), 840px);
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  background: #0d0f10;
  border-bottom: 1px solid rgba(244, 241, 235, .15);
}
.pf-shell .pf-cover-stage .pf-hero {
  position: relative;
  display: block !important;
  width: 100%;
  height: 100% !important;
  min-width: 0;
  min-height: 0 !important;
  overflow: hidden;
  background: #101112;
}
.pf-shell .pf-cover-stage .pf-hero__media {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100%;
  height: 100% !important;
  align-items: center;
  justify-content: center;
  background: #111314;
  overflow: hidden;
}
.pf-shell .pf-cover-stage .pf-hero__media::before {
  filter: blur(42px) brightness(.48) saturate(.7);
  opacity: .4;
}
.pf-shell .pf-cover-stage .pf-hero__media > img,
.pf-shell .pf-cover-stage .pf-hero__media > video {
  display: block !important;
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}
/* The project name is next to the photo, not on top of it. */
.pf-shell .pf-cover-stage .pf-cover-titlebar {
  display: flex;
  position: relative;
  align-items: center;
  border-bottom: 0;
  border-left: 1px solid rgba(244, 241, 235, .12);
  padding: clamp(35px, 5vw, 88px) clamp(32px, 4.6vw, 92px) !important;
  background: radial-gradient(ellipse at 100% 0%, rgba(199, 163, 124, .055), transparent 55%), #0b0c0d;
  min-width: 0;
}
.pf-shell .pf-cover-stage .pf-cover-titlebar__inner {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(40px, 5.2vw, 88px);
}
.pf-shell .pf-cover-stage .pf-cover-titlebar__inner::before {
  content: none;
  display: block;
  color: #c9a983;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .23em;
}
.pf-shell .pf-cover-stage .pf-cover-titlebar h1 {
  margin: 0 !important;
  max-width: 100%;
  font-size: clamp(39px, 4.1vw, 83px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.04em !important;
  word-spacing: .12em !important;
  font-weight: 730 !important;
  color: #f4f1eb !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pf-shell .pf-cover-stage .pf-cover-titlebar__explore {
  display: inline-flex;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 241, 235, .25);
  color: #d1b18a !important;
  font-size: 10px;
  letter-spacing: .18em;
  white-space: normal;
}
/* Avoid excessively tall empty introduction below the first screen. */
.pf-shell .pf-intro {
  padding-top: clamp(55px, 6vw, 100px) !important;
  padding-bottom: clamp(70px, 7vw, 112px) !important;
}
@media (max-width: 1024px) {
  .pf-shell .pf-cover-stage {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .pf-shell .pf-cover-stage .pf-hero,
  .pf-shell .pf-cover-stage .pf-hero__media {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .pf-shell .pf-cover-stage .pf-hero__media::before { display: none; }
  .pf-shell .pf-cover-stage .pf-hero__media > img,
  .pf-shell .pf-cover-stage .pf-hero__media > video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  .pf-shell .pf-cover-stage .pf-hero__blank { min-height: 340px; }
  .pf-shell .pf-cover-stage .pf-cover-titlebar {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(244, 241, 235, .15);
    padding: 46px clamp(24px, 5vw, 72px) 52px !important;
  }
  .pf-shell .pf-cover-stage .pf-cover-titlebar__inner {
    gap: 24px;
    align-items: flex-start;
  }
  .pf-shell .pf-cover-stage .pf-cover-titlebar h1 {
    font-size: clamp(36px, 6.4vw, 69px) !important;
  }
}
@media (max-width: 560px) {
  .pf-shell .pf-cover-stage .pf-cover-titlebar { padding: 36px 23px 44px !important; }
  .pf-shell .pf-cover-stage .pf-cover-titlebar__inner::before { font-size: 9px; }
  .pf-shell .pf-cover-stage .pf-cover-titlebar h1 {
    font-size: clamp(34px, 9vw, 52px) !important;
    line-height: 1.12 !important;
    word-spacing: .09em !important;
  }
  .pf-shell .pf-cover-stage .pf-hero__blank { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-shell .pf-cover-stage .pf-cover-titlebar__explore { transition: none !important; }
}
