/* ===================== PHOTOTEKA ===================== */
#phototeka {
  position: relative;
  padding: 110px 56px 100px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.00) 24%),
    linear-gradient(180deg, #07080a 0%, #0b0d11 100%);
  overflow: hidden;
}
#phototeka::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 172px 172px;
  opacity: 0.16;
  pointer-events: none;
}
#phototeka::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(100,160,255,0.045) 0px,
      rgba(100,160,255,0.045) 1px,
      transparent 2px,
      transparent 58px
    );
  opacity: 0.12;
  pointer-events: none;
}
.phototeka-shell {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}
.phototeka-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.phototeka-rain span {
  position: absolute;
  top: -22%;
  width: 1.6px;
  height: 170px;
  background: linear-gradient(
    180deg,
    rgba(195,215,255,0.00) 0%,
    rgba(178,201,255,0.32) 26%,
    rgba(245,248,255,0.62) 54%,
    rgba(178,201,255,0.24) 80%,
    rgba(195,215,255,0.00) 100%
  );
  filter: blur(0.15px);
  opacity: 0.82;
  transform: rotate(6deg);
  animation: phototekaRain linear infinite;
}
@keyframes phototekaRain {
  from { transform: translate3d(0,-22%,0) rotate(6deg); }
  to { transform: translate3d(-34px,135%,0) rotate(6deg); }
}
.phototeka-floating {
  position: relative;
  height: 460px;
  margin-bottom: 46px;
  animation: phototekaPanLeft 14s linear infinite alternate;
  will-change: transform;
}
@keyframes phototekaPanLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-96px); }
}
.photo-card,
.photo-card-shadow {
  position: absolute;
  border-radius: 24px;
}
.photo-card-shadow {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    linear-gradient(180deg, rgba(30,32,36,0.72) 0%, rgba(18,19,22,0.88) 100%);
  border: 1px solid rgba(255,245,225,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 20px rgba(0,0,0,0.18);
  opacity: 0.82;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.photo-card {
  overflow: hidden;
  border: 1px solid rgba(248,236,210,0.22);
  box-shadow:
    0 0 0 1px rgba(181,141,74,0.18) inset,
    0 14px 34px rgba(0,0,0,0.24),
    0 0 10px rgba(226,188,105,0.10);
  animation: phototekaDrift 18s ease-in-out infinite;
}
.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255,252,242,0.10),
    inset 0 0 0 1px rgba(214,175,84,0.14);
  pointer-events: none;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes phototekaDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(0, -6px, 0); }
  50% { transform: translate3d(0, 3px, 0); }
  75% { transform: translate3d(0, -3px, 0); }
}
.photo-col-tall { width: 130px; height: 178px; border-radius: 22px; }
.photo-col-mid { width: 120px; height: 120px; border-radius: 22px; }
.photo-col-wide { width: 182px; height: 118px; border-radius: 22px; }

.p-shadow-1 { left: 0; top: 54px; width: 156px; height: 102px; }
.p-shadow-2 { left: 186px; top: 4px; width: 182px; height: 126px; }
.p-shadow-3 { left: 400px; top: 72px; width: 160px; height: 110px; }
.p-shadow-4 { left: 592px; top: 112px; width: 160px; height: 120px; }
.p-shadow-5 { left: 770px; top: 24px; width: 120px; height: 120px; }
.p-shadow-6 { left: 918px; top: 32px; width: 120px; height: 110px; }
.p-shadow-7 { right: 210px; top: -6px; width: 138px; height: 118px; }
.p-shadow-8 { right: 24px; top: 52px; width: 156px; height: 102px; }

.p-card-1 { left: 0; top: 174px; animation-delay: -1.8s; }
.p-card-2 { left: 186px; top: 144px; width: 182px; height: 202px; border-radius: 26px; animation-delay: -3.1s; }
.p-card-3 { left: 400px; top: 196px; width: 160px; height: 160px; border-radius: 24px; animation-delay: -0.9s; }
.p-card-4 { left: 592px; top: 238px; width: 160px; height: 208px; border-radius: 24px; animation-delay: -4.4s; }
.p-card-5 { left: 770px; top: 164px; animation-delay: -2.7s; }
.p-card-6 { left: 918px; top: 152px; animation-delay: -5.3s; }
.p-card-7 { right: 210px; top: 144px; width: 138px; height: 150px; border-radius: 24px; animation-delay: -1.1s; }
.p-card-8 { right: 24px; top: 174px; animation-delay: -3.7s; }
.p-card-9 { left: 770px; top: 316px; animation-delay: -4.9s; }
.p-card-10 { left: 918px; top: 280px; width: 138px; height: 178px; border-radius: 22px; animation-delay: -2.3s; }
.p-card-11 { right: 210px; top: 304px; width: 138px; height: 160px; border-radius: 22px; animation-delay: -6.0s; }

.phototeka-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.phototeka-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(236,240,248,0.82);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.phototeka-title {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  color: #f3f5f7;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.phototeka-title .muted {
  display: block;
  color: rgba(255,255,255,0.42);
}
.phototeka-text {
  max-width: 640px;
  margin: 0 auto;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(216,222,232,0.72);
}

/* Phototeka adjustments */
.phototeka-rain {
  display: none !important;
}
.phototeka-floating {
  animation: phototekaPanLeft 10s linear infinite alternate;
}
@keyframes phototekaPanLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-118px); }
}
.p-shadow-9 { right: -118px; top: 10px; width: 132px; height: 110px; }
.p-shadow-10 { right: -176px; top: 198px; width: 148px; height: 108px; }
.p-shadow-11 { left: 1088px; top: 88px; width: 120px; height: 94px; }

.p-card-12 { right: -118px; top: 154px; width: 132px; height: 176px; border-radius: 22px; animation-delay: -2.2s; }
.p-card-13 { right: -176px; top: 326px; width: 148px; height: 166px; border-radius: 22px; animation-delay: -4.8s; }
.p-card-14 { left: 1088px; top: 188px; width: 120px; height: 146px; border-radius: 20px; animation-delay: -3.4s; }
.p-card-15 { left: 1088px; top: 350px; width: 134px; height: 150px; border-radius: 22px; animation-delay: -5.6s; }
.p-card-16 { right: -36px; top: 344px; width: 128px; height: 154px; border-radius: 22px; animation-delay: -1.6s; }

@media (max-width: 1280px) {
  .p-card-12, .p-card-13, .p-card-14, .p-card-15, .p-card-16 {
    position: relative;
    left: auto; right: auto; top: auto;
    width: 100%;
    height: 180px;
    border-radius: 22px;
  }
}

@media (max-width: 1280px) {
  .phototeka-floating {
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 18px;
    animation: none;
  }
  .photo-card-shadow { display: none; }
  .photo-card,
  .p-card-2, .p-card-3, .p-card-4, .p-card-7, .p-card-10, .p-card-11 {
    position: relative;
    left: auto; right: auto; top: auto;
    width: 100%;
    height: 180px;
    border-radius: 22px;
  }
  .p-card-1, .p-card-5, .p-card-6, .p-card-8, .p-card-9 {
    width: 100%;
    height: 180px;
  }
}
@media (max-width: 760px) {
  #phototeka { padding: 86px 24px; }
  .phototeka-floating {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .phototeka-title {
    font-size: clamp(38px, 11vw, 56px);
  }
}

