/* Photo bands; a band stays hidden until its photo exists (see foto.js). Add ?gorsel to a URL to see empty slots. */
.foto-section {
  padding-block: clamp(20px, 4vw, 44px);
}

.foto-section.is-empty {
  display: none;
}

html.foto-onizleme .foto-section.is-empty {
  display: block;
}

.foto {
  margin: 0;
}

.foto-frame {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--milk-deep);
  box-shadow: var(--shadow);
}

.foto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.foto-section.is-loaded .foto-frame img {
  opacity: 1;
}

.foto figcaption {
  margin-top: 12px;
  font: 500 14px/1.55 var(--font-mono);
  color: var(--muted);
}

.foto figcaption::before {
  content: '// ';
  color: var(--coffee);
}

html.foto-onizleme .foto-section.is-empty .foto-frame {
  display: grid;
  place-items: center;
  border: 2px dashed var(--latte);
  box-shadow: none;
}

html.foto-onizleme .foto-section.is-empty .foto-frame img {
  display: none;
}

html.foto-onizleme .foto-section.is-empty .foto-frame::after {
  content: 'görsel: ' attr(data-foto) '.jpg';
  font: 600 15px/1.4 var(--font-mono);
  color: var(--coffee);
}

@media (max-width: 640px) {
  .foto-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foto-frame img {
    transition: none;
  }
}

/* Intro video: never autoplays and loads nothing but the poster until played. */
.video-head {
  max-width: 760px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--roast);
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--roast);
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
  font: 500 14px/1.55 var(--font-mono);
  color: var(--muted);
}

.video-meta::before {
  content: '// ';
  color: var(--coffee);
}

.video-meta p {
  margin: 0;
  flex: 1 1 320px;
}

.video-meta a {
  color: var(--coffee);
  font-weight: 600;
  text-underline-offset: 3px;
}

.video-page .actions {
  margin-top: clamp(24px, 4vw, 40px);
}
