/* TAWHOO REVIEW HUB PHOTO + BOTTOM NAV POLISH V1.4 */
/* Scoped to Review Hub; all photo/lightbox behavior stays in V1.3. */
#trh-hub .trh11-entry-menu .trh11-review-grid {
  grid-template-columns: minmax(0,1fr) minmax(155px,190px) minmax(0,246px);
  gap: 16px;
  align-items: start;
}
#trh-hub .trh11-entry-menu .trh11-media { min-width:0; align-self:start; }
#trh-hub .trh11-entry-menu .trh11-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,76px)) !important;
  justify-content: start !important;
  align-content: start !important;
  align-items: start !important;
  gap: 7px !important;
  width: 100%;
  margin: 2px 0 0;
}
#trh-hub .trh11-entry-menu .trh11-gallery > a {
  display: block; width:76px; height:76px;
  border-radius: 12px; overflow:hidden;
  border: 1px solid #ecd7df;
  background:#fff7fa;
  transition: transform .14s ease, border-color .14s ease;
}
#trh-hub .trh11-entry-menu .trh11-gallery > a:hover { transform: translateY(-2px); border-color:#bd4e83; }
#trh-hub .trh11-entry-menu .trh11-gallery > a:focus-visible,
#trh-hub .trh11-entry-shop .vf-photos img:focus-visible {
  outline: 3px solid #ac2e6b; outline-offset: 3px;
}
#trh-hub .trh11-entry-menu .trh11-gallery img {
  display:block; width:100%; height:100%; object-fit:cover;
}
#trh-hub .trh11-entry-shop .vf-review-card .vf-photos {
  display:flex !important; flex-wrap:wrap !important;
  justify-content:flex-start !important; align-content:flex-start !important;
  gap:7px !important; margin-top:10px;
}
#trh-hub .trh11-entry-shop .vf-review-card .vf-photos > *,
#trh-hub .trh11-entry-shop .vf-review-card .vf-photos img {
  max-width:82px !important; width:82px !important;
  max-height:82px !important; height:82px !important;
  flex:0 0 82px !important; border-radius:12px !important;
  object-fit:cover !important; margin:0 !important;
}
/* When no category scores were recorded, do not reserve a blank middle column. */
#trh-hub .trh11-entry-menu .trh11-review-grid:not(:has(.trh11-aspects > b)) {
  grid-template-columns: minmax(0,1fr) minmax(0,246px);
}
#trh-hub .trh11-entry-menu .trh11-review-grid:not(:has(.trh11-aspects > b)) .trh11-aspects {
  display:none;
}
/* Keep the final reviews, pager and general comments scrollable above floating navigation. */
body:has(#trh-hub) main.vf { padding-bottom: max(148px, calc(env(safe-area-inset-bottom, 0px) + 136px)) !important; }
body:has(#trh-hub) #trh-hub { scroll-margin-top:105px; }
body:has(#trh-hub) #reviews,
body:has(#trh-hub) #comments,
body:has(#trh-hub) .trh11-entry { scroll-margin-bottom:145px; }
body:has(#trh-hub) .trh11 { margin-bottom: 35px; }
/* Preserve the existing fixed nav, but never allow it to steal focus outlines. */
body:has(#trh-hub) .tma-nav:focus-within,
body:has(#trh-hub) .vf-foodie-nav:focus-within { isolation:isolate; }
@media(max-width: 1050px) {
  #trh-hub .trh11-entry-menu .trh11-review-grid {
    grid-template-columns: minmax(0,1fr) minmax(150px,190px);
  }
  #trh-hub .trh11-entry-menu .trh11-media {
    grid-column:1/-1;
  }
  #trh-hub .trh11-entry-menu .trh11-review-grid:not(:has(.trh11-aspects > b)) {
    grid-template-columns: 1fr;
  }
}
@media(max-width:650px) {
  #trh-hub .trh11-entry-menu .trh11-review-grid,
  #trh-hub .trh11-entry-menu .trh11-review-grid:not(:has(.trh11-aspects > b)) {
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  #trh-hub .trh11-entry-menu .trh11-media { grid-column:auto; }
  #trh-hub .trh11-entry-menu .trh11-gallery {
    grid-template-columns: repeat(3, minmax(0,72px)) !important;
    gap:7px !important;
  }
  #trh-hub .trh11-entry-menu .trh11-gallery > a { width:72px;height:72px; }
  body:has(#trh-hub) main.vf { padding-bottom: max(164px, calc(env(safe-area-inset-bottom,0px) + 155px)) !important; }
}
@media(prefers-reduced-motion:reduce) {
 #trh-hub .trh11-entry-menu .trh11-gallery > a { transition:none; }
}
