.catalog-hero > img { position: absolute; inset: 0 0 0 auto; width: 49%; }
.catalog-hero > div { grid-column: 1; }
.catalog-results [hidden], .case-preview [hidden] { display: none !important; }
.catalog-results .project-v5, .case-related-grid .project-v5 { display: flex; flex-direction: column; overflow: hidden; }
.catalog-results .project-gallery-button, .case-related-grid .project-gallery-button { width: 100%; }
.catalog-results .card-v5__footer, .case-related-grid .card-v5__footer { margin-top: auto; }
.catalog-results .project-detail-button, .case-related-grid .project-detail-button { text-align: center; }
.catalog-results .project-gallery-button img, .case-related-grid .project-gallery-button img { height: 100%; }
.catalog-grid-promo .v5-button { min-height: 44px; }
.portfolio-filters label, .portfolio-filters select, .portfolio-filters input { min-width: 0; }
.portfolio-filters select, .portfolio-filters input[type=number] { min-height: 44px; }
.catalog-filter .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.case-hero { display: grid; gap: clamp(14px, 2.5vw, 28px); }
.case-project-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.case-preview-cover .media-v5 { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--surface-soft); }
.case-preview-cover .media-v5 img { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-preview-controls, .case-preview-thumbs { margin-top: 8px; }
.case-facts { display: grid; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.case-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.case-gallery-grid .media-v5 { aspect-ratio: 4 / 3; min-width: 0; }
.case-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-team-profile, .case-contact { display: flex; gap: 18px; align-items: center; }
.case-team-profile img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.case-contact { justify-content: space-between; background: var(--brand-soft); }
.case-contact p, .case-team-profile .v5-button, #case-estimate p { margin-top: 8px; }
#case-estimate summary { cursor: pointer; min-height: 44px; align-content: center; }
#case-estimate .existing-seo-content { overflow-x: auto; }
.catalog-layout :is(a, button, select, input):focus-visible,
.case-preview :is(button, a):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 820px) {
  .case-project-grid { grid-template-columns: minmax(0, 1fr); }
  .case-gallery-grid, .case-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .catalog-hero > img { position: static; width: 100%; }
}
@media (max-width: 520px) {
  .case-contact { flex-direction: column; align-items: stretch; }
  .case-related-grid { grid-template-columns: minmax(0, 1fr); }
  .case-gallery-grid { gap: 8px; }
}
