/*
 * ARES Gallery page styles
 * Scoped to Gallery and loaded only on that route.
 */

/* Break out of Astra's default inner-page width clamps on Gallery only. */
body.mcd-ares-site.ares-gallery-route .site-content .ast-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.mcd-ares-site.ares-gallery-route #primary {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.mcd-ares-site.ares-gallery-route article.ast-article-single {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

body.mcd-ares-site.ares-gallery-route article.ast-article-single .entry-content,
body.mcd-ares-site.ares-gallery-route .entry-content {
    width: 100%;
    max-width: none;
}

body.mcd-ares-site:not(.home) .entry-content>.wp-block-group.ares-inner-shell.ares-page-gallery,
body.mcd-ares-site:not(.home) .ares-inner-shell.ares-page-gallery {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery {
    --ares-gallery-red: #d94948;
    --ares-gallery-navy: #011627;
    --ares-gallery-ink: #0a233a;
    --ares-gallery-line: rgba(1, 22, 39, 0.2);
    --ares-gallery-shell: min(1580px, 96vw);
    --ares-gallery-tight: min(1460px, 94vw);
    --ares-gallery-header-gap: 10px;
    --ares-gallery-grid-gap: 10px;
    --ares-rail-sticky-top: 89px;
    --ares-gallery-radius: 12px;
    --ares-gallery-shadow: 0 12px 30px rgba(1, 22, 39, 0.14);
    --ares-gallery-font-heading: "Bebas Neue", "Montserrat", "Arial Narrow", sans-serif;
    --ares-gallery-font-body: "Manrope", "Montserrat", "Segoe UI", Arial, sans-serif;
    font-family: var(--ares-gallery-font-body);
    color: var(--ares-gallery-ink);
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-layout.wp-block-columns {
    width: var(--ares-gallery-tight);
    max-width: var(--ares-gallery-tight);
    margin: var(--ares-gallery-header-gap) auto 0;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-layout.wp-block-columns>.wp-block-column {
    min-width: 0;
    margin: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail {
    position: sticky;
    top: var(--ares-rail-sticky-top);
    z-index: 3;
    align-self: start;
}

body.mcd-ares-site.admin-bar:not(.home) .ares-page-gallery {
    --ares-rail-sticky-top: 121px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card {
    position: relative;
    border: none;
    border-top: 4px solid var(--ares-gallery-red);
    border-radius: 10px;
    background: linear-gradient(178deg, #ffffff, #f3f8ff 62%, #eef4fa 100%);
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    gap: 8px;
    display: grid;
    align-content: start;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(1, 22, 39, 0.66);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card>h2.wp-block-heading,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy>h1.wp-block-heading,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band>h2.wp-block-heading {
    font-family: var(--ares-gallery-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    color: var(--ares-gallery-navy);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card>h2.wp-block-heading {
    font-size: 1.92rem;
    line-height: 0.94;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card>p {
    margin: 0;
    color: rgba(1, 22, 39, 0.65);
    font-size: 0.82rem;
    line-height: 1.6;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-content: start;
    min-height: 170px;
}

/* Prevent FOUC of raw filter list before JS initializes the accordion groups */
html.ares-gallery-js body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filters:not(.is-ready) {
    visibility: hidden;
    opacity: 0;
}

html.ares-gallery-js body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filters.is-ready {
    visibility: visible;
    opacity: 1;
}

@media (min-width: 1261px) {
    html.ares-gallery-js body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card {
        min-height: 376px;
    }

    html.ares-gallery-js body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card:not(.is-ready) {
        visibility: hidden;
    }
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-group {
    display: grid;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(1, 22, 39, 0.14);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(1, 22, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-toggle:focus-visible {
    outline: 2px solid rgba(1, 22, 39, 0.32);
    outline-offset: 2px;
    border-radius: 4px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-toggle-caret {
    font-size: 0.72rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-group.is-open .ares-gallery-filter-toggle-caret {
    transform: rotate(180deg);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-group-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

@media (min-width: 1261px) {
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-group[data-group="stage"] .ares-gallery-filter-group-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-filter-group-body[hidden] {
    display: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-chip {
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: rgba(1, 22, 39, 0.84);
    min-height: 33px;
    width: 100%;
    padding: 0.36rem 0.68rem;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-chip:hover,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-chip:focus-visible {
    background: #e2e8f0;
    color: var(--ares-gallery-red);
    outline: none;
    transform: translateY(-1px);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-chip.is-chip-all {
    grid-column: auto;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-chip.is-active {
    background: var(--ares-gallery-red);
    border: none;
    color: #fff;
    font-weight: 800;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-result {
    margin: 2px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(1, 22, 39, 0.62);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card .wp-block-buttons {
    margin-top: 6px;
    gap: 10px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-atlas {
    display: grid;
    gap: 12px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero {
    position: relative;
    isolation: isolate;
    min-height: 300px;
    border: 1px solid rgba(1, 22, 39, 0.2);
    border-radius: 12px;
    overflow: hidden;
    padding: clamp(20px, 2.2vw, 34px);
    box-shadow: 0 16px 36px rgba(1, 22, 39, 0.25);
    background: #071f35;
    display: grid;
    align-content: end;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(104deg, rgba(1, 22, 39, 0.64), rgba(1, 22, 39, 0.38));
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero>* {
    position: relative;
    z-index: 2;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy {
    display: grid;
    align-content: end;
    justify-items: start;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
    pointer-events: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy>p {
    color: rgba(255, 255, 255, 0.9);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy>h1.wp-block-heading {
    color: #fff;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.86;
    max-width: 12ch;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy>p {
    margin: 0;
    max-width: 64ch;
    font-size: clamp(0.92rem, 1vw, 1rem);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-mosaic {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 74px;
    gap: var(--ares-gallery-grid-gap);
    grid-auto-flow: dense;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card {
    position: relative;
    border: 1px solid rgba(1, 22, 39, 0.2);
    border-radius: var(--ares-gallery-radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(1, 22, 39, 0.12);
    background: #d8e4ef;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card[hidden] {
    display: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.hero-card {
    grid-column: span 7;
    grid-row: span 6;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.tower {
    grid-column: span 5;
    grid-row: span 7;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.ribbon {
    grid-column: span 7;
    grid-row: span 4;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.panel {
    grid-column: span 5;
    grid-row: span 4;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.half {
    grid-column: span 6;
    grid-row: span 4;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature {
    grid-column: span 6;
    grid-row: span 7;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature-alt {
    grid-column: span 6;
    grid-row: span 5;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-tall {
    grid-column: span 3;
    grid-row: span 6;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-mid {
    grid-column: span 3;
    grid-row: span 5;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-base {
    grid-column: span 3;
    grid-row: span 4;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-full {
    grid-column: span 12;
    grid-row: span 5;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-hero {
    grid-column: span 6;
    grid-row: span 8;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide {
    grid-column: span 6;
    grid-row: span 6;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-low {
    grid-column: span 6;
    grid-row: span 5;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-mini {
    grid-column: span 6;
    grid-row: span 4;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-tall {
    grid-column: span 3;
    grid-row: span 8;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mid {
    grid-column: span 3;
    grid-row: span 6;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-low {
    grid-column: span 3;
    grid-row: span 5;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mini {
    grid-column: span 3;
    grid-row: span 4;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card>button {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    background: transparent;
    color: inherit;
    cursor: pointer;
    position: relative;
    font: inherit;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card>button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
    display: block;
    transition: transform 0.28s ease;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card:hover img,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card>button:focus-visible img {
    transform: scale(1.06);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-index {
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(1, 22, 39, 0.55);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-overlay {
    position: absolute;
    inset: 0;
    padding: 12px;
    display: grid;
    align-content: end;
    gap: 7px;
    background: linear-gradient(to top, rgba(1, 22, 39, 0.92), rgba(1, 22, 39, 0.2) 58%, rgba(1, 22, 39, 0));
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-tag {
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 4px;
    background: rgba(1, 22, 39, 0.7);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    padding: 5px 8px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-tag-row .ares-gallery-tag {
    justify-self: auto;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-tag.ares-gallery-tag-detail {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(1, 22, 39, 0.45);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-title {
    color: #fff;
    font-size: clamp(0.92rem, 1.3vw, 1.2rem);
    line-height: 1.2;
    font-weight: 700;
    max-width: 26ch;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-meta {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    line-height: 1.36;
    max-width: 56ch;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-module {
    margin: 0;
    border: 1px solid rgba(1, 22, 39, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding: 16px;
    gap: 10px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-module>h2.wp-block-heading,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-module>h3.wp-block-heading {
    margin: 0;
    color: var(--ares-gallery-navy);
    line-height: 1.1;
    font-size: 1.38rem;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-module>p {
    margin: 0;
    color: rgba(1, 22, 39, 0.74);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-bullets {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: rgba(1, 22, 39, 0.78);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba {
    --ares-ba-position: 52%;
    --ares-ba-cut-top: 52%;
    --ares-ba-cut-bottom: 52%;
    margin-top: 2px;
    position: relative;
    min-height: 290px;
    border: 1px solid rgba(1, 22, 39, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: #d8e4ef;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg.ares-ba {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: #03182b;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-base,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-overlay {
    position: absolute;
    inset: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-base img,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-overlay {
    width: 52%;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.82);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-overlay {
    left: 0;
    right: 0;
    width: 100%;
    clip-path: polygon(0 0,
            var(--ares-ba-cut-top, var(--ares-ba-position, 52%)) 0,
            var(--ares-ba-cut-bottom, var(--ares-ba-position, 52%)) 100%,
            0 100%);
    border-right: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-handle {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: rgba(1, 22, 39, 0.74);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-handle {
    width: 46px;
    height: 46px;
    background: rgba(1, 22, 39, 0.78);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-handle::before,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-handle::before {
    left: 11px;
    transform: translateY(-50%) rotate(-135deg);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-handle::after {
    right: 11px;
    transform: translateY(-50%) rotate(45deg);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-label {
    position: absolute;
    top: 10px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 4px;
    background: rgba(1, 22, 39, 0.68);
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    line-height: 1;
    padding: 5px 8px;
    z-index: 2;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-label {
    top: 14px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-before {
    left: 10px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-ba-after {
    right: 10px;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band {
    margin: 0;
    border: 1px solid rgba(1, 22, 39, 0.2);
    border-top: 4px solid var(--ares-gallery-red);
    border-radius: 10px;
    background: linear-gradient(180deg, #011627, #072843);
    color: #fff;
    padding: clamp(18px, 2vw, 28px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band::after {
    content: "";
    position: absolute;
    right: clamp(-18px, -1.2vw, -4px);
    bottom: clamp(-56px, -3.2vw, -24px);
    width: clamp(148px, 16vw, 236px);
    aspect-ratio: 1 / 1;
    background: url("/wp-content/uploads/2026/01/AC-symbol-dark-bg-transparent.png") center/contain no-repeat;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band>* {
    position: relative;
    z-index: 1;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band>h2.wp-block-heading {
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 0.9;
    max-width: 16ch;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band>p {
    margin: 0;
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.86);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band .wp-block-buttons {
    margin-top: 2px;
    gap: 10px;
    justify-content: flex-end;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .wp-block-button__link {
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    padding: 0.68rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.71rem;
    font-weight: 800;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: var(--ares-gallery-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(217, 73, 72, 0.35);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid rgba(1, 22, 39, 0.24);
    color: rgba(1, 22, 39, 0.84);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox[hidden] {
    display: none;
}

body.mcd-ares-site.ares-gallery-modal-open {
    overflow: hidden;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: grid;
    place-items: center;
    padding: clamp(10px, 1.8vw, 20px);
    background: rgba(1, 16, 28, 0.72);
    backdrop-filter: blur(3px);
    isolation: isolate;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    transform: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-shell {
    display: contents;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-head {
    display: contents;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-nav {
    display: contents;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-image {
    width: auto;
    height: auto;
    max-width: min(94vw, 1500px);
    max-height: min(86vh, calc(100vh - 150px));
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 30px 72px rgba(1, 12, 24, 0.46);
    transform-origin: center center;
    transform: translate3d(0, 0, 0) scale(1);
    touch-action: none;
    user-select: none;
    cursor: zoom-in;
    transition: transform 0.16s ease-out;
    will-change: transform;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox.is-zoomed #ares-gallery-lightbox-image {
    cursor: grab;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox.is-zoomed.is-panning #ares-gallery-lightbox-image {
    cursor: grabbing;
    transition: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy {
    position: absolute;
    left: 50%;
    bottom: clamp(8px, 2vw, 16px);
    transform: translateX(-50%);
    z-index: 3;
    width: min(760px, calc(100vw - 28px));
    max-width: none;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(174, 204, 225, 0.26);
    border-radius: 12px;
    background: rgba(1, 20, 35, 0.56);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(1, 12, 24, 0.32);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-meta {
    margin: 0;
    display: flex;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy .ares-gallery-lightbox-count,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy .ares-gallery-lightbox-track {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(206, 226, 242, 0.9);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy .ares-gallery-lightbox-track {
    color: rgba(255, 116, 90, 0.98);
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>h3,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>p {
    margin: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>h3 {
    color: rgba(241, 248, 255, 0.96);
    font-size: clamp(0.98rem, 1.2vw, 1.14rem);
    letter-spacing: 0.02em;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>p {
    color: rgba(217, 232, 245, 0.86);
    font-size: 0.92rem;
    max-width: 60ch;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>a.wp-block-button__link {
    justify-self: start;
    margin-top: 2px;
    border: 1px solid rgba(184, 212, 231, 0.42);
    background: rgba(1, 16, 29, 0.5);
    color: #fff;
    padding: 7px 12px;
    min-height: auto;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>a.wp-block-button__link:hover,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy>a.wp-block-button__link:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-prev,
body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-next,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-close {
    position: absolute;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(184, 212, 231, 0.36);
    background: rgba(1, 18, 33, 0.48);
    backdrop-filter: blur(6px);
    color: rgba(241, 248, 255, 0.96);
    cursor: pointer;
    z-index: 4;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-prev {
    top: 50%;
    left: clamp(8px, 1.2vw, 16px);
    transform: translateY(-50%);
    font-size: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-next {
    top: 50%;
    right: clamp(8px, 1.2vw, 16px);
    transform: translateY(-50%);
    font-size: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-prev::before {
    content: '\2039';
    font-size: 1.55rem;
    line-height: 1;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-next::before {
    content: '\203A';
    font-size: 1.55rem;
    line-height: 1;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-close {
    top: clamp(8px, 1.2vw, 14px);
    right: clamp(8px, 1.2vw, 14px);
    font-size: 0;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-close::before {
    content: '\00D7';
    font-size: 1.46rem;
    line-height: 1;
}

body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-prev:hover,
body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-next:hover,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-close:hover,
body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-prev:focus-visible,
body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-next:focus-visible,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.66);
    color: #fff;
    outline: none;
}

/* Modal is moved to body by JS so it is not constrained by content wrappers. */
body.mcd-ares-site:not(.home) #ares-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 14px);
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: clamp(10px, 1.8vw, 20px);
    border: 0;
    border-radius: 0;
    background: rgba(1, 16, 28, 0.72);
    backdrop-filter: blur(3px);
    transform: none;
    isolation: isolate;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox[hidden] {
    display: none;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox-shell,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox-head,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox-nav {
    display: contents;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox-image {
    width: auto;
    height: auto;
    max-width: min(94vw, 1500px);
    max-height: min(82vh, calc(100vh - 210px));
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 30px 72px rgba(1, 12, 24, 0.46);
    transform-origin: center center;
    transform: translate3d(0, 0, 0) scale(1);
    touch-action: none;
    user-select: none;
    cursor: zoom-in;
    transition: transform 0.16s ease-out;
    will-change: transform;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox.is-zoomed #ares-gallery-lightbox-image {
    cursor: grab;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox.is-zoomed.is-panning #ares-gallery-lightbox-image {
    cursor: grabbing;
    transition: none;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 3;
    width: min(980px, calc(100vw - 28px));
    max-width: none;
    padding: 0;
    display: grid;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-meta {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy .ares-gallery-lightbox-count,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy .ares-gallery-lightbox-track {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(206, 226, 242, 0.9);
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy .ares-gallery-lightbox-track {
    color: rgba(255, 116, 90, 0.98);
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>h3,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>p {
    margin: 0;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>h3 {
    color: rgba(241, 248, 255, 0.96);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    letter-spacing: 0.02em;
    text-align: center;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>p {
    color: rgba(217, 232, 245, 0.86);
    font-size: 0.9rem;
    max-width: 74ch;
    text-align: center;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>a.wp-block-button__link {
    display: none;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>a.wp-block-button__link:hover,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy>a.wp-block-button__link:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-prev,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-next,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-close {
    position: absolute;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 4px 6px;
    color: rgba(241, 248, 255, 0.96);
    cursor: pointer;
    z-index: 4;
    opacity: 0.88;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.74);
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-prev {
    top: 50%;
    left: clamp(8px, 1.2vw, 14px);
    transform: translateY(-50%);
    font-size: 0;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-next {
    top: 50%;
    right: clamp(8px, 1.2vw, 14px);
    transform: translateY(-50%);
    font-size: 0;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-prev::before {
    content: '\2039';
    font-size: clamp(2.05rem, 3.2vw, 2.7rem);
    line-height: 1;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-next::before {
    content: '\203A';
    font-size: clamp(2.05rem, 3.2vw, 2.7rem);
    line-height: 1;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-close {
    top: clamp(10px, 1.4vw, 16px);
    right: clamp(10px, 1.4vw, 16px);
    font-size: 0;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-close::before {
    content: '\00D7';
    font-size: clamp(1.75rem, 2.5vw, 2.15rem);
    line-height: 1;
}

body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-prev:hover,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-next:hover,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-close:hover,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-prev:focus-visible,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-next:focus-visible,
body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-close:focus-visible {
    background: transparent;
    border-color: transparent;
    color: #fff;
    opacity: 1;
    outline: none;
}

@media (max-width: 1260px) {
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-layout.wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail {
        position: static;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card {
        max-height: none;
        overflow: visible;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-mosaic {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.hero-card {
        grid-column: span 8;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.tower,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.panel,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.half {
        grid-column: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.ribbon {
        grid-column: span 8;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature-alt {
        grid-column: span 8;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature {
        grid-row: span 7;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature-alt {
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-tall {
        grid-column: span 4;
        grid-row: span 6;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-mid {
        grid-column: span 4;
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-base {
        grid-column: span 4;
        grid-row: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-full {
        grid-column: span 8;
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-hero,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-low,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-mini {
        grid-column: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-hero {
        grid-row: span 7;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide {
        grid-row: span 6;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-low {
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-mini {
        grid-row: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-tall,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mid,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-low,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mini {
        grid-column: span 2;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-tall {
        grid-row: span 7;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mid {
        grid-row: span 6;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-low {
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mini {
        grid-row: span 4;
    }

}

@media (max-width: 782px) {
    body.mcd-ares-site.admin-bar:not(.home) .ares-page-gallery {
        --ares-rail-sticky-top: 135px;
    }
}

@media (max-width: 980px) {
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero {
        min-height: 320px;
        padding: 14px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy {
        width: 100%;
        max-width: 60ch;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero-copy>h1.wp-block-heading {
        font-size: clamp(2.6rem, 9.2vw, 4.1rem);
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-handle {
        width: 40px;
        height: 40px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-mosaic {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 68px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.hero-card,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.tower,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.ribbon,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.panel,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.half {
        grid-column: span 4;
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature-alt,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-tall,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-mid,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-base {
        grid-column: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-tall {
        grid-row: span 6;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-feature-alt,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-mid {
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.mosaic-base {
        grid-row: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-full,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-hero,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-low,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-mini,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-tall,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mid,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-low,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mini {
        grid-column: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-full,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-hero,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-tall {
        grid-row: span 6;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mid {
        grid-row: span 5;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-mini,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-wide-low,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-low,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-card.bento-col-mini {
        grid-row: span 4;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band>h2.wp-block-heading {
        max-width: 18ch;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band {
        grid-template-columns: minmax(0, 1fr);
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band .wp-block-buttons {
        justify-content: flex-start;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-image,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox-image {
        max-width: min(95vw, 1200px);
        max-height: min(84vh, calc(100vh - 146px));
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy {
        width: min(94vw, 700px);
    }
}

@media (max-width: 700px) {

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-rail-card,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-module,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-conversion-band {
        padding: 14px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-chip {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .wp-block-buttons>.wp-block-button,
    body.mcd-ares-site:not(.home) .ares-page-gallery .wp-block-buttons>.wp-block-button .wp-block-button__link {
        width: 100%;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox {
        padding: 8px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-prev,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-prev {
        left: 10px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-next,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox #ares-gallery-lightbox-next {
        right: 10px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery #ares-gallery-lightbox-image,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox-image {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 164px);
        border-radius: 10px;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy {
        width: calc(100% - 20px);
        padding: 0;
        border-radius: 0;
    }

    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy .ares-gallery-lightbox-count,
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-lightbox-copy .ares-gallery-lightbox-track,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy .ares-gallery-lightbox-count,
    body.mcd-ares-site:not(.home) #ares-gallery-lightbox .ares-gallery-lightbox-copy .ares-gallery-lightbox-track {
        font-size: 0.6rem;
    }
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-handle,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-label {
    display: none;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-range {
    cursor: default;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-base img,
body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-overlay img {
    object-fit: cover;
}

body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-base img {
    object-position: 50% calc(56% + 230px);
}

@media (max-width: 980px) {
    body.mcd-ares-site:not(.home) .ares-page-gallery .ares-gallery-hero .ares-gallery-hero-bg .ares-ba-base img {
        object-position: 50% 100%;
    }
}