.mg-page {
    color: var(--mh-text);
    background: #f8f7f2;
}

.mg-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--mh-navy);
}

.mg-hero__media,
.mg-hero__shade,
.mg-hero__pattern {
    position: absolute;
    inset: 0;
}

.mg-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
    transform: scale(1.02);
}

.mg-hero__shade {
    background: linear-gradient(90deg, rgba(17, 33, 29, .28), rgba(17, 33, 29, .94) 72%);
}

.mg-hero__pattern {
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to left, #000, transparent 72%);
}

.mg-hero__content {
    position: relative;
    z-index: 1;
    padding-block: 64px;
}

.mg-breadcrumb {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .66);
    font-size: .78rem;
}

.mg-breadcrumb a {
    transition: color .2s ease;
}

.mg-breadcrumb a:hover,
.mg-breadcrumb a:focus-visible {
    color: var(--mh-gold);
}

.mg-breadcrumb i {
    font-size: .65rem;
}

.mg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--mh-gold);
    font-size: .82rem;
    font-weight: 700;
}

.mg-hero h1 {
    max-width: 14ch;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.35;
}

.mg-hero__content > p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1rem;
    line-height: 2;
}

.mg-hero__facts {
    display: flex;
    gap: 0;
    margin-top: 2rem;
}

.mg-hero__facts > div {
    min-width: 142px;
    padding-inline: 1.25rem;
    border-inline-start: 1px solid rgba(255, 255, 255, .2);
}

.mg-hero__facts > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.mg-hero__facts strong,
.mg-hero__facts span {
    display: block;
}

.mg-hero__facts strong {
    color: #fff;
    font-size: 1.65rem;
    line-height: 1.3;
}

.mg-hero__facts span {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .6);
    font-size: .75rem;
}

.mg-gallery {
    padding-block: clamp(68px, 8vw, 112px);
}

.mg-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    align-items: end;
    gap: 3rem;
    margin-bottom: 3rem;
}

.mg-section-heading > div > span {
    display: block;
    margin-bottom: .65rem;
    color: var(--mh-gold-dark);
    font-size: .8rem;
    font-weight: 700;
}

.mg-section-heading h2 {
    max-width: 18ch;
    margin: 0;
    color: var(--mh-navy);
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.5;
}

.mg-section-heading > p {
    margin: 0;
    color: var(--mh-muted);
    font-size: .92rem;
    line-height: 2.05;
}

.mg-toolbar {
    margin-bottom: 2rem;
    padding-block: 1.1rem;
    border-block: 1px solid var(--mh-border);
}

.mg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.mg-filter {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1rem;
    color: #405049;
    background: transparent;
    border: 1px solid var(--mh-border);
    border-radius: 0;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.mg-filter small {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding-inline: .35rem;
    color: var(--mh-muted);
    background: rgba(17, 33, 29, .06);
    font-size: .68rem;
}

.mg-filter:hover {
    color: var(--mh-green);
    border-color: var(--mh-green-2);
}

.mg-filter.is-active {
    color: #fff;
    background: var(--mh-green);
    border-color: var(--mh-green);
}

.mg-filter.is-active small {
    color: var(--mh-navy);
    background: var(--mh-gold);
}

.mg-results {
    min-height: 22px;
    margin: .85rem 0 0;
    color: var(--mh-muted);
    font-size: .76rem;
}

.mg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 230px;
    gap: 1rem;
}

.mg-card {
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--mh-navy);
}

.mg-card:nth-child(8n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.mg-card[hidden] {
    display: none !important;
}

.mg-card__button {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: var(--mh-navy);
    border: 0;
    cursor: zoom-in;
    text-align: right;
}

.mg-card__button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .35s ease, opacity .6s ease;
}

.mg-card__overlay {
    position: absolute;
    inset: auto 0 0;
    min-height: 48%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(1.15rem, 3vw, 2rem);
    background: linear-gradient(transparent, rgba(7, 18, 14, .9));
    transform: translateY(20%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}

.mg-card__meta {
    margin-bottom: .45rem;
    color: var(--mh-gold);
    font-size: .72rem;
}

.mg-card__overlay strong {
    max-width: 30ch;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.75;
}

.mg-card__action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .7rem;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
}

