/* 48c: scroll choreography and independent, restrained object motion. */
.foto-intro {
  --intro-header: 94px;
  position: relative;
  height: 350svh;
  background: #090e0c;
  isolation: isolate;
}
.foto-intro.is-ready { height: 350svh; }
.foto-intro.is-failed { height: 100svh; }
.foto-stage {
  position: sticky;
  top: var(--intro-header);
  height: calc(100svh - var(--intro-header));
  min-height: 420px;
  overflow: hidden;
  background: #090e0c;
}
.foto-atmosphere {
  position: absolute;
  inset: 0;
  background: url('assets/klucznik-hero-web-29c.webp') left 45% / auto 230%;
  opacity: .14;
  filter: grayscale(.5);
  pointer-events: none;
}
.foto-title {
  position: absolute;
  z-index: 1;
  top: 28%;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  color: #e6d9c4;
  font: 400 184px/.95 Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
  white-space: nowrap;
  transform-origin: 50% 50%;
  text-shadow: 0 3px 30px #0005;
}
.foto-title span { display: inline-block; }
.foto-intro.is-ready .foto-title { animation: foto-title-enter 1.1s ease-out both; }
@keyframes foto-title-enter { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
.foto-collage { position: absolute; inset: 0; pointer-events: none; }
.foto-lion {
  position: absolute;
  left: 50%;
  width: min(104vw, 145svh);
  aspect-ratio: 1;
  top: 5%;
  transform: translateX(-50%);
  visibility: hidden;
}
.foto-intro.is-ready .foto-lion { visibility: visible; }
.foto-lion img { display: block; width: 100%; height: 100%; object-fit: contain; }
.foto-lion-lower { z-index: 4; }
.foto-lion-upper { z-index: 5; transform-origin: 60% 40%; }
.foto-lion { mask-image: radial-gradient(ellipse 49% 52% at 50% 50%, #000 79%, transparent 100%); }
.foto-lion-lower img, .foto-lion-upper img { filter: brightness(.92) saturate(.82); }
.foto-edge { position: absolute; inset: 0; background: #c9b596; opacity: 0; }
.foto-object {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 10%;
  margin: 0;
  opacity: 0;
  transform-origin: 50% 95%;
}
.foto-float { transform-origin: 50% 90%; }
.foto-polaroid { width: 220px; }
.foto-polaroid .foto-float {
  padding: 9px 9px 31px;
  background: #e8e4da;
  box-shadow: 0 14px 24px #0007, inset 0 0 0 1px #d1caba;
  border-radius: 1px;
}
.foto-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.foto-camera .foto-float { clip-path: polygon(12% 13%,26% 11%,26% 8%,34% 8%,34% 12%,53% 8%,76% 7%,86% 5%,89% 8%,90% 27%,94% 28%,95% 33%,93% 36%,91% 36%,91% 86%,83% 90%,18% 95%,8% 93%,6% 86%,6% 42%,3% 39%,3% 33%,7% 29%,8% 20%,12% 18%); }
.foto-equipment { width: 220px; mix-blend-mode: lighten; }
.foto-equipment img { display: block; width: 100%; height: auto; }
.foto-equipment.foto-camera { mix-blend-mode: normal; }
.foto-equipment.foto-flash { mix-blend-mode: normal; }
.foto-flash .foto-float { position: relative; clip-path: polygon(10% 30%,15% 17%,30% 5%,48% 3%,63% 4%,78% 9%,86% 18%,90% 30%,88% 43%,80% 52%,78% 58%,87% 61%,84% 67%,74% 66%,72% 98%,41% 98%,42% 62%,30% 60%,20% 52%,13% 44%); }
.foto-equipment.foto-film { mix-blend-mode: normal; }
.foto-film img {
  filter: brightness(1.5) saturate(.85);
  clip-path: polygon(6% 52%,9% 40%,13% 24%,16% 14%,20% 10%,26% 10%,34% 13%,43% 19%,53% 30%,63% 42%,68% 45%,70% 35%,74% 32%,82% 32%,90% 36%,94% 41%,94% 49%,90% 70%,89% 84%,86% 92%,81% 95%,74% 94%,67% 90%,62% 85%,53% 77%,43% 66%,34% 59%,29% 57%,29% 68%,27% 77%,22% 78%,15% 75%,10% 67%,7% 59%);
}
.foto-flash-light {
  position: absolute;
  top: 35%;
  left: 60%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff8e5;
  box-shadow: 0 0 17px 10px #fff2c9ba, 0 0 55px 20px #efd9a644;
  opacity: 0;
}
.foto-flash-light::after {
  content: '';
  position: absolute;
  left: -65px;
  top: 3px;
  width: 135px;
  height: 1px;
  background: #fff5d6;
}
.foto-scroll {
  position: absolute;
  z-index: 7;
  bottom: 27px;
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #d3b68c8c;
  border-radius: 50%;
  background: #0b110dcc;
  color: #eadbc4;
}
.foto-scroll:hover { background: #293229; }
.foto-scroll::after { content: attr(data-tooltip); position: absolute; bottom: 58px; padding: 8px 12px; background: #16201b; font: 12px/1.3 Arial,sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; }
.foto-scroll:hover::after, .foto-scroll:focus-visible::after { opacity: 1; }
.foto-exit { position: absolute; inset: 0; z-index: 6; background: #323c35; opacity: 0; pointer-events: none; }
.album-heading { scroll-margin-top: 110px; }
.album-heading h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 17px; margin: 0; color: #f6f0e4; font: 400 48px/1.15 Georgia,serif; }
.album-heading h2>span { font: 500 68px/1.1 Caveat,cursive; color: #ebd3b4; }
@media (min-width: 1700px) { .foto-title { font-size: 236px; } }
@media (max-width: 1250px) { .foto-title { font-size: 142px; } }
@media (max-width: 950px) { .foto-title { font-size: 108px; } }
@media (min-width: 601px) and (max-width: 740px) { .foto-title { font-size: 92px; } }
@media (max-width: 600px) {
  .foto-intro { --intro-header: 76px; }
  .foto-intro, .foto-intro.is-ready { height: 310svh; }
  .foto-title { font-size: 76px; line-height: .98; white-space: normal; top: 25%; }
  .foto-title span { display: block; }
  .foto-scroll { bottom: 20px; }
  .foto-atmosphere { background-position: left center; }
  .album-heading { scroll-margin-top: 90px; }
  .album-heading h2 { font-size: 36px; gap: 0 12px; }
  .album-heading h2>span { font-size: 53px; }
}
@media (max-width: 360px) { .foto-title { font-size: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .foto-intro, .foto-intro.is-ready { height: 100svh; }
  .foto-title { animation: none !important; }
}

/* The album gets a quiet photographic backdrop, without another hero. */
.gallery-album {
  position: relative;
  isolation: isolate;
  background: #323c35;
  padding-top: 18px;
}
.gallery-album::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#323c35, #323c35bb 400px, #323c35ec 1200px), url('assets/klucznik-hero-web-29c.webp') left top / auto 1200px no-repeat;
}
.gallery-album .album-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 32px 26px;
}
.gallery-album .album-heading h2 { font-size: 36px; gap: 0 12px; }
.gallery-album .album-heading h2 > span { font-size: 51px; }
.gallery-album .album-note { margin: 0; font-size: 16px; color: #d6d4c8; }
.gallery-album .collection { row-gap: 36px; }
.gallery-album .filter-bar, .gallery-album .collection-heading { border-color: #d6c7ac33; }
.gallery-album .photo-grid { gap: 40px 34px; }
.gallery-album .photo { padding: 12px 12px 16px; box-shadow: 0 8px 18px #0a130f38; }
.gallery-album .photo figcaption { min-height: 62px; }
.gallery-album .photo h2 { font-size: 29px; }
@media (max-width: 1050px) {
  .gallery-album .photo-grid { gap: 30px 26px; }
  .gallery-album .album-heading { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .gallery-album { padding-top: 8px; }
  .gallery-album .album-heading { display: block; padding-block: 23px 19px; }
  .gallery-album .album-heading h2 { font-size: 30px; }
  .gallery-album .album-heading h2 > span { font-size: 43px; }
  .gallery-album .album-note { margin-top: 6px; font-size: 15px; }
  .gallery-album .collection { row-gap: 15px; }
  .gallery-album .photo-grid { gap: 28px; }
  .gallery-album .filter-bar { justify-content: space-between; gap: 0 12px; }
}
