:root {
    --mh-bg: #f3f7fb;
    --mh-surface: #ffffff;
    --mh-surface-soft: #f8fbff;
    --mh-primary: #0b78b8;
    --mh-primary-dark: #075985;
    --mh-accent: #14b8a6;
    --mh-text: #162033;
    --mh-muted: #667085;
    --mh-border: #dfe8f2;
    --mh-danger: #d92d20;
    --mh-shadow: 0 14px 36px rgba(15, 56, 92, .10);
    --mh-shadow-soft: 0 7px 20px rgba(15, 56, 92, .08);
    --mh-radius-xl: 24px;
    --mh-radius-lg: 18px;
    --mh-radius-md: 14px;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.mobile-home,
body.homepage {
    direction: rtl;
    margin: 0;
    color: var(--mh-text);
    background:
        radial-gradient(circle at top right, rgba(20,184,166,.11), transparent 34%),
        linear-gradient(180deg, #eef6fc 0, var(--mh-bg) 280px, var(--mh-bg) 100%);
    font-family: Tahoma,Arial, "Open Sans Hebrew", sans-serif !important;
    overflow-x: hidden;
}

.mobile-home *,
.mobile-home *::before,
.mobile-home *::after {
    box-sizing: border-box;
}

.mh-app {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 10px 28px;
}

.mh-section {
    margin: 14px 0;
}

.mh-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(215,228,240,.95);
    border-radius: var(--mh-radius-xl);
    box-shadow: var(--mh-shadow);
}

.mh-card-pad {
    padding: 16px;
}

.mh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mh-section-title {
    margin: 0;
    font-size: clamp(20px, 5.4vw, 27px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--mh-text);
}

.mh-section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--mh-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}

.mh-all-link {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--mh-primary-dark) !important;
    background: #e7f4fc;
    border: 1px solid #cce9f8;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.mh-all-link:active {
    transform: scale(.98);
}

.mh-media-card {
    display: block;
    overflow: hidden;
    border-radius: var(--mh-radius-xl);
    background: var(--mh-surface);
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow-soft);
    text-decoration: none !important;
}

.mh-media-card img,
.mh-wide-image {
    display: block;
    width: 100%;
    height: auto;
}

.mh-media-card img {
    aspect-ratio: 16 / 6;
    object-fit: cover;
}

.mh-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mh-whatsapp {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 82px;
    padding: 16px;
    border-radius: var(--mh-radius-xl);
    color: #fff !important;
    background: linear-gradient(135deg, #087e4e, #13aa67);
    box-shadow: 0 16px 32px rgba(8,126,78,.24);
    text-decoration: none !important;
    overflow: hidden;
}

.mh-whatsapp::after {
    content: "";
    position: absolute;
    inset-inline-end: -38px;
    top: -42px;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}

.mh-whatsapp-copy {
    position: relative;
    z-index: 1;
}

.mh-whatsapp-copy strong {
    display: block;
    margin-bottom: 3px;
    font-size: 20px;
    line-height: 1.25;
}

.mh-whatsapp-copy span {
    display: block;
    font-size: 14px;
    opacity: .92;
}

.mh-whatsapp-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.17);
    border: 1px solid rgba(255,255,255,.25);
}

.mh-whatsapp-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.mh-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mh-social-link {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mh-radius-lg);
    background: linear-gradient(180deg, #fff, #f7fbff);
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow-soft);
}

.mh-social-link img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* Slider */
.mh-slider {
    overflow: hidden;
    border-radius: 26px;
    background: #061c2d;
    box-shadow: 0 18px 42px rgba(7,55,89,.22);
}

.mh-slider .carousel-inner,
.mh-slider .item {
    border-radius: inherit;
    overflow: hidden;
}

.mh-slider .item img {
    width: 100%;
    min-height: 210px;
    max-height: 430px;
    object-fit: cover;
}

.mh-slider .carousel-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    text-align: right;
    color: #fff;
    background: rgba(4,24,38,.70);
    backdrop-filter: blur(8px);
    text-shadow: none;
}

.mh-slider .carousel-caption p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.mh-slider .carousel-control {
    width: 44px;
    opacity: .9;
    background: none !important;
}

