/* Photographer photos: photographer pages and "Mis fotos". */
.photos-page { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.photos-page > .back-link:first-child { margin-top: 16px; }
.photos-form { display: grid; gap: 12px; max-width: 560px; }
.photos-form label { display: grid; gap: 4px; color: var(--text-secondary); }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.photos-card { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.photos-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photos-card .photos-card-meta { padding: 8px 10px 10px; font-size: 12px; color: var(--text-secondary); display: grid; gap: 8px; }
/* The Galería toggle must fit a narrow card: small, centred, wraps instead of overflowing. */
.photos-card-meta form { margin-top: 6px; }
.photos-card-meta .btn-ghost.sm { box-sizing: border-box; max-width: 100%; padding: 3px 8px; font-size: 11px; line-height: 1.3; white-space: normal; }
.photos-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.photos-chips button { border-radius: 999px; }
/* C2: the username row is first in the DOM (its button is the form's
   default submit target for Enter), but the driver chips still read first
   on screen -- `order` only affects layout, never DOM/tab order. */
.photos-tag-rows { display: flex; flex-direction: column; }
.photos-tag-rows .photos-tag-username { order: 2; }
.photos-tag-rows .photos-tag-entries { order: 1; }
.upload-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.upload-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; font-size: 13px; }
.upload-row.is-error .upload-status { color: var(--critical); }
.upload-row.is-done .upload-status { color: var(--accent); }
.photos-album-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
/* Mis fotos: each fecha is its own block, so the jump from one to the next reads at a glance. */
.photos-library-album { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.photos-library-album:first-of-type { margin-top: 20px; padding-top: 0; border-top: 0; }
.photos-library-album .photos-album-head { margin-bottom: 16px; padding: 12px 16px; background: var(--surface-raised); border-left: 3px solid var(--accent); border-radius: 8px; }
.photos-library-album .photos-album-head h2 { margin: 0; }
.photos-album-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.photos-album-list a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.photos-album-list a:hover { color: var(--accent-strong); }
.photos-vis { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.8em; font-weight: 600; }
.photos-vis.is-private { background: rgba(139, 149, 170, 0.18); color: #aab3c5; }
.photos-vis.is-public { background: rgba(0, 230, 118, 0.16); color: #00e676; }
/* Bare .btn is never a global class in this codebase (see store.css's
   ".store-page .btn") -- scoped here the same way, for the "new album" link
   and the uploader's file-picker label. */
.photos-page button[type="submit"],
.photos-page .btn {
  background: var(--accent);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
}
.photos-page button[type="submit"]:hover,
.photos-page .btn:hover { background: var(--accent-strong); }
.photos-muted { color: var(--text-secondary); font-size: 13px; }
.photos-fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.photos-fieldset legend { padding: 0 4px; color: var(--text-secondary); }
.photos-check { display: flex !important; gap: 8px; align-items: center; }
.photos-sale-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.photos-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.photos-inline-form label { display: grid; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.photos-license { max-width: 760px; }
.photos-card-actions { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.photos-buy { font-weight: 600; color: var(--accent); }
/* Public album card: a calm light "Comprar" button with the price on its right, a quiet "Soy yo" beside it. */
.photos-card .photos-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photos-card .photos-buy { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 10px; background: var(--text-primary); color: var(--surface); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.photos-card .photos-buy b { font-weight: 800; font-variant-numeric: tabular-nums; padding-left: 10px; border-left: 1px solid currentColor; }
.photos-card .photos-buy:hover { filter: brightness(1.12); transform: translateY(-1px); }
.photos-card .photos-owned { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.photos-card-actions form { margin: 0; }
.photos-card-actions .btn-ghost.sm { padding: 5px 12px; font-size: 12px; border-radius: 999px; color: var(--text-soft); border: 1px solid var(--line); background: transparent; }
.photos-card-actions .btn-ghost.sm:hover { color: var(--text-primary); border-color: var(--text-soft); }
.photos-checkout { max-width: 640px; }
.photos-checkout-img { display: block; width: 100%; border-radius: 8px; margin: 12px 0; }
.photos-checkout-price { font-size: 28px; font-weight: 700; margin: 8px 0; }
.photos-report summary { cursor: pointer; font-size: 12px; color: var(--text-secondary); }
.photos-report form { display: grid; gap: 6px; margin-top: 6px; }
@media (max-width: 640px) {
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-row { grid-template-columns: 1fr; }
}

/* The photographer's home and Mis fotos are account pages: the account width
   (900px, as Mis pagos and Planes) rather than the 1100px the photographer's
   album editor uses, so their left edge lines up with the rest of Cuenta. */
.photos-page.photos-page-narrow { max-width: 900px; padding-left: 20px; padding-right: 20px; }
.photos-panel {
  background: linear-gradient(175deg, var(--surface) 0%, var(--card-gradient-end) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 0 0 20px;
}
.photos-panel h2 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.photos-panel .photos-muted { margin: 0 0 18px; }
.photos-panel .photos-form { max-width: none; }
.photos-form label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.photos-form textarea, .photos-form input[type="url"] {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--ink); color: var(--text-primary); font: inherit; font-size: 15px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.photos-form textarea:focus, .photos-form input[type="url"]:focus { border-color: var(--accent-line); outline: none; }
.photos-form button[type="submit"] { justify-self: start; }

/* Photographer home: one card per event of the series. */
.photos-page.photos-page-narrow.photos-page-wide { max-width: 1100px; }
.ph-section-title { margin: 28px 0 4px; font-size: 18px; }
.ph-section-sub { margin: 0 0 14px; color: var(--text-secondary); font-size: 13px; }
.ph-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ph-event-card { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.ph-event-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.ph-event-card.has-album { border-color: var(--accent-line); }
.ph-event-cover { position: relative; height: 120px; background: linear-gradient(135deg, var(--surface-hover), var(--surface-2)) center / cover; }
.ph-event-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%); }
.ph-event-date { position: absolute; z-index: 1; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 5px 8px; border-radius: 10px; background: rgba(10, 13, 16, 0.72); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; backdrop-filter: blur(6px); }
.ph-event-date b { font-size: 18px; line-height: 1.1; }
.ph-event-chip { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(10, 13, 16, 0.72); color: #cfd6dd; font-size: 11px; font-weight: 600; }
.ph-event-chip.draft { color: var(--amber); }
.ph-event-chip.live { color: var(--accent); }
.ph-event-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px; }
.ph-event-body h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.ph-event-body p { margin: 0; color: var(--text-secondary); font-size: 12.5px; }
.ph-event-count { color: var(--text-soft) !important; }
.ph-event-body .btn { margin-top: auto; align-self: flex-start; padding: 8px 14px; font-size: 13px; }

/* The pilot suggestions under the tag box (same list as @mentions and the search). */
.mention-drop { position: absolute; z-index: 300; max-height: 260px; overflow-y: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.55); }
.mention-drop[hidden] { display: none; }
.mention-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.mention-item:hover, .mention-item.active { background: var(--surface-hover); }
.mention-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 11px; color: var(--text-secondary); }
.mention-av img { width: 100%; height: 100%; object-fit: cover; }
.mention-main { display: flex; flex-direction: column; min-width: 0; }
.mention-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-username { font-size: 11px; color: var(--text-tertiary); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 10, 0.93);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 4vw;
}
.lb-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.85);
}
.lb-cap { font-size: 13px; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.lb-cap[hidden] { display: none; }
.lb-close,
.lb-nav {
  position: fixed;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1;
  transition: background 0.15s ease;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close {
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 26px;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-play { position: fixed; top: 18px; right: 72px; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 16px; line-height: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); }
.lb-publish { position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.lb-profile { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.lb-profile[hidden] { display: none; }
.lb-profile:hover:not(:disabled) { background: rgba(255,255,255,0.26); }
.lb-profile:disabled { opacity: 0.6; }
.lb-publish[hidden] { display: none; }
.lb-publish:hover:not(:disabled) { background: rgba(255,255,255,0.26); }
.lb-publish:disabled { opacity: 0.6; }
.lb-play:hover { background: rgba(255,255,255,0.24); }
.lightbox.single .lb-play { display: none; }
.lightbox.single .lb-nav,
.lightbox.single .lb-counter { display: none; }
.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .lb-nav { width: 42px; height: 42px; font-size: 24px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}


.photos-card a.lb-cell { display: block; cursor: zoom-in; }
.photos-danger { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-secondary); font-size: 13px; }
.photos-danger summary { cursor: pointer; font-weight: 600; color: var(--critical); }
.photos-danger .photos-danger-btn { background: var(--critical); border-radius: 8px; color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; padding: 10px 16px; }
.photos-collapse { background: none; border: 0; color: var(--text-soft); cursor: pointer; padding: 4px; display: inline-flex; }
.photos-collapse svg { width: 20px; height: 20px; transition: transform 0.15s; }
.photos-library-album.is-collapsed .photos-collapse svg { transform: rotate(-90deg); }
.photos-library-album.is-collapsed .photos-grid, .photos-library-album.is-collapsed .photos-select-bar { display: none; }
.photos-library-album.is-collapsed .photos-album-head { margin-bottom: 0; }
.lb-select { position: fixed; bottom: 140px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.lb-select[hidden] { display: none; }
.lb-select:hover { background: rgba(255,255,255,0.26); }
.lb-select.on { background: var(--accent); color: #04140a; border-color: var(--accent); }

/* Mis fotos toolbar and cards */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.photos-select-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; padding: 10px 14px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; }
.photos-sel-count { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.photos-sel-count.has-selection { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.photos-btn { font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-primary); cursor: pointer; transition: background .15s, border-color .15s; }
.photos-btn:hover { background: var(--surface-hover); border-color: var(--accent-line); }
.photos-btn.primary { background: var(--accent); border-color: var(--accent); color: #04140a; font-weight: 800; }
.photos-btn.primary:hover { background: var(--accent-strong); }
.photos-bar-group { display: inline-flex; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.photos-bar-group i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); }
.photos-sel-warn { flex-basis: 100%; padding: 8px 12px; border-radius: 8px; background: rgba(255, 92, 92, .14); border: 1px solid rgba(255, 92, 92, .5); color: #ff8a8a; font-size: 13px; }
.photos-sel-warn[hidden] { display: none; }
.photos-select { position: absolute; top: 8px; left: 8px; z-index: 2; width: 24px; height: 24px; margin: 0; padding: 0; cursor: pointer; }
.photos-select input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(8, 10, 14, .45); cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); display: grid; place-items: center; }
.photos-select input:checked { background: var(--accent); border-color: var(--accent); }
.photos-select input:checked::after { content: "✓"; color: #04140a; font-size: 14px; font-weight: 900; line-height: 1; }
.photos-card-links { display: flex; gap: 10px; font-size: 11.5px; }
.photos-card-links a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.photos-card-links a:hover { color: var(--accent); }
.photos-card-toggles { display: flex; gap: 6px; }
.photos-card-toggles form { flex: 1; margin: 0; }
.photos-chip { width: 100%; font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 7px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-soft); cursor: pointer; transition: background .15s, color .15s; }
.photos-chip:hover { background: var(--surface-hover); color: var(--text-primary); }
.photos-chip.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
