/* ==========================================================================
   RIA Advisory — LIFE AT RIA  ·  2026-08-20
     /life-at-ria/            album grid + category filter
     /life-at-ria/<slug>/     one page per album, gallery + lightbox

   The HERO is not styled here: it reuses the approved product hero
   (.pd-hero / .pd-hero__grid / .pd-hero__shot) from product-detail.css,
   which both pages load. Same stylesheet, so it cannot drift.

   Namespace: lf-  .

   CLIENT RULES: linear gradients only, no circles, no "01/02" numbering,
   motion never wrapped in a reduced-motion query.
   HOUSE RULES: clamp()/calc() need SPACES around +/- ; grid/flex children
   that hold text need min-width: 0 .
   ========================================================================== */

/* .r3-rail is hidden by product-detail.css, which these pages load. */

/* Tighter than the shared .section (up to 6.5rem top AND bottom).
   MUST be `.r3 .x`: the shared rule is `.r3 .section` (0,2,0), so a bare
   class (0,1,0) loses and the tightening never applied. */
.r3 .lf-albums, .r3 .lf-gal { padding-block: clamp(2rem, 1.5rem + 1.6vw, 3rem); }

.lf-eyebrow { display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono, monospace); font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.lf-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--orange); }

.lf-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.2rem, .9rem + 2vw, 3rem); align-items: end;
  margin-bottom: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); }
.lf-head > * { min-width: 0; }
.lf-head h2 { font-size: clamp(1.7rem, 1.15rem + 2.4vw, 2.7rem); line-height: 1.08;
  letter-spacing: -.03em; margin: .85rem 0 0; }
.lf-head__aside { color: var(--slate); font-size: 1rem; line-height: 1.64; }
@media (max-width: 900px) { .lf-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ==========================================================================
   HERO CAROUSEL
   Occupies the approved hero's media slot, so it inherits the flush-right,
   flush-bottom placement; only the top-left corner is rounded, exactly as a
   product screenshot would be. The client's own banner set, 16:9 cropped.
   ========================================================================== */
.lf-car { position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 16 / 9; border-radius: 12px 0 0 0;
  background: #0B1D3B; box-shadow: 0 40px 80px -50px rgba(0,0,0,.65); }
.lf-car__track { display: flex; height: 100%; width: 100%;
  transition: transform .7s cubic-bezier(.22,1,.36,1); will-change: transform; }
.lf-car__slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.lf-car__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Arrows sit inside the frame, low-contrast until hovered. */
.lf-car__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(11,24,48,.4);
  color: #fff; font-size: .8rem; opacity: 0;
  transition: opacity .25s ease, background .25s ease, border-color .25s ease; }
.lf-car:hover .lf-car__nav, .lf-car__nav:focus-visible { opacity: 1; }
.lf-car__nav:hover { background: rgba(11,24,48,.75); border-color: rgba(255,255,255,.6); }
.lf-car__nav--p { left: .7rem; }
.lf-car__nav--n { right: .7rem; }

/* Dots: rounded SQUARES, never circles (standing client rule). */
.lf-car__dots { position: absolute; left: 0; right: 0; bottom: .7rem; z-index: 2;
  display: flex; justify-content: center; gap: .35rem; }
.lf-car__dot { width: 18px; height: 4px; border-radius: 2px; border: 0;
  background: rgba(255,255,255,.42); cursor: pointer;
  transition: background .25s ease, width .25s ease; }
.lf-car__dot:hover { background: rgba(255,255,255,.7); }
.lf-car__dot.is-on { width: 28px; background: var(--orange); }

@media (max-width: 1040px) {
  .lf-car { aspect-ratio: 16 / 10; border-radius: 12px; }
  .lf-car__nav { opacity: 1; }
}

/* ==========================================================================
   ALBUM GRID
   Every tile is identical: a fixed 4:3 cover plus a body. Albums whose
   description the client never wrote simply have a shorter body — the cover
   is what sets the row height, so the grid stays level either way.
   ========================================================================== */
.lf-chips { display: flex; flex-wrap: wrap; gap: .45rem;
  margin-bottom: clamp(1rem, .8rem + .9vw, 1.5rem); }
.lf-chip { padding: .48rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--white);
  font-size: .84rem; font-weight: 600; color: var(--slate); white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease; }
.lf-chip:hover { border-color: var(--navy); color: var(--navy); }
.lf-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.lf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, .7rem + .9vw, 1.4rem); }
.lf-grid > * { min-width: 0; }
.lf-card[hidden] { display: none; }

.lf-card { min-width: 0; }
.lf-card__a { display: flex; flex-direction: column; height: 100%; min-width: 0;
  border-radius: 16px; overflow: hidden; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11,24,48,.04);
  transform: translateY(0); will-change: transform;
  transition: transform .4s cubic-bezier(.22,1,.36,1),
              box-shadow .4s ease, border-color .3s ease; }
.lf-card__a:hover { transform: translateY(-6px); border-color: var(--sky);
  box-shadow: 0 30px 56px -34px rgba(11,24,48,.45); }

