/* Lookbook grid (/lookbooks) and viewer (/lookbooks/<slug>).
   Loaded after styles.css by lookbooks.html and lookbook.html. */

@font-face {
  font-family: "Cardillac-Light-Italic";
  src: url("../fonts/Cardillac-LightItalic.woff2") format("woff2"),
    url("../fonts/Cardillac-LightItalic.woff") format("woff"),
    url("../fonts/Cardillac-LightItalic.ttf") format("truetype");
}

.serif-font {
  font-family: "Cardillac-Light-Italic", sans-serif;
}

.lookbook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ---------- Cards ---------- */

.lookbook-card {
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.lookbook-card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.lookbook-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* aspect-ratio is set inline from the cover's own size, so portrait and
   landscape lookbooks both show uncropped. */
.lookbook-cover {
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lookbook-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook-cover .material-symbols-outlined {
  font-size: 64px;
  color: #9a9a9a;
}

.lookbook-card .card-title {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lookbook-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

/* ---------- Viewer page ---------- */

.lookbook-intro {
  white-space: pre-line;
  max-width: 60rem;
}

.lookbook-viewer {
  display: block;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 600px;
  border: 0;
  border-radius: 4px;
  background: #525659; /* matches the browser PDF viewer, so no white flash */
}

/* Phones and small tablets can't page through an embedded PDF (iOS shows
   page 1 only, Android shows nothing), so they get the cover and a button
   that opens the PDF in the device's own viewer instead. */
.lookbook-mobile-cover {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
