/* Nachbau des Adobe-Portfolio-Layouts von photo.inmc.info.
   Schriften lokal gehostet: Jost (statt Futura PT), Oswald (statt der Condensed-Schrift). */
@font-face { font-family: Jost; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Oswald; src: url(fonts/oswald-latin-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #111;
  --fg: #fff;
  --muted: #999;
  --side: 40px;
  --gap: 5px;
  --cond: Oswald, "Arial Narrow", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--cond); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Kopfbereich: Navigation links, Logo zentriert */
.site-header {
  position: relative;
  padding: 40px var(--side) 50px;
  text-align: center;
}
.site-header nav {
  position: absolute; left: var(--side); top: 58px;
}
.site-header nav a {
  font-family: var(--cond); font-size: 19px; line-height: 1; text-transform: uppercase;
}
.logo {
  display: inline-block; max-width: 371px; padding: 0 18px;
  font-family: Jost, Futura, "Century Gothic", sans-serif; font-size: 35px; line-height: 35px;
}

.content { max-width: 1400px; margin: 0 auto; padding: 0 var(--side); }

/* Albumraster: 2 Spalten, 16:9, 5px Abstand, Titel beim Überfahren */
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .details {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 8%; text-align: center; opacity: 0; background: rgba(0, 0, 0, .55);
  transition: opacity .15s;
}
.cover:hover .details, .cover:focus-visible .details { opacity: 1; }
.cover .title { font-size: 24px; line-height: 28px; text-transform: uppercase; padding-bottom: 3px; }
.cover .date { font-size: 16px; line-height: 20px; color: var(--muted); padding-top: 5px; }

/* Albumseite: Titel, dann alle Bilder in voller Breite untereinander */
.project-title {
  margin: 30px 0 0; padding-bottom: 20px; text-align: center;
  font-family: var(--cond); font-weight: 400; font-size: 30px; line-height: 34px;
}
.photos { display: flex; flex-direction: column; gap: 20px; }
/* Jedes Bild passt komplett auf den Bildschirm: volle Breite, aber nie höher als das Fenster */
.photo { display: flex; justify-content: center; cursor: zoom-in; }
.photo img { width: auto; max-width: 100%; max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); }
.other-projects { margin-top: 60px; }

.site-footer {
  padding: 60px var(--side) 100px; text-align: center;
  color: var(--muted); font-size: 18px; line-height: 20px;
}

/* Handy: eine Spalte, Titel immer sichtbar (kein Hover auf Touch) */
@media (max-width: 640px) {
  :root { --side: 16px; }
  .site-header { padding: 24px var(--side) 32px; }
  .site-header nav { position: static; margin-bottom: 18px; }
  .logo { font-size: 28px; line-height: 30px; }
  .covers { grid-template-columns: 1fr; }
  .photos { gap: 10px; }
}
@media (hover: none) {
  .cover .details { opacity: 1; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .6)); justify-content: flex-end; padding-bottom: 14px; }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 10; display: none;
  align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .98);
}
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.lb button {
  position: absolute; background: none; border: 0; color: var(--fg); opacity: .6;
  font-size: 34px; padding: 16px 20px; cursor: pointer;
}
.lb button:hover { opacity: 1; }
.lb .x { top: 8px; right: 8px; font-size: 28px; }
.lb .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 4px; top: 50%; transform: translateY(-50%); }
