form[data-op3-element-options-type="image"] {
    .op3-element-options-property[data-op3-element-options-property-id="heightAuto"][data-op3-element-options-property-value="1"] {
        + .op3-element-options-property[data-op3-element-options-property-id="height"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-name="boxShadowInset"] {
        display: none;
    }

    // Style src/srcsetTablet/srcsetMobile options property filter
    .op3-element-options-property-filter:first-child {
        .jquery-filter-button {
            position: absolute;
            right: 22px;
            margin-top: -28px;
            font-size: 0.8em;
        }

        .jquery-filter-button-item {
            margin: 0 0 0 0.5em;
            padding: 0;
            font-size: 0.8em;
            font-family: inherit;
            line-height: 18px;
            border-radius: 0;
            border: 0 none;
            background: none;
            color: #8e8e8e !important;
            text-decoration: none;
            user-drag: none;

            &:hover {
                color: inherit;
            }
        }

        .jquery-filter-button-active {
            color: $op-blue !important;
        }
    }

    // Hide label for src, srcsetTablet and srcsetMobile properties
    .op3-element-options-property[data-op3-element-options-property-id="src"],
    .op3-element-options-property[data-op3-element-options-property-id="srcsetTablet"],
    .op3-element-options-property[data-op3-element-options-property-id="srcsetMobile"] {
        padding-top: 0;

        .op3-element-options-label-group {
            display: none;
        }
    }

    // Should only be shown on images within block layout elements
    // (feature block)
    .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
        display: none;
    }

    &[data-op3-element-options-path$="/featureblock/featureblockitem/image"],
    &[data-op3-element-options-path$="/membershipcontentlist/membershipcontentlistitem/image"],
    &[data-op3-element-options-path$="/orderbump/image"] {
        .op3-element-options-property[data-op3-element-options-property-name="width"] {
            display: none;
        }

        .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
            display: flex;
        }
    }

    // Following feature block layouts are 1 column
    [data-op3-device="desktop"] &[data-op3-element-options-path$="/featureblock/featureblockitem/image"] {
        &[data-op3-parent-options-property-value-blocklayoutdesktop="0"],
        &[data-op3-parent-options-property-value-blocklayoutdesktop="1"],
        &[data-op3-parent-options-property-value-blocklayoutdesktop="2"],
        &[data-op3-parent-options-property-value-blocklayoutdesktop="3"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    [data-op3-device="tablet"] &[data-op3-element-options-path$="/featureblock/featureblockitem/image"] {
        &[data-op3-parent-options-property-value-blocklayouttablet="0"],
        &[data-op3-parent-options-property-value-blocklayouttablet="1"],
        &[data-op3-parent-options-property-value-blocklayouttablet="2"],
        &[data-op3-parent-options-property-value-blocklayouttablet="3"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    [data-op3-device="mobile"] &[data-op3-element-options-path$="/featureblock/featureblockitem/image"] {
        &[data-op3-parent-options-property-value-blocklayoutmobile="0"],
        &[data-op3-parent-options-property-value-blocklayoutmobile="1"],
        &[data-op3-parent-options-property-value-blocklayoutmobile="2"],
        &[data-op3-parent-options-property-value-blocklayoutmobile="3"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    // Following membership content list layouts are 1 column
    [data-op3-device="desktop"] &[data-op3-element-options-path$="/membershipcontentlist/membershipcontentlistitem/image"] {
        &[data-op3-parent-options-property-value-blocklayoutdesktop="0"],
        &[data-op3-parent-options-property-value-blocklayoutdesktop="1"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    [data-op3-device="tablet"] &[data-op3-element-options-path$="/membershipcontentlist/membershipcontentlistitem/image"] {
        &[data-op3-parent-options-property-value-blocklayouttablet="0"],
        &[data-op3-parent-options-property-value-blocklayouttablet="1"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    [data-op3-device="mobile"] &[data-op3-element-options-path$="/membershipcontentlist/membershipcontentlistitem/image"] {
        &[data-op3-parent-options-property-value-blocklayoutmobile="0"],
        &[data-op3-parent-options-property-value-blocklayoutmobile="1"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    // Following order bump layouts are 1 column
    [data-op3-device="desktop"] &[data-op3-element-options-path$="/orderbump/image"] {
        &[data-op3-parent-options-property-value-blocklayoutdesktop="0"],
        &[data-op3-parent-options-property-value-blocklayoutdesktop="1"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    [data-op3-device="tablet"] &[data-op3-element-options-path$="/orderbump/image"] {
        &[data-op3-parent-options-property-value-blocklayouttablet="0"],
        &[data-op3-parent-options-property-value-blocklayouttablet="1"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }

    [data-op3-device="mobile"] &[data-op3-element-options-path$="/orderbump/image"] {
        &[data-op3-parent-options-property-value-blocklayoutmobile="0"],
        &[data-op3-parent-options-property-value-blocklayoutmobile="1"] {
            .op3-element-options-property[data-op3-element-options-property-name="width"] {
                display: flex;
            }

            .op3-element-options-property[data-op3-element-options-property-name="gridTemplateColumnsImage"] {
                display: none;
            }
        }
    }
}

#toolbar form[data-op3-element-options-type="image"] {
    .op3-element-options-property[data-op3-element-options-property-name="maxWidth"] {
        display: none;
    }
}
