/* Заголовок "Вложения" на отдельной строке */
.attachbox dt {
  grid-column: 1 / -1;
  margin: 0 0 10px 0;
  /*  font-weight: bold;*/
}

/* Красивая плитка для вложений */
.attachbox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 10px;
}

.attachbox dd {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-top: none !important; /* Убираем верхний бордер */
}

/* Скрываем текст ТОЛЬКО для картинок (dl.thumbnail) */
.attachbox dl.thumbnail ~ dd {
  font-size: 0;
  color: transparent;
  line-height: 0;
}

/* Для обычных файлов (dl.file) показываем текст нормально */
.attachbox dl.file {
  margin: 0;
  width: 100%;
  border: none;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
  text-align: center;
}

.attachbox dl.file dd {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: normal;
}

.attachbox dl.file a {
  color: #666;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom-color: #8f8f8f !important;
}

.attachbox dl.file a:hover {
  text-decoration: underline;
}

.attachbox dl.thumbnail,
.attachbox dl.thumbnail dt,
.attachbox dl.thumbnail a {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border: none;
}

.attachbox dl.thumbnail dt,
.attachbox dl.thumbnail a {
  overflow: hidden;
  border-radius: 5px;
}

.attachbox img.postimage {
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
  margin: 0 auto;
  display: block;
  border: none !important;
  outline: none !important;
}

.attachbox img.postimage:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Иконка для файлов */
.attachbox .imageset.icon_topic_attach {
  display: inline-block;
  margin-right: 5px;
}

/* Цитата */
.user-quote {
  /* background-color: #d7e4ee; */
  border-bottom: solid 1px #d7e4ee;
  border-top: solid 1px #d7e4ee;
  padding: 10px 5px 3px;
  margin-bottom: 10px;
  /* border-radius: 6px; */
}
.user-quote .quote {
  font-style: italic;
  font-size: 14px;
  margin-bottom: 5px;
}

.user-quote .author {
  text-align: right;
  font-style: italic;
  font-size: 11px;
  margin-bottom: 0;
}

.bbcode-center,
.bbcode-attachments-grid,
.bbcode-right {
  width: 24px;
  overflow: hidden;
  position: relative;
}

.bbcode-center::before,
.bbcode-attachments-grid::before,
.bbcode-right::before {
  content: "\f037";
  font-family: FontAwesome;
  font-size: 14px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  padding-left: 1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bbcode-attachments-grid::before {
  content: "\f00a";
}

.bbcode-right::before {
  content: "\f038";
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Site description and logo */

.inner .site-description {
  max-width: 500px;
}

.inner .right-block {
  float: right;
}

.inner .right-block .social-icons {
  float: left;
  margin: 31px 15px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.inner .right-block .social-icons .telegram-icon {
  position: relative;
  top: 1px;
}

.inner .right-block .social-icons .social-icons-text {
  font-size: 15px;
  margin-left: 10px;
  color: #fff;
  text-decoration: none;
}
.inner .right-block .social-icons img {
  width: 23px;
  margin: 0 1px 5px;
}

@media (max-width: 1100px) {
  .inner .right-block .social-icons .social-icons-text {
    display: none;
  }
}

@media (max-width: 950px) {
  .inner .right-block .social-icons {
    float: none;
    margin-top: 5px;
    margin-right: 0px;
    justify-content: right;
  }
  .inner .right-block .search-box {
    float: none;
    margin-top: 5px;
    margin-right: 0px;
  }
}
@media (max-width: 700px) {
  .inner .right-block {
    float: none;
  }
  .inner .right-block .social-icons {
    justify-content: center;
    margin-left: 0px;
  }
  .site-description {
    max-width: 100% !important;
  }
}
