
.cw-myon-gallery,
.cw-myon-gallery * {
    box-sizing: border-box;
}

.cw-myon-gallery {
    --myon-primary: var(--e-global-color-primary, #184D4F);
    --myon-secondary: var(--e-global-color-secondary, #023638);
    --myon-text: var(--e-global-color-text, #253838);
    --myon-accent: var(--e-global-color-accent, #52AFB3);
    --myon-white: var(--e-global-color-6039121, #FFFFFF);
    --myon-soft: var(--e-global-color-b86dbb1, #E8F1F2);

    width: 100%;
    color: var(--myon-text);
    content-visibility: auto;
    contain-intrinsic-size: 1500px;
}

.cw-myon-gallery__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(980px, 100%);
    margin: 0 auto clamp(42px, 5vw, 68px);
    text-align: center;
}

.cw-myon-gallery__heading {
    min-width: 0;
}

.cw-myon-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;

    font-family: var(--e-global-typography-secondary-font-family, "League Spartan");
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--myon-accent);
}

.cw-myon-gallery__eyebrow::before,
.cw-myon-gallery__eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.cw-myon-gallery__title {
    margin: 0 auto;
    max-width: 960px;

    font-family: var(--e-global-typography-primary-font-family, "Rubik");
    font-size: clamp(50px, 5.1vw, 72px);
    line-height: 1.01;
    letter-spacing: -.052em;
    font-weight: 400;
    color: var(--myon-secondary);
    text-wrap: balance;
}

.cw-myon-gallery__title span {
    position: relative;
    display: inline-block;
    isolation: isolate;
    font-weight: 600;
    color: var(--myon-accent);
}

.cw-myon-gallery__title span::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -.04em;
    right: -.04em;
    bottom: .02em;
    height: .2em;
    background: var(--myon-accent);
    opacity: .17;
    clip-path: polygon(0 30%, 16% 14%, 47% 22%, 74% 8%, 100% 20%, 98% 82%, 66% 94%, 32% 82%, 2% 100%);
    transform: rotate(-.35deg);
}

.cw-myon-gallery__description {
    max-width: 690px;
    margin: 20px auto 0;
    font-family: var(--e-global-typography-secondary-font-family, "League Spartan");
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.5;
    font-weight: 400;
    color: var(--myon-text);
    opacity: .72;
    text-wrap: balance;
}

.cw-myon-gallery__services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin-top: 20px;
    font-family: var(--e-global-typography-secondary-font-family, "League Spartan");
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--myon-primary);
    opacity: .76;
}

.cw-myon-gallery__services i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--myon-accent);
    opacity: .7;
}

.cw-myon-gallery__wrapper {
    position: relative;
    width: 100%;
}

.cw-myon-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 13.2vw, 205px);
    gap: clamp(9px, .9vw, 13px);
    width: 100%;
}

.cw-myon-gallery__figure {
    min-width: 0;
    min-height: 0;
    margin: 0;
}

.cw-myon-gallery__figure--1  { grid-column: 1 / span 8;  grid-row: 1 / span 2; }
.cw-myon-gallery__figure--2  { grid-column: 9 / span 4;  grid-row: 1; }
.cw-myon-gallery__figure--3  { grid-column: 9 / span 4;  grid-row: 2; }
.cw-myon-gallery__figure--4  { grid-column: 1 / span 4;  grid-row: 3; }
.cw-myon-gallery__figure--5  { grid-column: 5 / span 5;  grid-row: 3; }
.cw-myon-gallery__figure--6  { grid-column: 10 / span 3; grid-row: 3; }
.cw-myon-gallery__figure--7  { grid-column: 1 / span 3;  grid-row: 4 / span 2; }
.cw-myon-gallery__figure--8  { grid-column: 4 / span 5;  grid-row: 4; }
.cw-myon-gallery__figure--9  { grid-column: 9 / span 4;  grid-row: 4; }
.cw-myon-gallery__figure--10 { grid-column: 4 / span 4;  grid-row: 5; }
.cw-myon-gallery__figure--11 { grid-column: 8 / span 5;  grid-row: 5; }
.cw-myon-gallery__figure--12 { grid-column: 1 / span 5;  grid-row: 6 / span 2; }
.cw-myon-gallery__figure--13 { grid-column: 6 / span 4;  grid-row: 6 / span 2; }
.cw-myon-gallery__figure--14 { grid-column: 10 / span 3; grid-row: 6 / span 2; }