.mg-card__button:hover img,
.mg-card__button:focus-visible img {
    transform: scale(1.035);
    filter: saturate(.88) contrast(1.04);
}

.mg-card__button:hover .mg-card__overlay,
.mg-card__button:focus-visible .mg-card__overlay {
    transform: none;
    opacity: 1;
}

.mg-load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2.5rem;
}

.mg-load-more[hidden] {
    display: none !important;
}

.mg-empty {
    padding: 5rem 1.5rem;
    color: var(--mh-muted);
    background: #fff;
    border: 1px solid var(--mh-border);
    text-align: center;
}

.mg-empty > i {
    color: var(--mh-gold-dark);
    font-size: 2.5rem;
}

.mg-empty h2 {
    margin: 1rem 0 .6rem;
    color: var(--mh-navy);
    font-size: 1.4rem;
}

.mg-empty p {
    margin: 0;
}

.mg-lightbox {
    width: min(1180px, calc(100vw - 36px));
    max-width: none;
    max-height: calc(100vh - 36px);
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #09130f;
    border: 1px solid rgba(255, 255, 255, .16);
}

.mg-lightbox::backdrop {
    background: rgba(4, 10, 8, .92);
}

.mg-lightbox__shell {
    position: relative;
    min-height: min(760px, calc(100vh - 38px));
    display: grid;
    place-items: center;
    padding: 24px 76px;
}

.mg-lightbox figure {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    margin: 0;
}

.mg-lightbox__media {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.mg-lightbox__media img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.mg-lightbox figcaption {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.mg-lightbox figcaption > div {
    display: grid;
    gap: .3rem;
}

.mg-lightbox figcaption span,
.mg-lightbox figcaption time {
    color: rgba(255, 255, 255, .55);
    font-size: .72rem;
}

.mg-lightbox figcaption strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.mg-lightbox__close,
.mg-lightbox__nav {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: #13231d;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.mg-lightbox__close:hover,
.mg-lightbox__nav:hover {
    color: var(--mh-navy);
    background: var(--mh-gold);
}

.mg-lightbox__close {
    top: 18px;
    inset-inline-end: 18px;
}

.mg-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.mg-lightbox__nav--previous {
    inset-inline-start: 14px;
}

.mg-lightbox__nav--next {
    inset-inline-end: 14px;
}

.mg-lightbox__counter {
    direction: rtl;
    white-space: nowrap;
}

.mg-lightbox-open {
    overflow: hidden;
}

@media (hover: none) {
    .mg-card__overlay {
        min-height: 42%;
        transform: none;
        opacity: 1;
    }

    .mg-card__action {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .mg-hero {
        min-height: 430px;
    }

    .mg-section-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1rem;
    }

    .mg-section-heading h2 {
        max-width: none;
    }

    .mg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }
}

@media (max-width: 767.98px) {
    .mg-hero {
        min-height: 420px;
    }

    .mg-hero__shade {
        background: rgba(17, 33, 29, .82);
    }

    .mg-hero__content {
        padding-block: 46px;
    }

    .mg-breadcrumb {
        margin-bottom: 1.5rem;
    }

    .mg-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.2rem);
    }

    .mg-section-heading {
        margin-bottom: 2.25rem;
    }

    .mg-filters {
        flex-wrap: nowrap;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .mg-filter {
        flex: 0 0 auto;
    }

    .mg-lightbox__shell {
        min-height: calc(100vh - 38px);
        padding: 64px 16px 16px;
    }

    .mg-lightbox__nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .mg-lightbox figcaption {
        padding-inline: 58px;
    }
}

@media (max-width: 575.98px) {
    .mg-hero__facts > div {
        min-width: 122px;
    }

    .mg-gallery {
        padding-block: 56px;
    }

    .mg-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: .75rem;
    }

    .mg-card:nth-child(8n + 1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mg-card__overlay {
        padding: 1rem;
    }

    .mg-lightbox {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .mg-lightbox__shell {
        min-height: calc(100vh - 18px);
    }

    .mg-lightbox__media img {
        max-height: calc(100vh - 190px);
    }

    .mg-lightbox figcaption strong {
        font-size: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mg-card__button img,
    .mg-card__overlay {
        transition: none;
    }
}
