.directory-page .directory-card-top.has-banner { position: relative; isolation: isolate; overflow: hidden; }
.directory-page .directory-card-top.has-banner .directory-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.directory-page .directory-card-top.has-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(5, 20, 32, .12), rgba(5, 20, 32, .36)); z-index: -1; }
.directory-page .directory-card-top.has-banner .directory-mark { position: relative; width: fit-content; height: 100px; max-width: 80%; min-width: 72px; min-height: 0; max-height: 100%; background: #fff; padding: 10px; box-shadow: 0 4px 24px rgba(0, 0, 0, .2); }

/* Equal membership placement: image proportions never change the banner slot. */
.directory-page .directory-grid:not(.is-text-view) { grid-auto-rows: 1fr; }
.directory-page .directory-card { --listing-banner-height: 148px; grid-column: auto; min-width: 0; }
.directory-page .directory-card .directory-card-top {
    height: var(--listing-banner-height);
    min-height: var(--listing-banner-height);
    flex: 0 0 var(--listing-banner-height);
    padding: 18px 24px;
    overflow: hidden;
}
.directory-page .directory-card-top .directory-mark { max-height: 100%; }
.directory-page .directory-card-top .directory-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) {
    .directory-page .directory-card { --listing-banner-height: 140px; }
    .directory-page .directory-card .directory-card-top { margin: -21px -21px 18px; padding: 18px 21px; }
}

/* Keep the Good Roots website headline outside its photo backdrop. */
.directory-page .directory-card-top.has-banner .directory-banner[src$="/localspotlight/banners/good-roots-events.webp"] {
    object-position: center bottom;
    transform: scale(1.4);
    transform-origin: center 75%;
    filter: blur(3px);
}

/* Soften the forest photo behind the Redwood & Reef logo. */
.directory-page .directory-card-top.has-banner .directory-banner[src$="/localspotlight/banners/redwood-reef-wellness.webp"] {
    transform: scale(1.4);
    filter: blur(3px);
}

/* Repeat actual paint containers across the backdrop; keep the logo sharp. */
.directory-page .directory-card-top:has(.directory-banner[src$="/localspotlight/banners/paint-store-buckets.png"])::before {
    content: '';
    position: absolute;
    inset: -24px;
    z-index: -2;
    background: #cad4db url('/localspotlight/banners/paint-store-buckets.png') center center / 130px auto repeat-x;
    filter: blur(9px);
}
.directory-page .directory-card-top .directory-banner[src$="/localspotlight/banners/paint-store-buckets.png"] { opacity: 0; }

/* Their studio artwork supplies a soft backdrop behind the sharp logo. */
.directory-banner[src$="/wholehearted-tattoo.jpg"] {
  object-position: center 30%;
  transform: scale(1.18);
  filter: blur(4px);
}

/* Use the shop's own artwork as a soft backdrop; keep its logo sharp. */
.directory-banner[src$="/underground-forrest.webp"] {
  object-position: center;
  transform: scale(1.12);
  filter: blur(5px);
}