.cw-myon-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    border: 1px solid rgba(24, 77, 79, .075);
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--myon-white);
    box-shadow: 0 12px 34px rgba(24, 77, 79, .045);
    appearance: none;
    -webkit-appearance: none;
    transform: translateZ(0);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, border-color .35s ease;
}

.cw-myon-gallery__figure--1 .cw-myon-gallery__item,
.cw-myon-gallery__figure--12 .cw-myon-gallery__item {
    border-radius: 26px;
}

.cw-myon-gallery__item:hover,
.cw-myon-gallery__item:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(82, 175, 179, .32);
    box-shadow: 0 20px 48px rgba(24, 77, 79, .085);
    outline: none;
}

.cw-myon-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
}

.cw-myon-gallery__figure--7 .cw-myon-gallery__item img,
.cw-myon-gallery__figure--14 .cw-myon-gallery__item img {
    object-position: center;
}

.cw-myon-gallery__item:hover img,
.cw-myon-gallery__item:focus-visible img {
    transform: scale(1.028);
}

.cw-myon-gallery__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 54, 56, 0) 58%, rgba(2, 54, 56, .18) 100%);
    opacity: .42;
    transition: opacity .35s ease;
}

.cw-myon-gallery__item:hover .cw-myon-gallery__veil,
.cw-myon-gallery__item:focus-visible .cw-myon-gallery__veil {
    opacity: .64;
}

.cw-myon-gallery__category {
    position: absolute;
    left: 13px;
    bottom: 13px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--e-global-typography-secondary-font-family, "League Spartan");
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--myon-primary);
    box-shadow: 0 7px 20px rgba(2, 54, 56, .08);
}

.cw-myon-gallery__expand {
    position: absolute;
    right: 13px;
    bottom: 13px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--myon-primary);
    box-shadow: 0 8px 22px rgba(2, 54, 56, .1);
    opacity: .72;
    transform: scale(.96);
    transition: opacity .35s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.cw-myon-gallery__expand svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-myon-gallery__item:hover .cw-myon-gallery__expand,
.cw-myon-gallery__item:focus-visible .cw-myon-gallery__expand {
    opacity: 1;
    transform: scale(1);
}

