/* Trending strip (inc/trending.php). Slanted cards that widen with an elastic ease; scrolls sideways
   on small screens. Theme colour variables, no script. */
.wpgg-trend { width: 100%; overflow: hidden; background: rgb(var(--c-surface)); border-bottom: 1px solid rgb(var(--c-outline)); }
.wpgg-trend ol { display: flex; justify-content: center; list-style: none; margin: 0 auto; padding: 8px 28px; max-width: 1920px; }
.wpgg-trend li { flex: 1 1 0; max-width: 190px; min-width: 0; margin-left: -8px; }
.wpgg-trend li:first-child { margin-left: 0; }
.wpgg-trend a { --slant: 16px; position: relative; display: block; height: 66px; overflow: hidden; background: rgb(var(--c-card-high)); clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); color: #fff; text-decoration: none; }
.wpgg-trend__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.wpgg-trend__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .82)); }
.wpgg-trend__text { position: absolute; left: 18px; right: 18px; bottom: 5px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; text-align: center; }
.wpgg-trend__name { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 12px/1.2 var(--font-head); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.wpgg-trend__logo { max-width: 80%; max-height: 30px; width: auto; height: auto; object-fit: contain; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.wpgg-trend__fig { font: 600 10px/1.2 ui-monospace, monospace; color: #cbd5e1; }
.wpgg-trend__fig b { color: #19d3c5; }
.wpgg-trend a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(var(--c-primary)); opacity: 0; transition: opacity .25s; }
.wpgg-trend a:focus-visible { outline: 2px solid rgb(var(--c-secondary)); outline-offset: -4px; }
.wpgg-trend a:focus-visible::after { opacity: 1; }
@media (hover: hover) and (min-width: 1100px) {
  .wpgg-trend li { transition: flex-grow .55s cubic-bezier(.34, 1.56, .64, 1), max-width .55s cubic-bezier(.34, 1.56, .64, 1); }
  .wpgg-trend li:hover, .wpgg-trend li:focus-within { flex-grow: 1.6; max-width: 280px; }
  .wpgg-trend a:hover .wpgg-trend__art { transform: scale(1.08); }
  .wpgg-trend a:hover .wpgg-trend__logo { transform: scale(1.12); }
  .wpgg-trend a:hover::after { opacity: 1; }
}
@media (max-width: 1099px) {
  .wpgg-trend ol { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 16px; }
  .wpgg-trend li { flex: 0 0 138px; scroll-snap-align: start; }
  .wpgg-trend a { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .wpgg-trend li, .wpgg-trend__art, .wpgg-trend__logo { transition: none; }
}
