.hopo-product-blocks {
    padding: clamp(54px, 7vw, 110px) 0;
    background: #fff;
}

.hopo-product-blocks,
.hopo-product-blocks * {
    box-sizing: border-box;
}

.hopo-product-blocks-inner {
    display: grid;
    gap: clamp(46px, 6vw, 96px);
}

.hopo-product-block {
    margin: 0;
}

.hopo-product-block h2 {
    max-width: 900px;
    margin: 0 0 clamp(18px, 2.5vw, 34px);
    color: #17191c;
    font-size: clamp(28px, 3.1vw, 48px);
    font-weight: 600;
    line-height: 1.15;
}

.hopo-product-block-copy,
.hopo-product-block-caption,
.hopo-product-block figcaption {
    color: #60686e;
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 300;
    line-height: 1.75;
}

.hopo-product-block-copy > *:first-child,
.hopo-product-block-caption > *:first-child,
.hopo-product-block figcaption > *:first-child {
    margin-top: 0;
}

.hopo-product-block-copy > *:last-child,
.hopo-product-block-caption > *:last-child,
.hopo-product-block figcaption > *:last-child {
    margin-bottom: 0;
}

.hopo-product-block-copy a,
.hopo-product-block-caption a,
.hopo-product-block figcaption a {
    color: #df001b;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.hopo-product-block-media {
    overflow: hidden;
    background: #f2f3f4;
}

.hopo-product-block-media img,
.hopo-product-block-gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.hopo-product-block-rich-text {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.hopo-product-block-single-image > h2,
.hopo-product-block-single-image > figcaption {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.hopo-product-block-single-image .hopo-product-block-media {
    margin-bottom: 22px;
}

.hopo-product-block-image-text {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: stretch;
    min-height: 420px;
    border-top: 1px solid #dfe2e4;
    border-bottom: 1px solid #dfe2e4;
}

.hopo-product-block-image-text.is-image-right .hopo-product-block-media {
    order: 2;
}

.hopo-product-block-image-text.is-image-right .hopo-product-block-content {
    order: 1;
    border-right: 1px solid #dfe2e4;
    border-left: 0;
}

.hopo-product-block-image-text .hopo-product-block-media img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hopo-product-block-image-text .hopo-product-block-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 78px);
    border-left: 1px solid #dfe2e4;
}

.hopo-product-block-gallery > h2,
.hopo-product-block-gallery > .hopo-product-block-caption {
    max-width: 980px;
}

.hopo-product-block-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.hopo-product-block-gallery-grid figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #f2f3f4;
}

.hopo-product-block-gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .55s ease;
}

@media (hover: hover) {
    .hopo-product-block-gallery-grid figure:hover img {
        transform: scale(1.025);
    }
}

@media (max-width: 900px) {
    .hopo-product-block-image-text {
        grid-template-columns: 1fr;
    }

    .hopo-product-block-image-text.is-image-right .hopo-product-block-media,
    .hopo-product-block-image-text.is-image-right .hopo-product-block-content {
        order: initial;
    }

    .hopo-product-block-image-text .hopo-product-block-content,
    .hopo-product-block-image-text.is-image-right .hopo-product-block-content {
        border-top: 1px solid #dfe2e4;
        border-right: 0;
        border-left: 0;
    }

    .hopo-product-block-image-text .hopo-product-block-media img {
        min-height: 0;
        max-height: 70vh;
    }

    .hopo-product-block-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .hopo-product-block-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hopo-product-block-gallery-grid img {
        transition: none;
    }
}
