/* ═══════════════════════════════════════════════════════════════════════════
   Live Photos wall  ·  screen key: photos
   Translated from  Shore Pass Design/screens-detail.jsx › LivePhotosScreen
   plus             Shore Pass Design/screens-home.jsx   › LivePhotoHero
   Every rule is scoped under .scr-photos.
   ═══════════════════════════════════════════════════════════════════════════ */

.scr-photos { padding-bottom: 26px; }

/* ──────────────── HEADER — components.jsx › TopBar ──────────────── */
.scr-photos__head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px 12px;
    background: var(--sp-surface);
    border-bottom: 1px solid var(--sp-line);
    position: sticky; top: 0; z-index: 10;
}
.scr-photos__back {
    flex: 0 0 auto; width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--sp-bg); border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    color: var(--sp-ink); text-decoration: none;
}
.scr-photos__back:hover { border-color: var(--sp-red); color: var(--sp-red); }
.scr-photos__backico { width: 20px; height: 20px; transform: rotate(180deg); }

.scr-photos__headbody { flex: 1; min-width: 0; }
.scr-photos__eyebrow {
    margin: 0 0 2px; font-family: var(--sp-font-display);
    font-size: 10px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--sp-red);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scr-photos__title {
    margin: 0; font-family: var(--sp-font-display);
    font-size: 22px; font-weight: 600; line-height: 1.1;
    letter-spacing: .01em; text-transform: uppercase;
    color: var(--sp-ink);
}
.scr-photos__upload {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 999px;
    background: var(--sp-red); color: #fff;
    font-size: 12px; font-weight: 700; text-decoration: none;
}
.scr-photos__upload:hover { background: var(--sp-red-deep); }
.scr-photos__uploadico { width: 14px; height: 14px; }

.scr-photos__body { padding: 14px; }

/* ──────────────── FILTER PILLS ──────────────── */
.scr-photos__pills {
    display: flex; gap: 6px; margin-bottom: 14px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.scr-photos__pill {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--sp-line);
    background: var(--sp-surface); color: var(--sp-slate);
    font-size: 12px; font-weight: 600; white-space: nowrap;
    text-decoration: none;
}
.scr-photos__pill:hover { border-color: var(--sp-red); color: var(--sp-red); }
/* --sp-ink / --sp-surface flip together, so this stays legible in both themes
   (a literal #fff would be white-on-white once --sp-ink goes light). */
.scr-photos__pill.is-on {
    background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-surface);
}
.scr-photos__pill.is-on:hover { color: var(--sp-surface); border-color: var(--sp-ink); }
.scr-photos__pillnum {
    font-family: var(--sp-font-mono); font-size: 10px;
    opacity: .7; font-variant-numeric: tabular-nums;
}

/* ──────────────── LEAD IMAGE — LivePhotoHero ──────────────── */
.scr-photos__hero {
    position: relative; display: block;
    aspect-ratio: 4 / 5; overflow: hidden;
    margin-bottom: 12px;
    border-radius: var(--sp-r-lg);
    background: #000; color: #fff; text-decoration: none;
    box-shadow: var(--sp-shadow-2);
}
.scr-photos__heroimg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.scr-photos__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
}
.scr-photos__badge {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; font-family: var(--sp-font-display);
    font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
}
.scr-photos__badgeico { width: 13px; height: 13px; }

/* .sp-datestamp / .sp-datestamp__big come from design.css unchanged — only
   bounded here so a long place name cannot stretch the rotated stamp off-frame. */
.scr-photos__hero .sp-datestamp { max-width: 62%; }
.scr-photos__hero .sp-datestamp__big {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.scr-photos__herocap {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    display: block; color: #fff;
}
.scr-photos__herotitle {
    display: block; font-size: 17px; font-weight: 700;
    line-height: 1.25; margin-bottom: 6px;
}
.scr-photos__herometa {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; opacity: .9;
}
.scr-photos__poster {
    padding: 2px 7px; border-radius: var(--sp-r-sm);
    background: var(--sp-red); color: #fff;
    font-weight: 700; letter-spacing: .05em;
    max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ──────────────── MASONRY — LivePhotosScreen ──────────────── */
.scr-photos__grid { column-count: 2; column-gap: 10px; }

.scr-photos__cell {
    display: block; break-inside: avoid; margin-bottom: 10px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-lg);
    overflow: hidden; text-decoration: none;
    box-shadow: var(--sp-shadow-1);
}
.scr-photos__cell:hover { border-color: var(--sp-red-soft); }

.scr-photos__shot { position: relative; display: block; background: var(--sp-bg-2); }
.scr-photos__shot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.scr-photos__shot--a { aspect-ratio: 3 / 4; }
.scr-photos__shot--b { aspect-ratio: 4 / 5; }
.scr-photos__shot--c { aspect-ratio: 1 / 1; }

.scr-photos__tag {
    position: absolute; left: 6px; bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 6px; border-radius: 4px;
    background: rgba(0, 0, 0, .6); color: #fff;
    font-size: 9px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.scr-photos__meta { display: block; padding: 8px 10px; }
.scr-photos__cap {
    display: block; font-size: 11px; font-weight: 600;
    line-height: 1.3; color: var(--sp-ink);
}
.scr-photos__by {
    display: block; margin-top: 3px;
    font-size: 10px; color: var(--sp-slate-2);
}

.scr-photos__solo {
    margin: 0; padding: 14px 16px;
    background: var(--sp-surface);
    border: 1px dashed var(--sp-line);
    border-radius: var(--sp-r-lg);
    font-size: 12.5px; line-height: 1.45; color: var(--sp-slate);
}

/* ──────────────── EMPTY ──────────────── */
.scr-photos__empty {
    padding: 30px 20px; text-align: center;
    background: var(--sp-surface);
    border: 1px dashed var(--sp-line);
    border-radius: var(--sp-r-lg);
    font-size: 12.5px; line-height: 1.5; color: var(--sp-slate);
}
.scr-photos__emptyico {
    width: 64px; height: 64px; margin: 0 auto 14px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: var(--sp-red-soft); color: var(--sp-red);
}
.scr-photos__emptysvg { width: 28px; height: 28px; }
.scr-photos__empty b {
    display: block; margin-bottom: 6px;
    font-family: var(--sp-font-display);
    font-size: 18px; font-weight: 600; color: var(--sp-ink);
}
.scr-photos__emptytxt { display: block; max-width: 34ch; margin: 0 auto; }
.scr-photos__emptycta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 16px; padding: 10px 20px; border-radius: 999px;
    background: var(--sp-red); color: #fff;
    font-size: 13px; font-weight: 700; text-decoration: none;
}
.scr-photos__emptycta:hover { background: var(--sp-red-deep); }

/* ──────────────── Wider viewports ──────────────── */
@media (min-width: 720px) {
    .scr-photos__body { padding: 18px 0 0; }
    .scr-photos__hero { aspect-ratio: 16 / 9; }
    .scr-photos__herotitle { font-size: 20px; }
    .scr-photos__grid { column-count: 3; column-gap: 14px; }
    .scr-photos__cell { margin-bottom: 14px; }
}
@media (min-width: 1000px) {
    .scr-photos__grid { column-count: 4; }
}

/* Secondary (port) pill row — the prototype has only the category row, because
   it mocks a single port; this app spans every port so the axis is useful. */
.scr-photos__pills--ports { margin-top: -4px; opacity: .92; }
.scr-photos__pill.is-empty { opacity: .45; }
/* A chip you are standing on must stay legible even when its count is zero —
   dimming the active filter reads as "disabled" and hides where you are. */
.scr-photos__pill.is-on.is-empty { opacity: 1; }
