/* LamDesign — overlay titles are added without moving the existing video-overlap cards. */
.catalog-visible-heading {
    position: relative;
    z-index: 7;
    max-width: 100%;
    margin: 0;
    text-align: center;
    pointer-events: none;
}
.catalog-visible-heading h1,
.catalog-visible-heading h2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.025em;
    color: #fff9eb;
    text-shadow: 0 2px 16px rgba(0,0,0,.72);
}
/* Position the title independently above the card row: cards keep their old y position. */
.page-catalog .catalog-category-directory .catalog-visible-heading,
.page-brands .catalog-category-directory .catalog-visible-heading,
.page-projects .brand-directory-section .catalog-visible-heading,
.page-project .interior-hero-follow--catalog .catalog-visible-heading,
.page-catalog .interior-hero-follow--catalog .catalog-visible-heading {
    position: absolute;
    top: -70px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 16px;
    margin: 0;
    text-align: center;
}
/* Original video overlay from interior-page-hero.css, unchanged distances. */
.page-catalog .brand-rail.catalog-category-directory,
.page-brands .brand-rail.catalog-category-directory {
    position: relative;
    z-index: 6;
    margin-top: -450px;
    padding-top: 0;
    padding-bottom: 38px;
    background: transparent;
}
.page-catalog .catalog-category-directory .brand-grid,
.page-brands .catalog-category-directory .brand-grid {
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.page-catalog .catalog-category-directory .brand-tile,
.page-brands .catalog-category-directory .brand-tile { min-width: 0; }
/* Product list stays a normal continuation after the overlapping category cards.
   Do not add the pale panel/extra visible heading from the previous ZIP. */
.page-catalog .catalog-section--after-directory {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 8px;
    padding-bottom: 56px;
    background: transparent;
}
.page-catalog .interior-hero-follow--catalog,
.page-project .interior-hero-follow--catalog { background: transparent; }
@media (max-width:980px) {
    .page-catalog .catalog-category-directory .brand-grid,
    .page-brands .catalog-category-directory .brand-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width:760px) {
    .catalog-visible-heading h1,
    .catalog-visible-heading h2 { font-size: clamp(18px, 4.8vw, 22px); line-height: 1.35; }
    .page-catalog .catalog-category-directory .catalog-visible-heading,
    .page-brands .catalog-category-directory .catalog-visible-heading,
    .page-projects .brand-directory-section .catalog-visible-heading,
    .page-project .interior-hero-follow--catalog .catalog-visible-heading,
    .page-catalog .interior-hero-follow--catalog .catalog-visible-heading {
        top: -58px;
        padding: 0 14px;
    }
    .page-catalog .brand-rail.catalog-category-directory,
    .page-brands .brand-rail.catalog-category-directory {
        margin-top: -175px;
        padding-top: 0;
        padding-bottom: 24px;
    }
    .page-catalog .catalog-category-directory .brand-grid,
    .page-brands .catalog-category-directory .brand-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 7px;
        margin: 0;
    }
    .page-catalog .catalog-category-directory .brand-tile,
    .page-brands .catalog-category-directory .brand-tile {
        width: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 1 / .72;
    }
    .page-catalog .catalog-section--after-directory {
        padding-top: 8px;
        padding-bottom: 40px;
    }
}
