@import 'mixins/common';

img {
  border: 0;
  image-orientation: from-image;  // no-brainer, browsers should do this by default

  @if ($wc-image-valign-button != -1) {
    a &,
    button & {
      vertical-align: $wc-image-valign-button;
    }

    @if ($wc-image-valign-button-figure != -1 and $wc-image-valign-button-figure != $wc-image-valign-button) {
      figure & {
        &,
        + button {
          vertical-align: bottom;
        }
      }
    }
  }
}
