/* Projects page — Scrapbook look */

.p-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px) 0;
  text-align: center;
}
.p-intro h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.04;
}
.p-lede { margin-top: 18px; font-size: 19px; color: var(--muted); }

.p-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 40px;
  border-bottom: 2px dashed #d8c9b2;
}
.p-head h2 { margin: 0; }
.p-count { font-family: "Caveat", cursive; font-size: 24px; color: var(--clay); }

.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 48px 36px;
}
.p-card .c-polaroid { width: 100%; max-width: 260px; margin: 0 auto 22px; }
.p-text { max-width: 300px; margin: 0 auto; }
.p-text h3 { font-family: var(--serif); font-weight: 450; font-size: 24px; margin: 4px 0 8px; }
.p-text p:last-child { color: var(--muted); }
.p-pattern { margin-top: 10px; font-size: 15px; }
.p-pattern a { color: var(--clay); }

@media (max-width: 760px) {
  .p-grid { grid-template-columns: 1fr; }
}
.p-photo { overflow: hidden; background: var(--linen); }
.p-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Several photos in one polaroid: click to see the next */
.p-photo { position: relative; }
.p-multi { cursor: pointer; }
.p-multi .p-photo img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.p-multi .p-photo img.on { opacity: 1; }
.p-multi:hover { box-shadow: 0 10px 22px rgba(59, 47, 39, .2); }
.p-multi:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.p-dots { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 5px; }
.p-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e0d2bc; }
.p-dots i.on { background: var(--clay); }
.p-hint { font-family: "Caveat", cursive; font-size: 18px; color: var(--muted); text-align: center; margin: -10px 0 14px; }
.p-empty { font-family: "Caveat", cursive; font-size: 26px; color: var(--muted); text-align: center; padding: 8px 0 12px; }

/* Finished makes: straight square photos, no polaroids (Anne, 2026-11-04) */
.p-square { display: block; width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; margin: 0 auto 22px; background: var(--linen); }
.p-more { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--clay); }
.p-text h3 a:hover { text-decoration: none; color: var(--clay); }

/* Doll cards: the whole doll with soft blurred sides, like on their own pages (see .g-blur in gallery.css) */
.p-blur { position: relative; display: block; overflow: hidden; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto 22px; }
.p-blur::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover; filter: blur(16px); }
.p-blur .p-square { position: relative; margin: 0; max-width: none; background: transparent; }
