@import '~antd/es/style/themes/default.less';

.container {
  margin: 0;

  .shadowWrapper {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;

    &::before,
    &::after {
      content: '';
      position: absolute;
      z-index: 1;
      top: 0;
      height: 100%;
      box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0);
      width: 1px;
      transition: all 0.3s;
    }

    &::before {
      left: -1px;
    }

    &::after {
      right: -1px;
    }

    &.leftInnerShadow::before {
      box-shadow: 1px 0px 6px 2px rgba(0, 0, 0, 0.5);
    }

    &.rightInnerShadow::after {
      box-shadow: -1px 0px 6px 2px rgba(0, 0, 0, 0.5);
    }
  }

  .cards {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    font-size: 0;
    padding: 1px;
  }

  .card {
    display: inline-block;
    width: 140px;
    height: 90px;
    margin: 0 20px 0 0;
    cursor: pointer;
    padding: 4px;
    position: relative;
    border: 1px solid #ebedf0;
    transition: all 0.3s;
    user-select: none;

    &:after {
      transition: all 0.3s;
      background-color: transparent;
      border: 1px solid transparent;
      content: '';
      position: absolute;
      top: -1px;
      bottom: -1px;
      right: -1px;
      left: -1px;
    }

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    &:last-child {
      margin-right: 0;
    }

    &:hover {
      border-color: #ddd;
    }

    &.current::after {
      background-color: fade(@primary-color, 10%);
      border-color: @primary-color;
    }
  }
}
