.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;
}

.collect-modal .modal-header {
  padding: 16px 44px 12px 20px;
  border-bottom: 0;
}

.collect-modal .modal-body {
  padding: 0 20px 12px;
}

.collect-modal .modal-footer {
  padding: 0 20px 20px;
  border-top: 0;
}

.collect-modal .modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text, #fff);
}

.collect-modal__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.collect-modal__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}

.collect-modal__option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.collect-modal__option + .collect-modal__option {
  margin-top: 10px;
}

.collect-modal__option input[type='radio'],
.collect-modal__option input[type='checkbox'] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #f7a93a;
}

.collect-modal__input {
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.collect-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collect-modal__footer .btn-new-folder {
  background: transparent;
  border: 0;
  color: var(--color-blue, #f7a93a);
  min-width: auto;
  padding: 0;
  height: auto;
  font-size: 14px;
}

.collect-modal__footer .btn-primary {
  min-width: 112px;
  height: 40px;
  padding: 0 24px;
  border-radius: 20px;
  font-size: 14px;
}

.collect-modal__footer .btn:not(.btn-primary) {
  min-width: 96px;
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 14px;
}
