.Items {
  position: relative;
  width: 100%;
}

.Item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1em;
  background: var(--white);
  font-size: 13px;
  padding: 1em;
  border-radius: 4px;
  transition: all 150ms ease-in-out;
  user-select: none;
  border: 1px solid var(--white);
}

.Item.is-mosaic {
  background: var(--blue);
  border: 1px solid #ddd;
  padding: 1px;
}

.Items.is-mosaic .Items__header {
  display: none;
}

.Items.is-mosaic .Items__inner {
  padding: 2px 4px 2em 2px;
}

.Items__empty {
  display: none;
  font-size: .8em;
  opacity: .5;
  user-select: none;
}

.Items.is-empty.is-mosaic .Items__inner {
  display: flex;
}

.Items.is-empty .Items__empty {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.Items.is-empty .Items__header {
  display: none;
}

.Items__header {
  font-size: 13px;
  opacity: .5;
  padding: 0 1em 1em 1em;
  width: var(--canvasWidth);
  margin: 0 auto 0 auto;
  display: flex;
  justify-content: space-between;
  user-select: none;
}

.Items__name {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.Items__icon {
  display: flex;
  width: 64px;
  margin-right: 1em;
  justify-content: space-between;
  align-items: center;
}

.Items__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.Items__options > div {
  margin: 0 0 0 1em;
  text-align: center;
}

.Items__inner {
  padding: 2px 2px 1em 2px;
    width: var(--canvasWidth);
  margin: auto;
}

.Items {
  position: absolute;
  top: 0;
  padding-top: 80px;
  overflow: hidden;
  overflow-y: scroll;
}

.Items.is-mosaic .Items__inner {
  display: grid;
  grid-gap: 36px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.Item.is-mosaic {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 380px;
  margin: 0;
}

.Item__image {
  width: 100%;
  height: 332px;
  background: var(--blue);
  transition: transform 150ms ease-in-out;
}

.Item__footer {
  background: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  border-radius: 0 0 4px 4px;
  bottom: 0;
  padding: 16px;
}


.Item__description {
  color: #757575;
}

.Item__icon {
  border: 1px solid #DDDDDD;
  width: 64px;
  height: 64px;
  margin: 0 16px 0 0;
  border-radius: 2px;
  background-repeat: no-repeat;
  background-position: 50%;
}

.Item:hover {
  cursor: pointer;
  border-color: #ccc;
}

.Item__type {
  width: 84px;
}
.Item__date {
  width: 180px;
}
.Item__privacy {
  width: 84px;
}

.Item__ellipsis {
  width: 28px;
}

.Item__more {
  background-image: url('/images/ellipsis.svg');
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: 50%;
  background-color: var(--white);
}

.Item.is-active.is-highlighted {
  box-shadow: 0 0 0 2px rgba(56, 88, 233, .5);
}

.Item.is-highlighted {
  border: 1px solid #ccc;
  box-shadow: 0 0 0 2px rgba(100, 100, 100, 0.2);
}

.Item.is-active {
  border-color: var(--active);
  background: var(--white);
}

.Item__link {
  font-weight: 400;
}

.Item.is-active .Item__link {
  color: var(--active);
}

.Item.is-active .Item__link:hover {
  color: var(--hover);
}

.Item__title {
  /*display: flex;*/
  /*align-items: center;*/
  flex: 1;
  line-height: 1.4;
}

.Item__meta {
  display: flex;
}

.Item__meta > div {
  margin: 0 0 0 1em;
  text-align: center;
}

.Item:last-child {
  margin: 0;
}

.Item:hover .Item__tick {
  opacity: 1;
}

.Item__tick {
  opacity: 0;
  position: absolute;
  top: 1em;
  left: 1em;
  width: 28px;
  height: 28px;
  background-image: url('/images/tick_default.svg');
  background-repeat: no-repeat;
  background-position: 50%;
  background-color: transparent;
  transition: all 100ms ease-in-out;
}

.is-active .Item__tick {
  opacity: 1;
  background-image: url('/images/tick_active.svg');
}

.Item__checkbox {
  width: 24px;
  height: 24px;
  border: 1px solid var(--black);
  border-radius: var(--min-radius);
  margin: 0 0.4em 0 0;
}

.is-active .Item__checkbox {
  border-color: var(--active);
  background-image: url('/images/tick.svg');
  background-repeat: no-repeat;
  background-position: 50%;
  background-color: var(--active);
}


.CARDS_WITH_TICK_ICON .Item.is-active .Item__image {
  transform: scale(.9);
}

.CARDS_WITH_CHECKBOX .Item__title {
  display: flex;
  align-items: center;
}

@media all and (max-width: 1440px) {
  .Items.is-mosaic .Items__inner {
    display: grid;
    grid-gap: 36px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
