.BoardCard {
  border-top: 0;
  max-height: 100%;
  max-width: 100%;
  min-width: 20px;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  user-select: none;
}

.BoardCard--standard {
  background-color: white;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  min-height: calc(var(--cellSize) * 2 + 1px);
  outline: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: solid 1px var(--colorPaleGrey);
}

.BoardCard:focus,
.BoardCard:active {
  outline: none;
}

/* Adding specificity to match behavior of this rule override the .BoardCard:focus rule
 * above
 */
.BoardCard.BoardCard--selected {
  box-shadow: 4px 4px 24px 0px rgba(0, 0, 0, 0.25);
  outline: solid 2px var(--highlight-color, var(--colorBlueBlack));
  z-index: 2;
}

.BoardCard-resizeHandle {
  position: absolute;
  width: 16px;
  height: 16px;
  bottom: 1px;
  right: 1px;
  background: url('../../../images/corner.svg');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-origin: content-box;
  cursor: nwse-resize;
  visibility: hidden;

  /* Card content might use z-index as well so use high
    index here to avoid resizer being covered.*/
  z-index: 999;
}

.BoardCard:hover .BoardCard-resizeHandle {
  visibility: visible;
}

/* XXX: hack to match legacy behavior */
.BoardCard .Image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}
