.article {

  &>* {
    margin-bottom: 12px;
  }

  img {
    cursor: zoom-in;
    /*aspect-ratio: 7 / 5;*/
  }

  img[data-src] {
    padding: 20px;
  }
}


#preview_modal {
  --color-dialog-background: transparent;
  --swiper-pagination-top: 16px;
  --swiper-pagination-bottom: auto;
  --swiper-pagination-fraction-color: #fff;

  .modal-dialog {
    top: 50% !important;
    box-shadow: none;
    border: 0;
    margin: auto;
    transform: translateY(-50%);
    width: unset;
  }

  .modal-content {
    max-height: 90vh;
    padding: 0;
    width: 600px;
    margin: auto;
    max-width: 90vw;
  }

  .modal-body {
    padding: 0;
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    background-color: transparent;
    display: flex;
    align-items: center;
  }

  .swiper {
    height: 100%;

    img {
      object-fit: unset;
      cursor: grabbing;
      height: auto;
    }
  }

  .modal-close {
    width: 32px;
    height: 32px;
    position: absolute;
    right: 24px;
    top: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      color: #fff;
    }
  }
}

.comments {
  .avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
  }
}


.btn-like,
.btn-follow {
  &.is-active {

    .bg-white {
      background-color: var(--color-primary);
    }

    svg {
      color: #fff;
    }
  }
}

.btn-rec-refresh {
  &.is-refreshing {
    svg {
      animation: spin 1s ease-in-out;
    }
  }
}

@keyframes spin {
  to {
    transform: rotateZ(360deg);
  }
}

.dplayer .xgplayer video {
  display: block;
  position: static;
  aspect-ratio: 16 / 9;
}