/* Countdown */
.mh-count-card {
    padding: 16px;
}

.mh-count-visual {
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #eaf5fb;
}

.mh-count-visual img {
    display: block;
    width: 100%;
    max-height: 270px;
    object-fit: cover;
}

.mh-count-title {
    margin: 0 0 5px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 800;
}

.mh-count-desc {
    margin: 0 0 14px;
    color: var(--mh-muted);
    font-size: 14px;
    line-height: 1.55;
}

.mh-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mh-time-cell {
    min-width: 0;
    padding: 12px 4px 9px;
    text-align: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(160deg, var(--mh-primary-dark), var(--mh-primary));
    box-shadow: 0 8px 18px rgba(11,120,184,.18);
}

.mh-time-number {
    display: block;
    font-size: clamp(20px, 7vw, 30px);
    font-weight: 900;
    line-height: 1;
}

.mh-time-label {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    opacity: .88;
}

.mh-count-ended {
    padding: 14px;
    border-radius: 15px;
    text-align: center;
    color: #075985;
    background: #e5f4fc;
    border: 1px solid #c6e8f9;
    font-weight: 800;
}

/* Events */
.mh-event-list {
    display: grid;
    gap: 10px;
}

.mh-event-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 88px;
    padding: 11px;
    border-radius: var(--mh-radius-lg);
    background: linear-gradient(180deg, #fff, #fbfdff);
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow-soft);
}

.mh-event-date {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(155deg, #0b78b8, #14b8a6);
}

.mh-event-day {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.mh-event-month {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
}

.mh-event-main {
    min-width: 0;
}

.mh-event-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mh-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mh-event-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #0c5c80;
    background: #e9f5fb;
    border: 1px solid #d2ebf8;
    font-size: 11px;
    font-weight: 700;
}

.mh-event-open {
    min-width: 50px;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--mh-primary-dark), var(--mh-primary));
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(11,120,184,.18);
}

.mh-event-modal .modal-dialog {
    width: auto;
    margin: 12px;
}

.mh-event-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(4,32,52,.28);
}

.mh-event-modal .modal-header {
    position: relative;
    padding: 20px 18px 15px;
    text-align: right;
    color: #fff;
    background: linear-gradient(135deg, #075985, #0b78b8 62%, #14b8a6);
    border-bottom: 0;
}

.mh-event-modal .modal-title {
    margin: 3px 42px 0 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 900;
}

.mh-event-modal-branch {
    margin-right: 42px;
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
}

.mh-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: 25px;
    line-height: 30px;
}

.mh-event-modal .modal-body {
    max-height: calc(100vh - 170px);
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mh-event-details {
    display: grid;
    gap: 9px;
}

.mh-detail-row {
    padding: 12px;
    border-radius: 14px;
    color: #344054;
    background: var(--mh-surface-soft);
    border: 1px solid #e5edf5;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mh-detail-row strong {
    color: var(--mh-text);
}

.mh-detail-row a {
    color: var(--mh-primary-dark);
    font-weight: 800;
}

.mh-event-modal .modal-footer {
    padding: 11px 16px 15px;
    text-align: left;
    border-top: 1px solid #e9eef4;
}

.mh-modal-done {
    min-width: 90px;
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: #344054;
    font-weight: 800;
}

/* Birthday */
.mh-birthday-list {
    display: grid;
    gap: 10px;
}

.mh-birthday-item {
    position: relative;
    padding: 14px 16px 14px 54px;
    border-radius: 17px;
    background: linear-gradient(135deg, #fff8e8, #fff);
    border: 1px solid #f5dfab;
}

.mh-birthday-item::before {
    content: "\2605";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #9a6700;
    background: #ffe8a3;
    font-size: 18px;
}

.mh-birthday-name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 900;
}

.mh-birthday-text {
    margin: 0;
    color: #5f4b22;
    font-size: 14px;
    line-height: 1.5;
}

/* Unions */
.mh-union-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mh-union-card {
    overflow: hidden;
    border-radius: 19px;
    background: #fff;
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow-soft);
}

.mh-union-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: linear-gradient(135deg, #eff8ff, #f5fffd);
    border-bottom: 1px solid #e3edf5;
}

