/* Scoped additions, preserving the existing PES cards. */
.ups-page-grid article > div:first-child .pes-ups-photo-link {display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:transparent;color:inherit;padding:0}
.ups-page-grid article .pes-ups-title-link {background:transparent;color:inherit;padding:0;text-decoration:none}
.ups-page-grid article .pes-ups-title-link:hover {color:#008a64}
.ups-page-grid article .pes-ups-card-actions {display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px;height:auto;background:transparent;padding:0}
.ups-page-grid article .pes-ups-card-actions a,.ups-page-grid article .pes-ups-card-actions button {font:inherit;font-size:14px;cursor:pointer;padding:9px 12px;border:1px solid #d9e4df;border-radius:8px;color:#146c50;background:#fff;text-decoration:none}
.ups-page-grid article > a[data-pes-series-link] {white-space:normal;text-align:center;justify-content:center}
.ups-page-grid article a:focus-visible,.ups-page-grid article button:focus-visible {outline:3px solid #008a64;outline-offset:3px}

/* Gentle photo movement on pointer devices; respect reduced motion. */
@media (hover:hover) and (pointer:fine) {
 .ups-page-grid article .pes-ups-photo-link img {transition:transform .35s ease;transform-origin:center;will-change:transform}
 .ups-page-grid article .pes-ups-photo-link:hover img {transform:translateY(-5px) scale(1.035)}
}
@media (prefers-reduced-motion:reduce) {
 .ups-page-grid article .pes-ups-photo-link img {transition:none!important;transform:none!important;will-change:auto}
}
