.wp-block-columns {
    &.is-style-offset {
        transform: translateX(-45px);

        @media screen and (max-width: 781px) {
            transform: none;
            padding-left: 40px;
            padding-right: 40px;
        }
    }

    &.is-style-extended-stacking {
        @media screen and (min-width: 782px) and (max-width: 959px) {
            flex-wrap: wrap !important;
            justify-content: space-between !important;
            gap: var(--wp--preset--spacing--medium-secondary) 0 !important;
        }

        > .wp-block-column {
            @media screen and (min-width: 782px) and (max-width: 959px) {
                flex: 0 1 calc(50% - 14px) !important;
                box-sizing: border-box;
                border-right: 0 !important;
                padding-right: 0 !important;
            }

            &:nth-child(even) {
                @media screen and (min-width: 782px) and (max-width: 959px) {
                    padding-right: 0 !important;
                }
            }
        }
    }

    &[style*="padding-left:var(--wp--preset--spacing--large-quaternary)"] {
        @media screen and (max-width: 1400px) {
            padding-left: 0 !important;
        }
    }

    &[style*="padding-right:var(--wp--preset--spacing--large-quaternary)"] {
        @media screen and (max-width: 1400px) {
            padding-right: 0 !important;
        }
    }
    
}

.wp-block-cover {
    .wp-block-columns {
        &.is-style-extended-stacking {
            > .wp-block-column {
                @media screen and (min-width: 782px) and (max-width: 959px) {
                    flex: 100% !important;
                }
            }
        }
    }
}