.mh-union-head img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    border: 1px solid #e2eaf1;
}

.mh-union-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

.mh-union-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 11px;
}

.mh-union-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-radius: 12px;
    color: #344054 !important;
    background: #f7fafc;
    border: 1px solid #e5ecf3;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none !important;
}

.mh-union-link::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--mh-accent);
}

/* Banners */
.mh-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mh-banner-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow-soft);
}

.mh-banner-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.mh-empty {
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    color: var(--mh-muted);
    background: #fff;
    border: 1px dashed #cfdce8;
}

@media (max-width: 430px) {
    .mh-app {
        padding-right: 8px;
        padding-left: 8px;
    }

    .mh-event-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .mh-event-date {
        min-height: 58px;
    }

    .mh-event-open {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mh-union-links {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 580px) {
    .mh-app {
        padding-right: 16px;
        padding-left: 16px;
    }

    .mh-media-grid,
    .mh-union-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-social-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .mh-event-modal .modal-dialog {
        width: 680px;
        max-width: calc(100vw - 32px);
        margin: 28px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-home *,
    .mobile-home *::before,
    .mobile-home *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.mh-section > .mh-card + .mh-card {
    margin-top: 14px;
}

/* =========================================================
   Mobile footer
   ========================================================= */
.mh-footer,
.mh-footer *,
.mh-footer *::before,
.mh-footer *::after {
    box-sizing: border-box;
}

.mh-footer {
    position: relative;
    width: 100%;
    margin: 24px 0 0;
    padding: 22px 10px 12px;
    direction: rtl;
    color: #eaf5fb;
    background:
        radial-gradient(circle at 92% 0, rgba(20,184,166,.24), transparent 34%),
        linear-gradient(160deg, #06243a 0%, #073b5b 55%, #075985 100%);
    border-top: 1px solid rgba(255,255,255,.10);
    overflow: hidden;
}

.mh-footer::before {
    content: "";
    position: absolute;
    top: -85px;
    left: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}

.mh-footer-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.mh-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.mh-footer-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    color: var(--mh-text);
    box-shadow: 0 16px 38px rgba(0,20,34,.22);
    overflow: hidden;
}

.mh-footer-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.mh-footer-heading-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--mh-primary-dark), var(--mh-primary), var(--mh-accent));
    box-shadow: 0 9px 20px rgba(11,120,184,.24);
    font-size: 19px;
}

.mh-footer-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--mh-primary);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .04em;
}

.mh-footer-heading h2,
.mh-footer-share h2 {
    margin: 0;
    color: var(--mh-text);
    font-size: clamp(19px, 5.2vw, 24px);
    line-height: 1.3;
    font-weight: 900;
}

.mh-footer-copy {
    color: #475467;
    font-size: 14px;
    line-height: 1.72;
}

.mh-footer-copy p {
    margin: 0 0 10px;
}

.mh-footer-copy p:last-child {
    margin-bottom: 0;
}

.mh-footer-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
    margin-top: 15px;
}

.mh-footer-legal a {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d8e8f3;
    border-radius: 14px;
    color: var(--mh-primary-dark) !important;
    background: #eef8fd;
    text-align: center;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;
}

.mh-footer-legal a:active {
    transform: scale(.985);
}

.mh-footer-map {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 52%;
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid #dbe7f0;
    border-radius: 17px;
    background: #e7f1f7;
}

.mh-footer-map iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.mh-footer-address {
    display: grid;
    gap: 3px;
    margin: 0 0 13px;
    padding: 12px 13px;
    border-radius: 14px;
    color: #344054;
    background: #f5f9fc;
    border: 1px solid #e3ebf2;
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
}

.mh-footer-address strong {
    color: var(--mh-text);
    font-size: 15px;
}

.mh-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

.mh-footer-action {
    min-width: 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid #dce8f1;
    border-radius: 15px;
    color: #344054 !important;
    background: linear-gradient(180deg, #fff, #f7fbfd);
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(15,56,92,.07);
}

.mh-footer-action > .glyphicon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--mh-primary), var(--mh-accent));
    font-size: 15px;
}

.mh-footer-action-text {
    min-width: 0;
    display: block;
}

