@media only screen and (max-width: 767px) {
    .topbar {
        padding-bottom: 0px;
    }

    /* .main-navigation {
        display: none !important;
    } */

    .banner-area {
        padding: 40px 5px;
        background-position: center;
    }



    .banner-area h1 {
        color: #ffffff;
        font-size: 19px;
        margin: 0;
        text-transform: uppercase;
        z-index: 2;
        position: relative;
        font-family: var(--cabinet-font) !important;
        text-align: center;
        font-weight: 600;
        margin: auto;
        width: 100%;
    }

    .main-content {
        padding-top: 20px;
    }

    .portrait-frame {
        position: relative;
        border: 8px solid #fff;
        box-shadow: 0 0 0 1px #d1c7b7, 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.5rem;
        padding: 5px;
    }

    .portrait-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .crest-ornament {
        width: 80%;
    }

    .heraldic-title h1 {
        font-size: 1.2rem;
    }




    /* biography biography biography biography biography biography biography biography biography biography biography biography biography biography biography biography   */
    .post-content {
        line-height: 1.7;
        color: #333;
        max-width: 100%;
        margin: 0 auto;
    }

    .tab-content {
        padding: 12px;
        background: #fff;
        border: 1px solid #eee;
        border-top: 0;
        box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    }

    .tribute-header h1 {
        font-size: 16px;
        text-align: center;
        margin-bottom: 10px;
        color: #1a1a1a;
        font-weight: 700;
    }

    .author {
        text-align: center;
        font-style: italic;
        color: #666;
        margin-bottom: 40px;
        font-weight: 600;
    }

    .post-content h2 {
        font-size: 1em;
        color: #8B0000;
        /* Deep red for reverence */
        margin-top: 30px;
        border-bottom: 1px solid #eaeaea;
        padding-bottom: 3px;
        font-weight: 700;

    }

    .post-content p {
        font-size: 14.5px;
        font-weight: 500;
    }


    p {
        margin-bottom: 0px;
    }

    blockquote {
        font-style: italic;
        color: #555;
        border-left: 4px solid #8B0000;
        padding-left: 20px;
        margin: 20px 0;
        padding: 15px;
    }

    blockquote footer {
        font-style: normal;
        font-weight: bold;
        color: #777;
    }

    .final-paragraph {
        font-size: 1.1em;
        text-align: center;
        margin-top: 40px;
    }

    .signature {
        text-align: right;
        font-style: italic;
        margin-top: 20px;
        font-family: 'Lora', serif;
    }


    .site-footer-bottom p {
        font-family: 'Lora', serif !important;
        font-weight: 600;
        font-size: 12px;
    }


    .obituary-info-tabs {
        display: flex !important;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
    }

    .obituary-info-tabs>li {
        margin-bottom: 0px;
        margin-right: 0px;
    }


    .obituary-info-tabs>li a {
        padding: 10px 10px !important;
        font-size: 13px;
    }



    .gallery-img,
    .grid-item.format-image img {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }



    .contact-form-wrapper {
        background: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        padding: 30px 20px 40px 20px;
    }


    .welcome-message-box {
        background: #fff;
        padding: 20px 20px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    }

    .welcome-content p.lead {
        font-size: 14px;
        font-weight: 500;
        color: #444;
    }

    .section-title {
        font-size: 20px;
    }

    .memorial-header h1 {
        font-size: 20px;
    }
    
    .schedule-day li {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .schedule-day li .arrow {
        display: none !important;
    }

}
