/* OneHubWorld photographic category cards — no search/SEO/router changes. */
.home-category-grid > a.home-category-card.ow-photo-ready,
.search-category-grid > a.search-category.ow-photo-ready {
  overflow:hidden;
  border:1px solid #e5eaf3;
  border-radius:17px;
  padding:0 !important;
  background:#ffffff;
  box-shadow:0 7px 24px rgba(23,50,92,.075);
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.home-category-grid > a.ow-photo-ready:hover,
.search-category-grid > a.ow-photo-ready:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(23,50,92,.13);
}
.ow-photo-ready > img.ow-category-photo{
  display:block;
  width:100%; height:auto;
  aspect-ratio:452/196;
  object-fit:cover;
  flex-shrink:0;
  border-radius:0;
}
.ow-photo-ready .ow-photo-emoji-hidden{display:none !important;}
.home-category-grid > a.ow-photo-ready h3,
.search-category-grid > a.ow-photo-ready > b{
  display:block;
  color:#12284d;
  font-size:clamp(13px,1.08vw,16px);
  line-height:1.35;
  margin:0 !important;
  padding:14px 15px 4px;
  min-height:0;
}
.home-category-grid > a.ow-photo-ready .home-card-footer,
.search-category-grid > a.ow-photo-ready > small{
  display:block;
  color:#56708e;
  margin-top:auto;
  padding:4px 15px 14px;
  font-size:12px;
}
.home-category-grid > a.ow-photo-ready .home-card-footer span{color:#1768dc;}
.home-page .home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:17px !important;}
.search-page .search-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;}
a.ow-photo-ready:focus-visible{outline:3px solid #1768dc;outline-offset:3px;}
@media(max-width:1050px){
 .home-page .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
 .search-page .search-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px){
 .home-page .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
 .search-page .search-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .home-category-grid > a.ow-photo-ready h3,
 .search-category-grid > a.ow-photo-ready > b{font-size:13px;padding:11px 10px 4px;}
 .home-category-grid > a.ow-photo-ready .home-card-footer,
 .search-category-grid > a.ow-photo-ready > small{padding:3px 10px 12px;font-size:11px;}
}
@media(prefers-reduced-motion:reduce){
 .home-category-grid > a.ow-photo-ready,.search-category-grid > a.ow-photo-ready{transition:none;transform:none !important;}
}
