/* raj.miami portfolio page. Loads after site.css. Every photo is visible by default; portfolio.js only adds filtering. */
.pf-hero { padding: clamp(7rem, 14vw, 10rem) 0 clamp(2rem, 4vw, 3rem); }
.pf-hero .big { font-size: clamp(4rem, 14vw, 12rem); }
.pf-hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: 1.4rem; }
.pf-hero__row .lede { margin: 0; max-width: 40ch; text-wrap: balance; }

.pf { background: #060606; padding: 0 0 clamp(4rem, 8vw, 7rem); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 clamp(1.5rem, 3vw, 2.4rem); }
.pf-chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(243, 237, 227, 0.26); background: transparent; color: var(--sc-ink); text-decoration: none; font: 500 0.95rem var(--sc-font-text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 250ms var(--ease-smooth-out), color 250ms var(--ease-smooth-out), border-color 250ms var(--ease-smooth-out); }
.pf-chip__n { font-size: 0.8rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.pf-chip:hover { background: rgba(243, 237, 227, 0.08); }
.pf-chip[aria-pressed="true"] { background: var(--sc-ink); border-color: var(--sc-ink); color: #060606; }
.pf-chip[aria-pressed="true"] .pf-chip__n { color: #3b352e; }
.pf-chip:active { transform: scale(0.97); }

.pf-set { padding-top: clamp(2rem, 4vw, 3rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid rgba(243, 237, 227, 0.12); scroll-margin-top: 5.5rem; }
.pf-set:first-of-type { margin-top: 0; }
.pf-set[hidden] { display: none; }
.pf-set__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.pf-set__name { margin: 0; font-family: var(--sc-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 0.9; }
.pf-set .more { margin-top: 0; }

/* justified rows: every photo in a row shares one height and keeps its own shape, so nothing is cropped and no face is
   cut. Reading order is left to right, the same order the viewer steps through. --r is width / height, set per tile. */
.pf-grid { --rowh: clamp(120px, 15vw, 230px); --gap: clamp(0.4rem, 0.9vw, 0.8rem); display: flex; flex-wrap: wrap; gap: var(--gap); }
.pf-grid::after { content: ""; flex: 999 1 0; }
.pf-tile { flex: var(--r) 1 calc(var(--r) * var(--rowh)); aspect-ratio: var(--r); display: block; border-radius: 10px; overflow: hidden; background: #111; cursor: zoom-in; }
.pf-tile img { width: 100%; height: 100%; object-fit: cover; }
.pf-tile:focus-visible { outline: 3px solid var(--sc-ink); outline-offset: -3px; }
@media (max-width: 600px) { .pf-grid { --rowh: 96px; --gap: 0.4rem; } .pf-tile { border-radius: 8px; } }

/* viewer additions: a caption line and room for the arrows on phones */
.lb__count { text-align: center; padding: 0 4.5rem; }
.lb__close:focus-visible, .lb__nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .pf-tile img { transition: transform 1200ms var(--ease-smooth-out); }
  .pf-tile:hover img { transform: scale(1.04); }
  .pf.is-filtered .pf-set:not([hidden]) .pf-tile { animation: pf-in 600ms var(--page-ease) both; animation-delay: calc(var(--k) * 35ms); }
}
@keyframes pf-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pf-chip { transition: none; } .pf-chip:active { transform: none; } }
