/*
 * H. Lee & Son funeral notices
 * Intentionally inherits the site's font family and primary colour where possible,
 * so it sits naturally inside the existing WordPress theme.
 */

.hlee-funerals {
    --hlee-ink: #2d2d2b;
    --hlee-muted: #77736d;
    --hlee-line: rgba(45,45,43,.18);
    --hlee-soft: #f6f5f2;
    --hlee-accent: var(--e-global-color-primary, currentColor);
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--hlee-ink);
    font-family: inherit;
}

.hlee-funerals__header {
    max-width: 760px;
    margin: 0 0 42px;
}

.hlee-funerals__kicker,
.hlee-funeral__label {
    margin: 0 0 10px;
    color: var(--hlee-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hlee-funerals__heading {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: inherit;
    line-height: 1.12;
}

.hlee-funerals__intro {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--hlee-muted);
    font-size: 17px;
    line-height: 1.7;
}

.hlee-funerals__list {
    border-top: 1px solid var(--hlee-line);
}

.hlee-funeral {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 0;
    padding: 34px 0;
    border-bottom: 1px solid var(--hlee-line);
    background: transparent;
}

.hlee-funeral__photo {
    width: 190px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--hlee-soft);
}

.hlee-funeral__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hlee-funeral__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 20px;
    border: 1px solid var(--hlee-line);
    color: var(--hlee-muted);
    text-align: center;
}

.hlee-funeral__placeholder span {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hlee-funeral__body {
    align-self: center;
    max-width: 720px;
    padding: 5px 0 5px 12px;
}

.hlee-funeral__name {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: inherit;
    line-height: 1.2;
}

.hlee-funeral__rule {
    width: 46px;
    height: 1px;
    margin: 18px 0 15px;
    background: var(--hlee-ink);
    opacity: .55;
}

.hlee-funeral__details {
    margin: 0;
}

.hlee-funeral__detail {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    padding: 6px 0;
}

.hlee-funeral__detail dt {
    color: var(--hlee-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hlee-funeral__detail dd {
    margin: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1.55;
}

.hlee-funerals__empty {
    padding: 28px 0;
    border-top: 1px solid var(--hlee-line);
    border-bottom: 1px solid var(--hlee-line);
}

.hlee-funerals__empty p {
    margin: 0;
    color: var(--hlee-muted);
}

@media (max-width: 760px) {
    .hlee-funerals__header {
        margin-bottom: 28px;
    }

    .hlee-funeral {
        grid-template-columns: 112px minmax(0, 1fr);
        padding: 24px 0;
    }

    .hlee-funeral__photo {
        width: 92px;
    }

    .hlee-funeral__body {
        padding-left: 0;
    }

    .hlee-funeral__label {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .hlee-funeral__name {
        font-size: 23px;
    }

    .hlee-funeral__rule {
        margin: 13px 0 10px;
    }

    .hlee-funeral__detail {
        grid-template-columns: 1fr;
        gap: 1px;
        padding: 4px 0;
    }

    .hlee-funeral__detail dt {
        font-size: 10px;
    }

    .hlee-funeral__detail dd {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .hlee-funeral {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .hlee-funeral__photo {
        width: 70px;
    }

    .hlee-funeral__name {
        font-size: 20px;
    }
}