.mh-footer-action-text small,
.mh-footer-action-text strong {
    display: block;
}

.mh-footer-action-text small {
    margin-bottom: 2px;
    color: var(--mh-muted);
    font-size: 11px;
    line-height: 1.2;
}

.mh-footer-action-text strong {
    color: var(--mh-text);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mh-footer-action-wide {
    grid-column: 1 / -1;
}

.mh-footer-action-static {
    cursor: default;
}

.mh-footer-share {
    display: grid;
    gap: 13px;
    margin-top: 14px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 16px 38px rgba(0,20,34,.18);
}

.mh-footer-share-copy {
    min-width: 0;
}

.mh-footer-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

.mh-share-button {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #dce8f1;
    border-radius: 15px;
    color: #344054 !important;
    background: linear-gradient(180deg, #fff, #f5f9fc);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15,56,92,.06);
}

.mh-share-button img,
.mh-share-facebook-mark {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    object-fit: contain;
}

.mh-share-facebook-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.mh-share-button:active,
.mh-back-top:active,
.mh-footer-action[href]:active {
    transform: scale(.985);
}

.mh-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 13px 4px 2px;
    color: rgba(255,255,255,.92);
}

.mh-footer-bottom > div {
    min-width: 0;
}

.mh-footer-bottom strong,
.mh-footer-bottom span {
    display: block;
}

.mh-footer-bottom strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.mh-footer-bottom span {
    font-size: 11px;
    line-height: 1.4;
    opacity: .82;
}

.mh-back-top {
    min-width: 72px;
    min-height: 43px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 14px;
    color: #fff;
    background: rgba(255,255,255,.11);
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 370px) {
    .mh-footer {
        padding-right: 7px;
        padding-left: 7px;
    }

    .mh-footer-panel,
    .mh-footer-share {
        padding: 14px;
        border-radius: 18px;
    }

    .mh-footer-legal,
    .mh-footer-actions,
    .mh-footer-share-buttons {
        grid-template-columns: 1fr;
    }

    .mh-footer-action-wide {
        grid-column: auto;
    }

    .mh-footer-bottom {
        align-items: flex-start;
    }
}

@media (min-width: 620px) {
    .mh-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .mh-footer-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .mh-footer-share {
        grid-template-columns: minmax(0,1fr) minmax(320px,1.35fr);
        align-items: center;
    }

    .mh-footer-share-buttons {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

/* =========================================================
   FINAL FIX: event modal always above the header
   The event script loads before jQuery in this site, therefore
   these rules are deliberately independent of Bootstrap timing.
   ========================================================= */
html.mh-event-modal-open,
body.mh-event-modal-open {
    overflow: hidden !important;
}

body > .mh-event-modal,
body > .mh-event-modal.modal,
body > .mh-event-modal.modal.fade,
body > .mh-event-modal.modal.in {
    position: fixed !important;
    top: var(--mh-event-modal-top, 74px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--mh-event-modal-height, calc(100vh - 82px)) !important;
    max-height: var(--mh-event-modal-height, calc(100vh - 82px)) !important;
    margin: 0 !important;
    padding: 6px 7px 8px !important;
    overflow: hidden !important;
    z-index: 2147483647 !important;
    transform: none !important;
    -webkit-transform: none !important;
    isolation: isolate !important;
}

body > .mh-event-modal.in {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

body > .modal-backdrop,
body > .modal-backdrop.fade,
body > .modal-backdrop.in,
body > .modal-backdrop.mh-event-backdrop {
    position: fixed !important;
    inset: 0 !important;
    margin: 0 !important;
    z-index: 2147483645 !important;
}

body > .mh-event-modal .modal-dialog,
body > .mh-event-modal.fade .modal-dialog,
body > .mh-event-modal.in .modal-dialog {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    max-width: 680px !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

body > .mh-event-modal .modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

body > .mh-event-modal .modal-header,
body > .mh-event-modal .modal-footer {
    flex: 0 0 auto !important;
}

body > .mh-event-modal .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    body > .mh-event-modal,
    body > .mh-event-modal.modal {
        padding-right: 5px !important;
        padding-left: 5px !important;
    }

    body > .mh-event-modal .modal-dialog {
        max-width: none !important;
    }
}
