.obituary-notice {
    position: relative;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    aspect-ratio: 53 / 64;
    padding: 14% 10% 11%;
    border: 0;
    background: #fff;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
}

.obituary-notice::before {
    position: absolute;
    inset: 5px;
    border: 1px solid #111;
    content: "";
    pointer-events: none;
}

.obituary-notice__cross {
    position: absolute;
    top: 4.5%;
    left: 50%;
    z-index: 1;
    font-size: clamp(32px, 4vw, 60px);
    line-height: 1;
    transform: translateX(-50%);
}

.obituary-notice__content {
    position: relative;
    z-index: 1;
}

.obituary-notice__content p {
    margin: 0;
    overflow-wrap: break-word;
}

.obituary-notice__intro,
.obituary-notice__ceremony,
.obituary-notice__extra {
    font-size: clamp(12px, 1.7vw, 25px);
    line-height: 1.25;
}

.obituary-notice__relations {
    margin-top: 6% !important;
    font-size: clamp(15px, 2.15vw, 33px);
    font-weight: 700;
    line-height: 1.2;
}

.obituary-notice__saint {
    margin-top: 8% !important;
    font-size: clamp(17px, 2.65vw, 40px);
    font-weight: 700;
}

.obituary-notice__name {
    margin: 3% -12% 0 !important;
    font-size: clamp(28px, 5.5vw, 70px);
    font-weight: 700;
    line-height: .95;
    white-space: nowrap;
}

.obituary-notice__address {
    position: relative;
    margin-top: 8% !important;
    padding-top: 8%;
    font-size: clamp(13px, 2vw, 30px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.obituary-notice__address::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 62%;
    height: 3px;
    background: #f47721;
    content: "";
    transform: translateX(-50%);
}

.obituary-notice__address::after {
    position: absolute;
    top: -3px;
    left: 50%;
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #f47721;
    content: "";
    transform: translateX(-50%);
}

.obituary-notice__ceremony {
    margin-top: 7% !important;
}

.obituary-notice__family {
    margin-top: 7% !important;
    font-size: clamp(14px, 2.05vw, 31px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.obituary-notice__brand {
    position: absolute;
    right: 10%;
    bottom: 4%;
    left: 10%;
    z-index: 1;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(7px, .8vw, 12px);
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.obituaries__image > .obituary-notice {
    width: 260px;
    height: 320px;
    min-height: 0;
    aspect-ratio: auto;
    padding: 11% 8% 10%;
}

.obituaries__image > .obituary-notice .obituary-notice__cross {
    position: static;
    margin-bottom: 6px;
    font-size: 24px;
    transform: none;
}

.obituaries__image > .obituary-notice .obituary-notice__intro,
.obituaries__image > .obituary-notice .obituary-notice__ceremony,
.obituaries__image > .obituary-notice .obituary-notice__extra {
    font-size: 10px;
    line-height: 1.18;
}

.obituaries__image > .obituary-notice .obituary-notice__relations {
    margin-top: 1% !important;
    font-size: 12px;
    line-height: 1.1;
}

.obituaries__image > .obituary-notice .obituary-notice__saint {
    margin-top: 1% !important;
    font-size: 13px;
}

.obituaries__image > .obituary-notice .obituary-notice__name {
    margin: 1% -4% 0 !important;
    font-size: 25px;
    line-height: .95;
    white-space: normal;
}

.obituaries__image > .obituary-notice .obituary-notice__address {
    margin-top: 1% !important;
    padding-top: 6%;
    font-size: 11px;
    line-height: 1.1;
}

.obituaries__image > .obituary-notice .obituary-notice__ceremony {
    margin-top: 1% !important;
}

.obituaries__image > .obituary-notice .obituary-notice__family {
    margin-top: 1% !important;
    font-size: 11px;
    line-height: 1.1;
}

.obituaries__image > .obituary-notice .obituary-notice__brand {
    font-size: 6px;
}

.obituaries__image > img {
    width: 260px;
    height: 320px;
    aspect-ratio: auto;
    object-fit: cover;
}

.obituaries__grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: normal;
}

.obituaries__grid--archive {
    grid-template-columns: repeat(2, 260px);
}

.obituaries__item--image,
.obituaries__image {
    width: 260px;
    height: 320px;
}

.obituaries__grid--home .obituaries__item--image,
.obituaries__grid--home .obituaries__image {
    width: 100%;
    height: auto;
}

.obituaries__grid--home .obituaries__image > img {
    width: 100%;
    height: auto;
    aspect-ratio: 53 / 64;
}

.obituaries__grid--home {
    width: 100%;
    max-width: 1088px;
    margin-inline: auto;
    gap: 32px 48px;
    justify-content: center;
}

.obituaries .section-heading {
    max-width: 1088px;
    margin-inline: auto;
}

.obituaries__grid--home .obituaries__image > .obituary-notice {
    width: 100%;
    height: auto;
    aspect-ratio: 53 / 64;
}

@media (max-width: 980px) {
    .obituaries__grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

.obituary-single__image > .obituary-notice {
    max-width: 760px;
    margin-inline: auto;
}

@media (max-width: 480px) {
    .obituaries__grid--home,
    .obituaries__grid--archive {
        grid-template-columns: 1fr;
    }

    .obituaries__item--image,
    .obituaries__image {
        width: 100%;
        height: auto;
    }

    .obituaries__image > .obituary-notice,
    .obituaries__image > img {
        width: 100%;
        height: auto;
        aspect-ratio: 13 / 16;
    }

    .obituary-notice {
        border-width: 2px;
    }

    .obituary-notice::before {
        inset: 5px;
    }
}

@media (max-width: 600px) {
    .obituaries__grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 16px;
        align-items: start;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice {
        min-height: 100%;
        padding: 8% 6% 7%;
        aspect-ratio: auto;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__cross {
        position: static;
        margin-bottom: 4px;
        font-size: 19px;
        transform: none;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__intro,
    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__ceremony,
    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__extra {
        font-size: 9px;
        line-height: 1.15;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__relations {
        margin-top: 2% !important;
        font-size: 10px;
        line-height: 1.05;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__saint {
        margin-top: 2% !important;
        font-size: 11px;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__name {
        margin: 2% 0 0 !important;
        max-width: 100%;
        font-size: 20px;
        line-height: .95;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__address {
        margin-top: 2% !important;
        padding-top: 5%;
        font-size: 9px;
        line-height: 1.08;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__ceremony,
    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__family {
        margin-top: 2% !important;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__family {
        font-size: 9px;
        line-height: 1.08;
    }

    .obituaries__grid--home .obituaries__image > .obituary-notice .obituary-notice__brand {
        font-size: 5px;
    }
}
