/* Category photographs stay useful without hover, motion or JavaScript. */
.ap-home .ap-categories { gap: 20px; border: 0; background: transparent; }
.ap-site .ap-category.ap-category-photo { display: flex; flex-direction: column; padding: 0 !important; min-width: 0; background: #fff; border: 1px solid #d9dedf; }
.ap-site .ap-category.ap-category-photo:hover { background: #fff; }
.ap-category-photo .ap-category-visual { position: relative; flex: 0 0 auto; aspect-ratio: 4 / 3; overflow: hidden; background: #e5e9ec; }
.ap-site .ap-category.ap-category-photo img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transform: none; transition: none; }
.ap-category-photo .ap-category-caption { position: relative; flex: 1; padding: 22px 48px 24px 22px; }
.ap-site .ap-category.ap-category-photo h3 { font-size: 18px; line-height: 1.45; }
.ap-site .ap-category.ap-category-photo p { font-size: 13px; line-height: 1.6; margin-top: 8px; color: #53616b; }
.ap-site .ap-category.ap-category-photo .ap-category-arrow { top: 22px; right: 20px; font-size: 22px; line-height: 1.25; color: var(--ap-blue); }
.ap-site .ap-category.ap-category-photo:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 4px; }
.ap-site .ap-category.ap-category-photo:focus-visible h3 { color: var(--ap-blue); }

@media (max-width: 1000px) {
    .ap-home .ap-categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .ap-home .ap-categories { gap: 12px; }
    .ap-category-photo .ap-category-caption { padding: 16px 12px 40px; }
    .ap-site .ap-category.ap-category-photo h3 { font-size: 15px; line-height: 1.45; }
    .ap-site .ap-category.ap-category-photo p { font-size: 12px; margin-top: 6px; }
    .ap-site .ap-category.ap-category-photo .ap-category-arrow { top: auto; bottom: 12px; right: 12px; font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .ap-site .ap-category.ap-category-photo img { transition: transform 420ms cubic-bezier(.22,1,.36,1); }
    .ap-site .ap-category.ap-category-photo:hover img { transform: scale(1.055); }
    .ap-site .ap-category.ap-category-photo:hover h3 { color: var(--ap-blue); }
    .ap-site .ap-category.ap-category-photo:hover .ap-category-arrow { transform: translate(3px,-3px); }
}
@media (prefers-reduced-motion: reduce), (hover: none), print {
    .ap-site .ap-category.ap-category-photo img,
    .ap-site .ap-category.ap-category-photo .ap-category-arrow { transform: none !important; transition: none !important; }
}
