@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&display=swap');

/* ─── VARIABLES & RESET ───────────────────── */
:root {
  --white:    #ffffff;
  --black:    #111111;
  --gray:     #999999;
  --line:     #ebebeb;
  --nav-h:    56px;
  --gap:      4px;
  --pad:      40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── NAVIGATION ─────────────────────────── */
.nav {
  overflow: visible;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-brand {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.25s;
}

.nav-links a:hover  { opacity: 0.4; }
.nav-links a.active { opacity: 0.4; }


/* ── PHOTO SUB-NAV ────────────────────────── */
.photo-subnav {
  position: fixed;
  top: 50%;
  left: var(--pad);
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-subnav a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s, opacity 0.25s;
}

.photo-subnav a:hover { color: var(--black); }
.photo-subnav a.active { color: var(--black); }

.photo-page .photos-grid {
  padding-left: 160px;
  padding-right: 160px;
}

/* ─── PAGE WRAPPER ───────────────────────── */
main { padding-top: var(--nav-h); }

/* ─── FILMS GRID ─────────────────────────── */
.films-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 36px var(--pad) 0;
  max-width: 1280px;
  margin: 0 auto;
}

.film-item {
  cursor: pointer;
  overflow: hidden;
}

.film-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.film-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.film-item:hover .film-thumb img { opacity: 0.82; transform: scale(1.03); }

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.film-play::after {
  content: '';
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.85);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.9)' d='M8 5.14v14l11-7-11-7z'/%3E%3C/svg%3E")
    center / 22px no-repeat,
    rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
}

.film-item:hover .film-play { opacity: 1; }

.film-info {
  padding: 12px 0 24px;
}

.film-info h2 {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.film-info p {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── VIDEO MODAL ────────────────────────── */
.video-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 5, 5, 0.93);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.open { opacity: 1; pointer-events: auto; }

.modal-inner {
  position: relative;
  width: 90vw;
  max-width: 1120px;
}

.modal-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.modal-ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 22px; height: 1px;
  background: rgba(255,255,255,0.8);
}

.modal-close::before { transform: rotate(45deg); }
.modal-close::after  { transform: rotate(-45deg); }
.modal-close:hover::before,
.modal-close:hover::after { background: white; }

/* ─── PHOTOS GRID ────────────────────────── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 36px var(--pad) 0;
  max-width: 1280px;
  margin: 0 auto;
}

.photo-item {
  cursor: zoom-in;
  overflow: hidden;
}

.photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.photo-item:hover img { opacity: 0.82; transform: scale(1.03); }

/* ─── LIGHTBOX CAROUSEL ──────────────────── */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 8, 8, 0.95);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 86vw;
  max-height: 86vh;
}

.lightbox-img-wrap img {
  max-width: 86vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 28px; right: 36px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 22px; height: 1px;
  background: rgba(255,255,255,0.7);
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }
.lightbox-close:hover::before,
.lightbox-close:hover::after { background: white; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 24px 28px;
  z-index: 600;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  user-select: none;
}

.lightbox-nav:hover { color: white; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
}

/* ─── CONTACT PAGE ───────────────────────── */
.contact-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--pad);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
}

.contact-photo {
  width: 300px;
  height: 380px;
  overflow: hidden;
  background: #f5f5f5;
}

.contact-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.contact-name {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-details a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  transition: opacity 0.25s;
}

.contact-details a:hover { opacity: 0.4; }

.contact-socials {
  display: flex;
  gap: 36px;
  justify-content: center;
}

.contact-socials a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.25s;
}

.contact-socials a:hover { opacity: 0.4; }

/* ─── FOOTER ─────────────────────────────── */
footer {
  padding: 36px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

footer p {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--black); }

/* ─── FILM DETAIL PAGE ───────────────────── */
.film-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px var(--pad) 100px;
}

.film-detail-back {
  display: inline-block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 56px;
  transition: color 0.25s;
}

.film-detail-back:hover { color: var(--black); }

.film-detail-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #f0f0f0;
  margin-bottom: 64px;
}

.film-detail-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Category label above title */
.film-detail-category {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.film-detail-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  line-height: 1.3;
}

/* Body text */
.film-detail-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: #333;
  margin-bottom: 80px;
}

/* Section heading (like Felix Kunze's h4) */
.film-detail-section-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
  margin-top: 72px;
}

/* Photo gallery — full width single row strip */
.film-detail-gallery {
  display: flex;
  gap: 4px;
  height: 38vh;
  min-height: 180px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 80px;
}

.film-detail-gallery img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-detail-gallery.natural {
  flex-wrap: wrap;
  height: auto;
  gap: 10px;
}

.film-detail-gallery.natural img {
  flex: 1 1 auto;
  height: 38vh;
  object-fit: cover;
}

/* Text sections with photo */
.film-detail-section {
  margin-bottom: 72px;
  max-width: 640px;
}

.film-detail-section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.film-detail-section p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: #333;
}

/* Section photo — full container width, after the text */
.film-detail-section-photo {
  width: calc(100% + var(--pad) * 0);
  margin-top: 36px;
  margin-bottom: 0;
  max-width: 1080px;
}

.film-detail-section-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Prev / Next navigation */
.film-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 100px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.film-detail-nav a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s;
}

.film-detail-nav a:hover { color: var(--black); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  :root { --pad: 20px; --nav-h: 48px; }

  .films-grid { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links { gap: 22px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.12em; }

  .contact-photo { width: 240px; height: 300px; }

  .lightbox-nav { padding: 14px 16px; }

  footer { flex-direction: column; gap: 14px; text-align: center; }

  .photo-subnav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding: 12px var(--pad);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    margin-bottom: 0;
  }

  .photo-page {
    padding-top: 40px;
  }

  .photo-page .photos-grid {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}