.cw-lightbox[data-theme="myon"] {
    background: rgba(232, 241, 242, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cw-lightbox[data-theme="myon"] .cw-lightbox-btn,
.cw-lightbox[data-theme="myon"] .cw-lightbox-nav {
    background: rgba(255, 255, 255, .92);
    color: var(--e-global-color-primary, #184D4F);
    border: 1px solid rgba(24, 77, 79, .1);
    box-shadow: 0 8px 28px rgba(24, 77, 79, .08);
}

.cw-lightbox[data-theme="myon"] .cw-lightbox-btn:hover,
.cw-lightbox[data-theme="myon"] .cw-lightbox-nav:hover {
    background: #fff;
    transform: scale(1.04);
}

.cw-lightbox[data-theme="myon"] .cw-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.cw-lightbox[data-theme="myon"] .cw-lightbox-slide {
    padding: clamp(18px, 4vw, 52px);
}

.cw-lightbox[data-theme="myon"] .cw-lightbox-slide img {
    max-width: min(1320px, 92vw);
    max-height: 86vh;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(24, 77, 79, .14);
}

.cw-lightbox[data-theme="myon"] .cw-lightbox-loader {
    border-color: rgba(24, 77, 79, .12);
    border-top-color: var(--e-global-color-accent, #52AFB3);
}

@media (max-width: 1024px) {
    .cw-myon-gallery__header {
        width: min(760px, 100%);
        margin-bottom: 42px;
    }

    .cw-myon-gallery__title {
        font-size: clamp(44px, 6vw, 58px);
    }

    .cw-myon-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 225px;
        gap: 10px;
    }

    .cw-myon-gallery__figure {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .cw-myon-gallery__figure--1 {
        grid-column: 1 / -1 !important;
        grid-row: span 2 !important;
    }

    .cw-myon-gallery__figure--7,
    .cw-myon-gallery__figure--14 {
        grid-row: span 2 !important;
    }

    .cw-myon-gallery__figure--8,
    .cw-myon-gallery__figure--11,
    .cw-myon-gallery__figure--12 {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 767px) {
    .cw-myon-gallery__header {
        width: 100%;
        margin-bottom: 30px;
    }

    .cw-myon-gallery__eyebrow {
        margin-bottom: 12px;
        font-size: 8.5px;
    }

    .cw-myon-gallery__eyebrow::before,
    .cw-myon-gallery__eyebrow::after {
        width: 18px;
    }

    .cw-myon-gallery__title {
        max-width: 560px;
        font-size: clamp(34px, 9.1vw, 42px);
        line-height: 1.035;
        letter-spacing: -.045em;
    }

    .cw-myon-gallery__description {
        max-width: 500px;
        margin-top: 15px;
        font-size: 16px;
        line-height: 1.45;
    }

    .cw-myon-gallery__services {
        margin-top: 16px;
        gap: 7px 9px;
        font-size: 8px;
    }

    .cw-myon-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(142px, 41vw, 174px);
        gap: 7px;
    }

    .cw-myon-gallery__figure--1 {
        grid-column: 1 / -1 !important;
        grid-row: span 2 !important;
    }

    .cw-myon-gallery__figure--3,
    .cw-myon-gallery__figure--8,
    .cw-myon-gallery__figure--11,
    .cw-myon-gallery__figure--12 {
        grid-column: 1 / -1 !important;
    }

    .cw-myon-gallery__figure--7,
    .cw-myon-gallery__figure--14 {
        grid-row: span 2 !important;
    }

    .cw-myon-gallery__item,
    .cw-myon-gallery__figure--1 .cw-myon-gallery__item,
    .cw-myon-gallery__figure--12 .cw-myon-gallery__item {
        border-radius: 14px;
        box-shadow: none;
    }

    .cw-myon-gallery__category {
        left: 8px;
        bottom: 8px;
        min-height: 25px;
        padding: 5px 8px;
        font-size: 7.5px;
    }

    .cw-myon-gallery__expand {
        right: 8px;
        bottom: 8px;
        width: 31px;
        height: 31px;
        opacity: .92;
        transform: none;
        background: rgba(255, 255, 255, .9);
    }

    .cw-myon-gallery__expand svg {
        width: 14px;
        height: 14px;
    }

    .cw-lightbox[data-theme="myon"] .cw-lightbox-toolbar {
        padding: 12px;
    }

    .cw-lightbox[data-theme="myon"] .cw-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .cw-lightbox[data-theme="myon"] .cw-lightbox-nav.prev {
        left: 10px;
    }

    .cw-lightbox[data-theme="myon"] .cw-lightbox-nav.next {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cw-myon-gallery__item,
    .cw-myon-gallery__item img,
    .cw-myon-gallery__expand {
        transition: none;
    }
}

/* v1.7.32 — MYON mobile gallery refinement */
.cw-myon-gallery__eyebrow::before,
.cw-myon-gallery__eyebrow::after {
    display: none !important;
    content: none !important;
}

.cw-myon-gallery__item {
    border: 0 !important;
    outline: 0 !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

.cw-myon-gallery__item:hover {
    border: 0 !important;
    outline: 0 !important;
}

.cw-myon-gallery__item:focus,
.cw-myon-gallery__item:active {
    border: 0 !important;
    outline: 0 !important;
}

.cw-myon-gallery__item:focus-visible {
    outline: 0 !important;
    border: 0 !important;
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--myon-accent) 46%, transparent),
        0 20px 48px rgba(24, 77, 79, .085) !important;
}

.cw-myon-gallery__mobile-more {
    display: none;
}

@media (max-width: 767px) {
    .cw-myon-gallery__header {
        margin-bottom: 26px;
    }

    .cw-myon-gallery__eyebrow {
        margin-bottom: 11px;
        gap: 0;
    }

    .cw-myon-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(132px, 39vw, 162px);
        gap: 8px;
    }

    .cw-myon-gallery__figure--1 {
        display: block;
        grid-column: 1 / -1 !important;
        grid-row: span 2 !important;
    }

    .cw-myon-gallery__figure--2,
    .cw-myon-gallery__figure--3,
    .cw-myon-gallery__figure--4,
    .cw-myon-gallery__figure--5 {
        display: block;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .cw-myon-gallery__figure--6,
    .cw-myon-gallery__figure--7,
    .cw-myon-gallery__figure--8,
    .cw-myon-gallery__figure--9,
    .cw-myon-gallery__figure--10,
    .cw-myon-gallery__figure--11,
    .cw-myon-gallery__figure--12,
    .cw-myon-gallery__figure--13,
    .cw-myon-gallery__figure--14 {
        display: none !important;
    }

    .cw-myon-gallery__item,
    .cw-myon-gallery__figure--1 .cw-myon-gallery__item,
    .cw-myon-gallery__figure--12 .cw-myon-gallery__item {
        border-radius: 16px;
        box-shadow: none;
    }

    .cw-myon-gallery__figure--1 .cw-myon-gallery__item {
        border-radius: 20px;
    }

    .cw-myon-gallery__item:hover,
    .cw-myon-gallery__item:focus-visible {
        transform: none;
    }

    .cw-myon-gallery__item:hover img,
    .cw-myon-gallery__item:focus-visible img {
        transform: scale(1.001);
    }

    .cw-myon-gallery__figure--5 .cw-myon-gallery__category,
    .cw-myon-gallery__figure--5 .cw-myon-gallery__expand,
    .cw-myon-gallery__figure--5 .cw-myon-gallery__veil {
        display: none !important;
    }

    .cw-myon-gallery__mobile-more {
        position: absolute;
        inset: 0;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 14px;
        border-radius: inherit;
        background:
            linear-gradient(180deg, rgba(2, 54, 56, .48), rgba(2, 54, 56, .72));
        color: #fff;
        text-align: center;
        backdrop-filter: blur(1.5px);
        -webkit-backdrop-filter: blur(1.5px);
    }

    .cw-myon-gallery__mobile-more-icon {
        display: grid;
        place-items: center;
        width: 31px;
        height: 31px;
        margin-bottom: 3px;
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
    }

    .cw-myon-gallery__mobile-more-icon svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.45;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .cw-myon-gallery__mobile-more strong {
        display: block;
        margin: 0;
        font-family: var(--e-global-typography-primary-font-family, "Rubik"), sans-serif;
        font-size: clamp(27px, 8vw, 34px);
        line-height: .95;
        font-weight: 600;
        letter-spacing: -.045em;
    }

    .cw-myon-gallery__mobile-more small {
        display: block;
        margin: 0;
        font-family: var(--e-global-typography-secondary-font-family, "League Spartan"), sans-serif;
        font-size: 9px;
        line-height: 1;
        font-weight: 600;
        letter-spacing: .14em;
        text-transform: uppercase;
        opacity: .88;
    }
}
