/**
 * CMS GIRVAS (https://www.cms-girvas.ru/)
 * 
 * @link        https://gitflic.ru/project/garbalo/cms-girvas Путь до репозитория системы
 * @copyright   Copyright (c) 2021 - 2024, Andrey Shestakov & Garbalo (https://www.garbalo.com/)
 * @license     https://gitflic.ru/project/garbalo/cms-girvas/LICENSE.md
 */

.page__entries-wrapper {
  flex-grow: 1;
  padding: 24px;
  min-height: 520px;
}

.page__entries-container {
  margin-bottom: 20px;
}

.page__entries-list-container {
  flex-grow: 1;
  padding: 24px;
}

.page__entries-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
}

.page__entries-list .entries-list__item {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  height: 217px;
}

@media (min-width: 1200px) {
  .page__entries-list .entries-list__item {
    flex: 0 0 calc(50% - 13px);
  }
}

@media (max-width: 1199px) {
  .page__entries-list .entries-list__item {
    flex: 0 0 100%;
  }
}

@media (min-width: 1200px) {
  .page__entries-list .entries-list__item:not(:nth-last-child(2)),
  .page__entries-list .entries-list__item:not(:last-child) {
    margin-bottom: 24px;
  }
}

@media (max-width: 1199px) {
  .page__entries-list .entries-list__item:not(:last-child) {
    margin-bottom: 24px;
  }
}

.page__entries-list .entries-list__item .item__article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.page__entries-list .entries-list__item .article__title {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
  text-transform: uppercase;
  max-width: 75ch;
  overflow: hidden;
}

.page__entries-list .entries-list__item .article__description {
  opacity: 0;
  visibility: hidden;
  padding-top: 0;
  font-size: 0;
  font-weight: 400;
  color: inherit;
}

.page__entries-list .entries-list__item .article__metadata {
  display: flex;
  width: 100%;
  height: 40px;
  padding-left: 27px;
  align-items: center;
  justify-content: space-between;
  background-color: var(--dark-gray-color);
}

.page__entries-list .entries-list__item .article .metadata__icon {
  margin-right: 6px;
}

.page__entries-list .entries-list__item .article .metadata__datetime {
  align-items: center;
  flex-grow: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--container-and-text-white-color);
}

.page__entries-list .entries-list__item .article .article__group-link {
  width: fit-content;
  height: 100%;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: 400;
  transition: var(--transistion);
  text-transform: uppercase;
  color: var(--container-and-text-white-color);
  background-color: var(--grey-color);
}

.page__entries-list .entries-list__item .article .article__group-link:focus-visible {
  outline: none;
}

.page__entries-list .entries-list__item .article .article__group-link:focus {
  color: var(--footer-black-color);
  background-color: var(--bcg-body-color);
}

.page__entries-list .entries-list__item .article .article__group-link:hover {
  color: var(--container-and-text-white-color);
  background-color: var(--dark-gray-color);
}

.page__entries-list .entries-list__item .article .article__group-link:active {
  background-color: var(--grey-color);
}

@keyframes entries-group-animation-block {
  from {}

  to {
    height: calc(100% - 40px);
    top: 0;
  }
}

@keyframes entries-group-hidden-text {
  from {
    font-size: 14px;
    padding-top: 0;
    opacity: 0;
  }

  to {
    visibility: visible;
    font-size: 14px;
    padding-top: 10px;
    opacity: 1;
  }
}

.article__interactive-block {
  width: 100%;
  padding: 17px 15px;
  opacity: 0.85;
  color: var(--primary-color-2);
  transition: var(--transistion);
  background-color: var(--container-and-text-white-color);
  cursor: pointer;
}

.page__entries-list .entries-list__item:focus-within {
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.article__interactive-block:focus-visible {
  transform: var(--transistion);
  outline: none;
}

.item__article:focus-visible .article__description {
  animation: entries-group-hidden-text .7s ease-in-out 1 forwards
}

.item__article:focus .article__interactive-block {
  animation: entries-group-animation-block .2s linear 1 forwards;
  opacity: 1;
  background-color: var(--dark-gray-color);
  color: var(--container-and-text-white-color);
}

.item__article:focus .article__description {
  visibility: visible;
  opacity: 1;
}

.item__article:hover .article__interactive-block {
  animation: entries-group-animation-block .2s linear 1 forwards;
}

.page__entries-list .entries-list__item:hover {
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.article__interactive-block:hover .article__description {
  animation: entries-group-hidden-text .7s ease-in-out 1 forwards
}

.article__interactive-block:active {
  color: var(--dark-gray-color);
  background-color: var(--container-and-text-white-color);
}