/* 短代码-单图片 */
.post-content .imgdiv {
  margin: 1rem auto;
}

.comment-content .imgdiv {
  margin: 1rem auto 1rem 0;
}

.imgdiv * {
  margin: 0 auto;
}

.imgtitle {
  text-align: center;  
}
.imgtitle>span{
  overflow:hidden; 
  text-overflow:ellipsis;  
  display:-webkit-box;   
  -webkit-box-orient:vertical;  
  -webkit-line-clamp:1;   
}

/* 短代码-自适应相册 */
.album-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

/* 短代码-网格相册 */
.album-grid {
  margin: 1rem 0;
  display: grid;
  gap: 0.15rem;
  border-radius: .25rem;
  overflow: hidden;
  /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
  grid-auto-flow: dense;
}

.album-auto img,
.album-grid img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.album-auto .imgdiv,
.album-grid .imgdiv {
  display: flex;
  position: relative;
  overflow: hidden;
  margin: 0 !important;
}

.comment-content .album-grid {
  max-width: 480px;
}

.comment-content .album-grid img {
  object-fit: cover !important;
  max-width: none !important;
}

.comment-content img:not(.inline-block) {
  object-fit: contain;
  max-width: 300px;
}

@media (max-width: 992px) {

  .album-auto,
  .album-grid {
    gap: 0.1rem;
    border-radius: .25rem;
  }

}

.album-auto .imgtitle,
.album-grid .imgtitle {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  color: whitesmoke;
}

/* 网格span */

.grid-span {
  display: flex;
}

.grid-span-row-2 {
  grid-row: span 2;
}

.grid-span-row-3 {
  grid-row: span 3;
}

.grid-span-row-4 {
  grid-row: span 4;
}

.grid-span-col-2 {
  grid-column: span 2;
}

.grid-span-col-3 {
  grid-column: span 3;
}

.grid-span-col-4 {
  grid-column: span 4;
}

/* 网格行列数量动态响应 */
.row-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.row-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.row-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.row-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.row-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .row-cols-sm-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .row-cols-sm-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-cols-sm-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .row-cols-sm-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .row-cols-md-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .row-cols-md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-cols-md-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .row-cols-md-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .row-cols-md-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .row-cols-lg-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .row-cols-lg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-cols-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .row-cols-lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .row-cols-lg-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .row-cols-lg-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* 短代码-视频挂载 */

.iframe_div {
  margin-top: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: block;
  padding: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.iframe_div .iframe_video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 0;
  /* background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-color: rgba(120, 120, 120, 0.1); */
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.iframe_div:after {
  content: "";
  display: block;
  padding-top: 100%;
}

.iframe_div-16x9:after {
  padding-top: 56.25%;
}

/* 短代码-下载 */
.file {
  display: flex;
  border: 1px solid gainsboro;
  padding: 0.5rem;
  border-radius: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.dark .file {
  border-color: darkslategrey;
}

.file .filetext {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.file .fileimg {
  width: 2.25rem;
  height: 2.25rem;
  background-image: url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjIiIGhlaWdodD0iMjIiPjxwYXRoIGQ9Ik02NzguNjQgNTE0LjAwN2ExNjguNDQ4IDE2OC40NDggMCAxIDAtMTY4LjQ0NyAxNjcuNzA2QTE2OC4wNyAxNjguMDcgMCAwIDAgNjc4LjY0IDUxNC4wMDd6IiBmaWxsPSIjRjRDQTFDIi8+PHBhdGggZD0iTTk4My4wNCA2MDMuNDEyYTI0Mi40ODggMjQyLjQ4OCAwIDAgMC0yODAuMzkyLTIzOC40MDdBMjUzLjMyMiAyNTMuMzIyIDAgMCAwIDI1Ni4yMiAyODcuMThhMjQ5LjEzNCAyNDkuMTM0IDAgMCAwLTQ4Ljk1NyAxNTMuMzg1QTIwMy4zOTcgMjAzLjM5NyAwIDAgMCAyNDAuMTg5IDg0NC44aDUyNy43NzVhMzEuOTkgMzEuOTkgMCAwIDAgMTQuNzUtMy43MTcgMjQyLjAzOCAyNDIuMDM4IDAgMCAwIDIwMC4zMjYtMjM3LjY3ek03NDAuNjA4IDc4MC43MTNIMjQwLjE4OWExMzkuMzg3IDEzOS4zODcgMCAxIDEgMC0yNzguNzY5IDMxLjk3IDMxLjk3IDAgMCAwIDguNzA0LTEuMzQxIDMxLjk2NCAzMS45NjQgMCAwIDAgMjQuODQ4LTM1Ljk5OSAxODcuODEyIDE4Ny44MTIgMCAwIDEgMTU3Ljc0Mi0yMTQuMDE2IDE4OC40NjIgMTg4LjQ2MiAwIDAgMSAyMDkuNTQxIDEzMi44MzkgMjQxLjYyOCAyNDEuNjI4IDAgMCAwLTE0Mi44NDggMjE5Ljk4NSAzMi4xOCAzMi4xOCAwIDAgMCA2NC4zNTggMCAxNzguMDY4IDE3OC4wNjggMCAxIDEgMTc4LjA3NCAxNzcuMzAxeiIgZmlsbD0iIzU5NUJCMyIvPjwvc3ZnPg==");
  background-size: cover;
}

.file .filedown {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  border-radius: 50%;
  background-color: cornflowerblue;
}

.file .filedown:hover {
  color: darkslateblue;
}

/* 展示信息：左image，右上title，右下description */

.post_inner {
  border: 1px dashed;
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: 700ms;
}

.post_inner:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.post_img_inner {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
}

.post_info_inner {
  flex: 1 1 0;
  display: flex;
  overflow: hidden;
}

.post_img_inner img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.post_info_inner a {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: auto;
  font-size: small;
}

.post_info_inner .post_title_inner,
.post_info_inner .post_description_inner {
  /* color: rgb(100 116 139); */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.post_info_inner .post_title_inner {
  font-weight: 700;
}

.dark .post_info_inner .post_title_inner,
.dark .post_info_inner .post_description_inner {
  /* color: rgb(148 163 184); */
}

@media (min-width: 640px) {
  .post_img_inner {
    width: 3.5rem;
    height: 3.5rem;
  }

  .post_info_inner a {
    font-size: medium;
    line-height: 1.75rem;
  }
}