/* ============================================================
   SCH Dream Home Gallery
   Card overlay mirrors the neighborhood Featured Projects
   pattern: eyebrow → title → cta, gradient bottom, no zoom.
   ============================================================ */

.sch-dream-gallery {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) 0;
}

/* ---- Filter bar ------------------------------------------ */

.sch-dream-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto clamp(20px, 2.5vw, 32px);
    max-width: 66.667%; /* desktop: 2/3 of gallery width */
}

@media (max-width: 1100px) {
    .sch-dream-gallery-filters {
        max-width: 80%; /* tablet */
    }
}

@media (max-width: 600px) {
    .sch-dream-gallery-filters {
        max-width: 100%; /* mobile: full width */
    }
}

.sch-dream-filter-btn {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(0, 62, 126, 0.35);
    border-radius: 2px;
    color: #003e7e;
    cursor: pointer;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    padding: 10px 18px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sch-dream-filter-btn.is-active,
.sch-dream-filter-btn:hover {
    background: #003e7e;
    border-color: #003e7e;
    color: #fff;
}

/* ---- Grid ------------------------------------------------- */

.sch-dream-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    transition: opacity 0.16s ease;
}

@media (max-width: 1100px) {
    .sch-dream-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sch-dream-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Card -------------------------------------------------
   will-change: transform promotes each card to its own GPU
   compositor layer, preventing scroll repaints.
   ---------------------------------------------------------- */

.sch-dream-card {
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
}

.sch-dream-card.is-hidden {
    display: none;
}

.sch-dream-card-link {
    color: inherit;
    display: block;
    position: relative;
    text-decoration: none;
}

/* ---- Media (background-image tile) ----------------------- */

.sch-dream-card-media {
    aspect-ratio: 4 / 3;
    background-color: #e8e6e1;
    background-position: center;
    background-size: cover;
    display: block;
    width: 100%;
}

.sch-dream-card-media--empty {
    background-color: #d9d7d2;
}

/* ---- Overlay --------------------------------------------- */

.sch-dream-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.20) 52%,
        rgba(0, 0, 0, 0)    72%
    );
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    left: 0;
    padding: clamp(16px, 2.5vw, 24px);
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

/* ---- Eyebrow (DreamDesign® ##) ---------------------------
   Mirrors .sch-project-eyebrow from the child theme:
   small, uppercase, Inter 500, generous letter-spacing.
   ---------------------------------------------------------- */

.sch-dream-card-eyebrow {
    color: rgba(255, 255, 255, 0.9);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* ---- Title (home style name – the client focus) ----------
   Mirrors .sch-project-title: Inter 600, confident but calm.
   ---------------------------------------------------------- */

/* .sch-dream-card-title {
    color: #fff;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
} */

.sch-dream-card .sch-dream-card-overlay h3.sch-dream-card-title {
    color: #fff;
    font-family: "Bodoni Moda", "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.35rem, 1.9vw, 1.7rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 8px;
    text-transform: uppercase;
}

/* ---- CTA ------------------------------------------------- */

.sch-dream-card-cta {
    color: rgba(255, 255, 255, 0.85);
    display: inline-block;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    position: relative;
    text-transform: uppercase;
}

.sch-dream-card-cta::after {
    background: rgba(255, 255, 255, 0.65);
    bottom: -2px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transition: width 0.2s ease;
    width: 0;
}

/* ---- Hover (lift only — no image zoom) ------------------- */

@media (hover: hover) {
    .sch-dream-card:hover {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
        transform: translateY(-2px);
    }

    .sch-dream-card:hover .sch-dream-card-cta::after {
        width: 100%;
    }
}
