/* Posts (T180). Pagination / load more / empty parts (.zx-loop__*) come from widgets/loop-grid/style.css. */
.zx-posts {
  --zx-posts-cols: 3;
  --zx-posts-col-gap: 24px;
  --zx-posts-row-gap: 32px;
  --zx-posts-img-gap: 16px;
  --zx-posts-img-width: 40%;
  --zx-posts-duration: 300ms;
  width: 100%;
}
.zx-posts__items {
  display: grid;
  grid-template-columns: repeat(var(--zx-posts-cols), minmax(0, 1fr));
  column-gap: var(--zx-posts-col-gap);
  row-gap: var(--zx-posts-row-gap);
}
.zx-posts--masonry .zx-posts__items {
  display: block;
  columns: var(--zx-posts-cols);
  column-gap: var(--zx-posts-col-gap);
}
.zx-posts--masonry .zx-posts__item {
  break-inside: avoid;
  margin-bottom: var(--zx-posts-row-gap);
}
.zx-posts__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: background-color var(--zx-posts-duration) ease, box-shadow var(--zx-posts-duration) ease, border-color var(--zx-posts-duration) ease, transform var(--zx-posts-duration) ease;
}
.zx-posts--equal .zx-posts__item {
  height: 100%;
}
.zx-posts__media {
  position: relative;
  overflow: hidden;
  flex: none;
}
.zx-posts__thumb {
  display: block;
}
.zx-posts__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--zx-posts-duration) ease, opacity var(--zx-posts-duration) ease;
}
.zx-posts--hover-zoom .zx-posts__item:hover .zx-posts__img {
  transform: scale(1.05);
}
.zx-posts--hover-fade .zx-posts__item:hover .zx-posts__img {
  opacity: 0.8;
}
.zx-posts__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.zx-posts--classic .zx-posts__item.has-thumb .zx-posts__body,
.zx-posts--full-content .zx-posts__item.has-thumb .zx-posts__body {
  padding-top: var(--zx-posts-img-gap);
}
/* Classic skin with the image beside the text. */
.zx-posts--img-left .zx-posts__item,
.zx-posts--img-right .zx-posts__item {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--zx-posts-img-gap);
}
.zx-posts--img-right .zx-posts__item {
  flex-direction: row-reverse;
}
.zx-posts--img-left .zx-posts__media,
.zx-posts--img-right .zx-posts__media {
  width: var(--zx-posts-img-width);
}
.zx-posts--img-left .zx-posts__item.has-thumb .zx-posts__body,
.zx-posts--img-right .zx-posts__item.has-thumb .zx-posts__body {
  padding-top: 0;
}
.zx-posts__title {
  margin: 0 0 8px;
  font-size: 1.25em;
  line-height: 1.3;
}
.zx-posts__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--zx-posts-duration) ease;
}
.zx-posts__title a:hover {
  text-decoration: underline;
}
.zx-posts__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  opacity: 0.8;
}
.zx-posts__body .zx-posts__meta {
  margin-bottom: 10px;
}
.zx-posts__sep {
  opacity: 0.6;
}
.zx-posts__excerpt {
  margin: 0 0 12px;
  line-height: 1.6;
}
.zx-posts__content {
  line-height: 1.7;
}
.zx-posts__content > :first-child {
  margin-top: 0;
}
.zx-posts__more {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: color var(--zx-posts-duration) ease;
}
.zx-posts__more:hover {
  text-decoration: underline;
}
.zx-posts__more:focus-visible,
.zx-posts__title a:focus-visible,
.zx-posts__badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.zx-posts .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Cards skin. */
.zx-posts--cards .zx-posts__item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: #fff;
}
.zx-posts--cards .zx-posts__body {
  padding: 20px 20px 16px;
}
.zx-posts__badge {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.zx-posts--cards .zx-posts__media:not(:has(.zx-posts__thumb)) {
  min-height: 48px;
}
.zx-posts__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.zx-posts__footer .zx-posts__meta {
  margin: 0;
}
.zx-posts__avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
@media (max-width: 767px) {
  .zx-posts--img-left .zx-posts__item,
  .zx-posts--img-right .zx-posts__item {
    flex-direction: column;
  }
  .zx-posts--img-left .zx-posts__media,
  .zx-posts--img-right .zx-posts__media {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zx-posts__item,
  .zx-posts__img {
    transition: none;
  }
}