.lf-card__media { position: relative; display: block; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--sky-tint, #F1F7FC); }
.lf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1); }
.lf-card__a:hover .lf-card__media img { transform: scale(1.05); }
.lf-card__count { position: absolute; right: .6rem; bottom: .6rem;
  padding: .28rem .6rem; border-radius: 7px;
  background: rgba(11,24,48,.72); color: #fff;
  font-family: var(--font-mono, monospace); font-size: .64rem; letter-spacing: .04em; }

.lf-card__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0;
  padding: 1rem 1.1rem 1.15rem; }
.lf-card__cat { font-family: var(--font-mono, monospace); font-size: .6rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.lf-card__t { margin: .45rem 0 0; font-size: 1.05rem; letter-spacing: -.02em;
  line-height: 1.28; color: var(--ink); }
.lf-card__a:hover .lf-card__t { color: var(--navy); }
/* No description on the cards — the client asked for cover + title only, and
   it also sidesteps the fact that only 6 of 19 albums have real copy. The
   full text still shows on the album page itself. */
.lf-card__go { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto;
  padding-top: .9rem; font-size: .84rem; font-weight: 600; color: var(--navy); }
.lf-card__go svg { width: 14px; height: 14px; stroke-width: 2; transition: transform .3s ease; }
.lf-card__a:hover .lf-card__go svg { transform: translateX(4px); }

@media (max-width: 980px) { .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .lf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   ALBUM PAGE
   ========================================================================== */
.lf-ahead { background: linear-gradient(180deg, #EDF4FB 0%, #F6FAFD 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.8rem, 1.4rem + 1.8vw, 3rem); }
.lf-ahead h1 { margin: .8rem 0 0; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.lf-ahead__d { margin: .9rem 0 0; max-width: 62ch; color: var(--slate);
  font-size: 1rem; line-height: 1.68; }
.lf-ahead__n { margin: 1rem 0 0; font-family: var(--font-mono, monospace);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

/* Uniform 4:3 frames with object-fit — the source photos are a mix of
   portrait and landscape, and a masonry of raw ratios looked scrappy. */
.lf-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, .4rem + .5vw, .85rem); }
.lf-shots > * { min-width: 0; }
.lf-shot { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--sky-tint, #F1F7FC); border: 1px solid var(--line);
  cursor: zoom-in; transform: translateY(0);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.lf-shot img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1); }
.lf-shot:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(11,24,48,.5); }
.lf-shot:hover img { transform: scale(1.06); }
.lf-shot:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

@media (max-width: 980px) { .lf-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .lf-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* prev / all / next */
.lf-nav { display: flex; align-items: stretch; gap: .7rem; flex-wrap: wrap;
  margin-top: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  padding-top: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-top: 1px solid var(--line); }
.lf-nav__a { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.lf-nav__a:hover { border-color: var(--sky); background: #F7FAFD; transform: translateY(-2px); }
.lf-nav__a--n { justify-content: flex-end; text-align: right; }
.lf-nav__a i { flex: none; font-size: .8rem; color: var(--navy); }
.lf-nav__a span { min-width: 0; display: grid; gap: .15rem;
  font-family: var(--font-display, sans-serif); font-weight: 700; font-size: .94rem;
  letter-spacing: -.014em; }
.lf-nav__a small { font-family: var(--font-mono, monospace); font-weight: 500;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.lf-nav__all { flex: none; display: inline-flex; align-items: center;
  padding: .85rem 1.3rem; border-radius: 12px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font-size: .88rem; font-weight: 600;
  transition: background .25s ease, border-color .25s ease; }
.lf-nav__all:hover { background: #2f5f9e; border-color: #2f5f9e; }

@media (max-width: 700px) { .lf-nav__all { order: 3; flex: 1 1 100%; justify-content: center; } }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
body.lf-lock { overflow: hidden; }

.lf-box { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: clamp(2.6rem, 2rem + 3vw, 4.5rem);
  background: rgba(8,18,38,.94);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.lf-box.is-open { opacity: 1; visibility: visible; }
.lf-box__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  border-radius: 8px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }

.lf-box__x, .lf-box__nav { position: absolute; z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1rem;
  transition: background .22s ease, border-color .22s ease, transform .22s ease; }
.lf-box__x:hover, .lf-box__nav:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.lf-box__x { top: clamp(.8rem, .6rem + .8vw, 1.5rem); right: clamp(.8rem, .6rem + .8vw, 1.5rem); }
.lf-box__nav--p { left: clamp(.6rem, .4rem + .8vw, 1.5rem); }
.lf-box__nav--n { right: clamp(.6rem, .4rem + .8vw, 1.5rem); }
.lf-box__nav--p:hover { transform: translateX(-3px); }
.lf-box__nav--n:hover { transform: translateX(3px); }
.lf-box__c { position: absolute; bottom: clamp(.9rem, .7rem + .8vw, 1.6rem); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: .12em;
  color: rgba(255,255,255,.72); }

@media (max-width: 620px) {
  .lf-box { padding: 3.4rem .8rem 3.4rem; }
  .lf-box__x, .lf-box__nav { width: 40px; height: 40px; }
}
