/* blog-foto-rabot */

.blog-foto-rabot .items-leading > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 30px;

  @media (width >= 980px) {
    width: calc((100% / 3) - 20px);
  }
}

.blog-foto-rabot .items-leading > div:after {
  content: '';
  display: block;
  margin: auto 0 0;
  border-bottom: 1px solid var(--color-line);
}

.blog-foto-rabot .items-leading .page-header {
  margin: 10px 0 15px;
  border: none;
}

.blog-foto-rabot .items-leading h2 {
  margin: 0;
  font-size: 18px;
}

.blog-foto-rabot .items-leading {
  @media (width >= 980px) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}

.blog-foto-rabot .items-leading .page-header a {
  @media (width >= 980px) {
    color: var(--color-text);
  }
}

/* Общее правило img { width: auto } перебивает атрибут width, и оригинал растягивается на всю колонку. Миниатюра старого сайта — 367 px. */
.blog-foto-rabot .item-image img {
  width: 367px;
}
