/* Admin-picked story images (2026-09-24, room ctt #4016). Kept out of av.css, which arrives by upload from the designer box.
   Colours come from the av.css theme tokens; text over a photo is always white on a dark fade, in every theme. */
.av-entry-img { border-left: 0; padding-left: 0; background: none; padding-top: 12px; }
.av-photo { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: var(--panel-2); margin: 0 0 8px; isolation: isolate; }
.av-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; z-index: -1; }
.av-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 68%); }
a.av-photo:hover img { transform: scale(1.03); }
.av-photo .av-photo-h, .av-entry-group .av-photo .av-photo-h { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 14px 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font: 700 17px/1.25 var(--display); }
.av-photo-credit { position: absolute; top: 8px; right: 8px; font: 10px/1 var(--body); padding: 4px 6px; border-radius: 3px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.85); }

/* Admin-only "+ image" control, added in the browser by av-admin-img.js (never part of the cached news HTML). */
.av-adm { margin-top: 6px; }
.av-adm-img { display: inline-block; font: 11px/1.4 var(--body); padding: 2px 9px; border: 1px dashed var(--ink-3); border-radius: 4px; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.av-adm-img:hover { color: var(--ink); border-color: var(--ink); }
.av-adm-img.ready { border-style: solid; border-color: var(--sun); color: var(--sun); }

/* Admin picker page (admin/images.php) */
.img-h2 { font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.img-h2 .n { color: var(--ink-3); letter-spacing: 0; }
.img-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 12px 14px; margin: 0 0 12px; }
.img-card header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.img-card h3 { margin: 0 0 4px; font: 600 16px/1.3 var(--display); }
.img-card .srcs { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.img-card .srcs a { color: var(--ink-2); }
.img-flag { color: var(--sun); font-weight: 600; }
.img-cands { display: flex; gap: 12px; overflow-x: auto; padding: 10px 0 4px; }
.img-cand { flex: 0 0 200px; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.img-cand img { width: 200px; height: 130px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line-2); background: var(--panel-2); }
.img-cand.is-picked img { border-color: var(--ok); }
.img-compacts { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 2px 12px; margin-bottom: 12px; }
.img-compact + .img-compact { border-top: 1px solid var(--line); }
.img-compact summary { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; cursor: pointer; list-style: none; }
.img-compact summary::-webkit-details-marker { display: none; }
.img-compact summary img { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; display: block; }
.img-compact .img-card { border: 0; background: transparent; padding: 10px 0; margin: 0; }
@media (max-width: 800px) { .img-card header { flex-direction: column; } .img-compact summary { grid-template-columns: 64px 1fr; } .img-compact summary .mono { grid-column: 2; } }
