.moiap-feature,
.moiap-profile {
    --moiap-ink: #103f34;
    --moiap-accent: #7da947;
    --moiap-paper: #f4f0e6;
    --moiap-line: rgba(16, 63, 52, .16);
    background: var(--moiap-paper);
    color: var(--moiap-ink);
    padding: clamp(58px, 6.5vw, 96px) 0;
}

.moiap-shell,
.moiap-profile__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: center;
}

.moiap-shell--reverse {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
}

.moiap-kicker {
    display: block;
    margin: 0 0 14px;
    color: var(--moiap-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.35;
}

.moiap-feature h2,
.moiap-profile h2 {
    margin: 0 0 18px;
    color: var(--moiap-ink);
    font-size: clamp(34px, 3.6vw, 58px);
    letter-spacing: -.035em;
    line-height: 1.02;
}

.moiap-feature__copy > p,
.moiap-profile__copy > p {
    margin: 0;
    color: #53665f;
    font-size: 16px;
    line-height: 1.72;
}

.moiap-feature__media,
.moiap-profile__media {
    margin: 0;
    min-width: 0;
}

.moiap-feature__image,
.moiap-profile__image,
.moiap-grades__image {
    display: block;
    width: 100%;
    height: auto;
    background: #ded8ca;
}

.moiap-feature__image {
    aspect-ratio: 1400 / 933;
    object-fit: cover;
    box-shadow: 0 24px 54px rgba(26, 46, 38, .14);
}

.moiap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.moiap-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--moiap-ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    transition: background-color .2s ease, color .2s ease;
}

.moiap-btn--primary {
    background: var(--moiap-ink);
    color: #fff;
}

.moiap-btn--secondary {
    background: transparent;
    color: var(--moiap-ink);
}

.moiap-btn:hover,
.moiap-btn:focus-visible {
    background: var(--moiap-accent);
    border-color: var(--moiap-accent);
    color: #0b2e27;
}

.moiap-profile {
    background: #fff;
}

.moiap-profile__inner {
    grid-template-columns: minmax(0, .75fr) minmax(280px, .72fr);
}

.moiap-profile__media {
    justify-self: end;
    width: min(100%, 520px);
}

.moiap-profile__image {
    box-shadow: 0 24px 54px rgba(26, 46, 38, .13);
}

.moiap-grades {
    margin: clamp(54px, 7vw, 90px) auto;
}

.moiap-grades h2 {
    margin: 0 0 24px;
}

.moiap-grades figure {
    margin: 0;
}

.moiap-grades__image {
    aspect-ratio: 1400 / 933;
    object-fit: cover;
}

.moiap-grades figcaption {
    margin-top: 12px;
    color: #65736d;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .moiap-shell,
    .moiap-shell--reverse,
    .moiap-profile__inner {
        width: min(100% - 32px, 680px);
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .moiap-feature__media,
    .moiap-profile__media {
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
    }

    .moiap-profile__media {
        width: min(100%, 440px);
        justify-self: center;
    }

    .moiap-feature h2,
    .moiap-profile h2 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .moiap-actions {
        display: grid;
    }

    .moiap-btn {
        width: 100%;
    }

    body.single-product.mocpds-commerce-layout .woocommerce-product-gallery__wrapper {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        transform: none !important;
    }

    body.single-product.mocpds-commerce-layout .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
        display: block !important;
        position: relative !important;
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }

    body.single-product.mocpds-commerce-layout .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
        grid-column: 1 / -1;
    }

    body.single-product.mocpds-commerce-layout .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img:not(.zoomImg) {
        display: block;
        width: 100%;
        height: auto;
    }

    body.single-product.mocpds-commerce-layout .woocommerce-product-gallery__wrapper .zoomImg,
    body.single-product.mocpds-commerce-layout .woocommerce-product-gallery .flex-control-thumbs {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .moiap-btn {
        transition: none;
    }
}
