
.load-more-btn {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  color: #868686;
  font-weight: 700;
  line-height: 1;
  transition: color 0.25s;
  font-size: 14px;
}

.load-more-btn:hover {
  color: var(--color-accent);
}

.load-more-btn span,
.load-more-btn svg {
  display: block;
}

.load-more-btn svg {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

@media screen and (min-width: 1559px) {
  .load-more-btn {
    font-size: 20px;
  }
  .load-more-btn svg {
    width: 58px;
    height: 58px;
  }
}
/* Favorite */
.btn-favorite-container {
  position: relative;
}

.btn-favorite {
  --base-color: var(--favorite-base-color, #454444);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--base-color);
  outline: 0 none;
  background-color: transparent;
  color: var(--base-color);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
  position: relative;
  z-index: 2;
}

.btn-favorite svg {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.btn-favorite:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-base);
}

.tooltip-message {
  position: absolute;
  top: 0;
  height: calc(100% + 16px);
  background: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  font-size: 12px;
  display: flex;
  align-items: center;
  color: #fff;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0s 0.25s;
}

.variant-page {
  left: 0;
  padding-left: 56px;
  padding-right: 16px;
  transform: translate(-8px, -8px);
}

.variant-card {
  right: 0;
  padding-right: 56px;
  padding-left: 16px;
  transform: translate(8px, -8px);
}

@media screen and (min-width: 1560px) {
  .tooltip-message {
    height: calc(100% + 32px);
    font-size: 16px;
  }
  .variant-page {
    padding-left: 80px;
    padding-right: 24px;
    transform: translate(-16px, -16px);
  }
  .variant-card {
    right: 0;
    padding-right: 80px;
    padding-left: 24px;
    transform: translate(16px, -16px);
  }
}
.btn-favorite-container:hover .tooltip-message {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s;
}

/*
.tooltip-message {
  position: absolute;
  left: 50%;
  bottom: 100%;
  background-color: var(--tooltip-bg-color, #282828);
  color: var(--tooltip-text-color, #fff);
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 8px;
  // transform: translate(-50%, -16px);
  transform: translate(-50%, -8px);
  opacity: 0;
  // visibility: hidden;

  transition: transform 0.25s,
              opacity 0.25s,
              visibility 0s 0.25s;

  box-shadow: 0 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-favorite:hover .tooltip-message {
  transform: translate(-50%, -12px);
  opacity: 1;
  // visibility: visible;

  transition: transform 0.25s,
              opacity 0.25s;
}

.tooltip-message::before {
  content: '';
  display: block;

  position: absolute;
  top: 100%;
  left: 50%;


  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: var(--tooltip-bg-color, #282828) transparent transparent transparent;
  transform: rotate(0deg) translateX(-50%);
}
*/
@media screen and (min-width: 1024px) {
  .btn-favorite {
    width: 40px;
    height: 40px;
  }
  .btn-favorite svg {
    width: 18px;
    height: 18px;
  }
}
@media screen and (min-width: 1560px) {
  .btn-favorite {
    width: 52px;
    height: 52px;
  }
  .btn-favorite svg {
    width: 24px;
    height: 24px;
  }
}
.story-list-layout {
  display: grid;
}

@media screen and (max-width: 479px) {
  .story-list-container {
    width: 100%;
    overflow: auto;
    padding-top: var(--header-height);
  }
  .story-list-layout {
    grid-template-columns: repeat(6, 84vw);
    gap: 16px;
  }
}
@media screen and (min-width: 480px) {
  .story-list-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  .story-list-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}
.story-top-preview {
  display: block;
}

.story-top-preview.story-top-preview_locked {
  cursor: pointer;
}

@media screen and (max-width: 559px) {
  .story-top-preview {
    --autor-fsize: 12px;
    --title-fsize: 14px;
  }
}
@media screen and (min-width: 560px) and (max-width: 1279px) {
  .story-top-preview {
    --autor-fsize: 14px;
    --title-fsize: 16px;
  }
}
@media screen and (min-width: 1280px) {
  .story-top-preview {
    --title-fsize: 21px;
  }
}
.story-top-picture {
  position: relative;
}

@media screen and (max-width: 479px) {
  @supports (aspect-ratio: 288/416) {
    .story-top-picture {
      aspect-ratio: 288/416;
    }
  }
  @supports not (aspect-ratio: 288/416) {
    .story-top-picture::before {
      content: "";
      display: block;
      width: 100%;
      height: 0;
      padding-top: 144.44%;
    }
  }
}
@media screen and (min-width: 480px) {
  @supports (aspect-ratio: 224/170) {
    .story-top-picture {
      aspect-ratio: 224/170;
    }
  }
  @supports not (aspect-ratio: 224/170) {
    .story-top-picture::before {
      content: "";
      display: block;
      width: 100%;
      height: 0;
      padding-top: 75%;
    }
  }
}
.story-top-desc {
  text-align: center;
  padding: 0.5rem var(--x-pad) 0.75rem;
}

@media screen and (min-width: 560px) {
  .story-top-desc {
    padding: 1rem var(--x-pad) 1.5rem;
  }
}
.story-top-author {
  font-size: var(--autor-fsize);
  font-weight: 300;
}

.story-top-title {
  font-size: var(--title-fsize);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.story-top-icon {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
}

.story-top-icon svg {
  display: block;
  margin-left: 8px;
  margin-right: 8px;
}

.story-top-icon::before,
.story-top-icon::after {
  content: "";
  display: block;
  background: #fff;
  height: 1px;
  flex: 1 0 auto;
}

@media screen and (pointer: fine) {
  .story-top-preview {
    position: relative;
  }
  .story-top-picture::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.15);
  }
  .story-top-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0 0.25s;
  }
  .story-top-preview:hover .story-top-desc {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s;
  }
  .story-top-link {
    display: inline-block;
  }
  .story-top-linkbox {
    margin-top: 1rem;
  }
}
@media screen and (pointer: none), screen and (pointer: coarse) {
  .story-top-preview {
    display: flex;
    width: 100%;
    height: 100%;
    flex-flow: column wrap;
  }
  .story-top-title {
    margin-bottom: 1rem;
  }
  .story-top-picture {
    width: 100%;
  }
  .story-top-desc {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto 1fr min-content;
  }
  .story-top-link,
  .story-top-icon {
    margin: 0;
  }
  .story-top-linkbox {
    align-self: end;
    padding-bottom: 1rem;
  }
}
.presentation-preview-list {
  display: grid;
  width: 100%;
}

@media screen and (max-width: 480px) {
  .presentation-preview-list {
    grid-template-columns: 100%;
    gap: 1.5rem;
  }
  .presentation-preview-item:not(:first-child) {
    border-top: 1px solid #3B3B3B;
    padding-top: 1.5rem;
  }
}
@media screen and (min-width: 479px) and (max-width: 767px) {
  .presentation-preview-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .presentation-preview-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .presentation-preview-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1559px) {
  .presentation-preview-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
@media screen and (min-width: 1560px) {
  .presentation-preview-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}
.collection-pic,
.publication-pic {
  display: block;
}

.collection-pic img {
  display: block;
  width: 100%;
  height: auto;
}

.publication-pic img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.locked-pic {
  position: relative;
  cursor: pointer;
}

.locked-pic::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
}

.locked-pic svg {
  display: block;
  width: 42px;
  height: 42px;
  height: auto;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}

@supports (aspect-ratio: 16/9) {
  .publication-pic img {
    height: auto;
    aspect-ratio: 16/9;
  }
}
@supports not (aspect-ratio: 16/9) {
  .publication-pic {
    position: relative;
  }
  .publication-pic::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 56.25%;
  }
  .publication-pic img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
}
.collection-desc,
.collection-title,
.collection-author {
  margin-top: 0.25em;
}

.collection-desc {
  line-height: 1.3;
}

.collection-date,
.collection-author {
  font-size: 12px;
  font-weight: 300;
}

.collection-title {
  font-weight: 600;
  transition: color 0.25s;
}

.collection-title span {
  cursor: pointer;
}

.collection-title:hover {
  color: var(--color-accent);
}

@media screen and (min-width: 1024px) {
  .locked-pic svg {
    left: 16px;
    top: 16px;
  }
}
@media screen and (min-width: 1280px) {
  .locked-pic svg {
    width: 52px;
    height: 52px;
  }
}
@media screen and (min-width: 560px) and (max-width: 1559px) {
  .collection-desc {
    margin-top: 1rem;
  }
  .collection-date,
  .collection-author {
    font-size: 14px;
  }
  .collection-title {
    font-size: 21px;
  }
}
@media screen and (min-width: 1560px) {
  .collection-desc {
    margin-top: 1.25rem;
  }
  .collection-date,
  .collection-author {
    font-size: 18px;
  }
  .collection-title {
    font-size: 32px;
  }
}
@supports selector(:has(a:hover)) {
  .collection-card:has(a:hover) .collection-title,
  .collection-card:has(.locked-pic:hover) .collection-title {
    color: var(--color-accent);
  }
}
@supports not selector(:has(a:hover)) {
  .collection-card:hover .collection-title {
    color: var(--color-accent);
  }
}
/* MODS */
.inactive-item .publication-pic {
  position: relative;
}

.inactive-item .publication-pic::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* MODS */
.story-preview-card {
  display: flex;
  flex-flow: column wrap;
  width: 100%;
  height: 100%;
  position: relative;
  --color-bg-desc: #363636;
  --color-bg-desc-hover: var(--color-accent);
  --color-text-info: #BABABA;
  --color-text-info-hover: #000;
  --color-text-title: #fff;
  --color-text-title-hover: #000;
}

.story-preview-card_white {
  --color-bg-desc: transparent;
  --color-bg-desc-hover: #363636;
  --color-text-info: #838383;
  --color-text-info-hover: #BABABA;
  --color-text-title: #111111;
  --color-text-title-hover: #FFFFFF;
}

.story-add-to-favorite {
  display: block;
  position: absolute;
  top: 1rem;
  right: 1rem;
  --favorite-base-color: var(--color-accent);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  transition: opacity 0.25s, visibility 0 0.25s, transform 0.25s;
}

.story-preview-card.is-favorite .btn-favorite {
  border-color: transparent;
}

.story-preview-card.is-favorite .story-add-to-favorite,
.story-preview-card:hover .story-add-to-favorite {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.25s, transform 0.25s;
}

.story-preview-card.is-favorite:hover .btn-favorite {
  border-color: var(--color-accent);
}

.story-preview-picture {
  display: block;
  width: 100%;
  overflow: hidden;
}

.story-preview-image {
  display: block;
  width: 100%;
  object-fit: cover;
  overflow: hidden;
}

@supports (aspect-ratio: 560/314) {
  .story-preview-image {
    aspect-ratio: 560/314;
    height: auto;
  }
}
@supports not (aspect-ratio: 560/314) {
  .story-preview-picture::before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
    padding-top: 56.07%;
  }
  .story-preview-image {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
}
.story-preview-desc {
  padding: 1rem;
  background-color: var(--color-bg-desc);
  flex: 1 auto;
  transition: background-color 0.25s;
}

.story-preview-card:hover .story-preview-desc {
  background-color: var(--color-bg-desc-hover);
}

.story-desc-full {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: space-between;
}

.story-preview-author {
  margin-top: 0.4em;
}

.story-preview-title {
  margin-top: 0.85em;
  margin-top: clamp(0.5rem, 0.85em, 1rem);
  font-weight: 600;
  line-height: 1.2;
}

.story-preview-title span {
  cursor: pointer;
}

.story-desc-info {
  color: var(--color-text-info);
}

.story-preview-card:hover .story-desc-info {
  color: var(--color-text-info-hover);
}

.story-preview-title {
  color: var(--color-text-title);
}

.story-preview-card:hover .story-preview-title {
  color: var(--color-text-title-hover);
}

.story-preview-icon svg {
  display: block;
  width: 100%;
}

@media screen and (max-width: 559px) {
  .story-desc-info {
    font-size: 12px;
  }
  .story-preview-title {
    font-size: 14px;
  }
  .story-preview-icon {
    width: 22px;
  }
}
@media screen and (min-width: 560px) and (max-width: 767px) {
  .story-desc-info {
    font-size: 12px;
  }
  .story-preview-title {
    font-size: 14px;
  }
  .story-preview-icon {
    width: 20px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .story-preview-desc {
    padding: 1.25rem;
  }
  .story-desc-info {
    font-size: 14px;
  }
  .story-preview-title {
    font-size: 16px;
  }
  .story-preview-icon {
    width: 26px;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .story-preview-desc {
    padding: 1rem 1.25rem 1.5rem;
  }
  .story-desc-info {
    font-size: 14px;
  }
  .story-preview-title {
    font-size: 16px;
  }
  .story-preview-icon {
    width: 24px;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1559px) {
  .story-preview-desc {
    padding: 1rem 1.5rem 2rem;
  }
  .story-desc-info {
    font-size: 14px;
  }
  .story-preview-title {
    font-size: 21px;
  }
  .story-preview-icon {
    width: 24px;
  }
}
@media screen and (min-width: 1560px) {
  .story-preview-desc {
    padding: 1.5rem 2rem 3.5rem;
  }
  .story-desc-info {
    font-size: 18px;
  }
  .story-preview-title {
    font-size: 28px;
  }
  .story-preview-icon {
    width: 40px;
  }
}
@media screen and (max-width: 559px) {
  .popup-filter {
    --pf-x-pad: 1.25rem;
    --close-size: 22px;
    --title-f-size: 18px;
    --fieldset-pad: 1.25rem;
  }
}
@media screen and (min-width: 560px) and (max-width: 767px) {
  .popup-filter {
    --pf-x-pad: 1.5rem;
    --close-size: 22px;
    --title-f-size: 20px;
    --fieldset-pad: 2rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .popup-filter {
    --pf-x-pad: 1.5rem 2rem;
    --close-size: 22px;
    --title-f-size: 20px;
    --fieldset-pad: 2rem;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .popup-filter {
    --pf-x-pad: 1.5rem;
    --close-size: 22px;
    --title-f-size: 20px;
    --fieldset-pad: 2rem;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1559px) {
  .popup-filter {
    --pf-x-pad: 1.5rem 2rem;
    --close-size: 22px;
    --title-f-size: 20px;
    --fieldset-pad: 2rem;
  }
}
@media screen and (min-width: 1560px) {
  .popup-filter {
    --pf-x-pad: 2rem 2.5rem;
    --close-size: 32px;
    --title-f-size: 32px;
    --fieldset-pad: 3rem;
  }
}
.popup-filter {
  position: fixed;
  z-index: 201;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 94vh;
  background: #fff;
  color: #000;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: min-content 1fr min-content;
  opacity: 0;
  visibility: hidden;
}

@supports (height: 94dvh) {
  .popup-filter {
    height: 94dvh;
  }
}
.popup-filter-active .popup-filter {
  opacity: 1;
  visibility: visible;
}

.popup-filter-head,
.popup-filter-actions {
  padding: var(--pf-x-pad);
}

.popup-filter-head {
  border-bottom: 1px solid #989898;
}

.popup-filter-body {
  overflow: auto;
  position: relative;
}

.popup-filter-actions {
  border-top: 1px solid #989898;
}

.popup-filter-preload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #868686;
}

.popup-filter-preload svg {
  display: block;
  width: 36px;
  height: 36px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-filter-preload svg rect {
  fill: currentColor;
}

.filter-popup-form {
  display: contents;
}

/* Top section */
.popup-filter-top {
  position: relative;
}

.popup-filter-title {
  text-align: center;
  line-height: 1;
  font-weight: 600;
  font-size: var(--title-f-size);
}

.popup-filter-close {
  display: block;
  width: var(--close-size);
  height: var(--close-size);
  color: #131313;
  margin: 0;
  padding: 0;
  border: 0 none;
  outline: 0 none;
  background: transparent none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

.popup-filter-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
}

/* End Top section */
/* Bottom section */
.popup-filter-actions {
  display: flex;
  align-items: center;
}

.filter-reset,
.filter-reset-apply {
  margin: 0;
  padding: 0;
  border: 0 none;
  outline: 0 none;
}

.filter-reset {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  background-color: transparent;
}

.filter-reset-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

.filter-reset-apply {
  display: block;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 1.5rem;
  color: var(--color-bb-black);
  background-color: var(--color-accent);
}

.filter-reset-apply:disabled {
  cursor: default;
  filter: grayscale(1);
}

@media screen and (max-width: 479px) {
  .popup-filter-actions {
    flex-flow: column-reverse nowrap;
  }
  .popup-filter-action {
    width: 100%;
    text-align: center;
  }
  .popup-filter-action:first-child {
    margin-top: 1rem;
  }
  .filter-reset-apply {
    display: block;
    width: 100%;
    text-align: center;
  }
}
@media screen and (min-width: 480px) {
  .popup-filter-actions {
    flex-flow: row nowrap;
    justify-content: space-between;
  }
}
@media screen and (min-width: 1560px) {
  .filter-reset {
    font-size: 20px;
  }
  .filter-reset-icon {
    width: 22px;
    height: 22px;
  }
  .filter-reset-apply {
    height: 56px;
    line-height: 56px;
    font-size: 20px;
  }
}
/* End Bottom section */
/*
 * FIELDSETS
 */
.filters-fieldset {
  padding: var(--fieldset-pad);
}

.filters-fieldset:not(:first-child) {
  border-top: 1px solid #989898;
}

.filters-fieldset-title {
  font-weight: 600;
}

/* Year's list */
/* Simple list */
.filters-simple-list-item:not(:first-child) {
  padding-top: 1rem;
  max-width: 418px;
}

@media screen and (max-width: 479px) {
  .filters-fieldset-title {
    font-size: 18px;
  }
  .filters-fieldset-body {
    margin-top: 1rem;
  }
  /* Year's list */
  .filter-years-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--x-pad);
  }
  .filter-years-group {
    display: contents;
  }
  .filter-years-group .ps-choice {
    display: block;
    width: 100%;
  }
  .filter-years-group .ps-choice-visual {
    justify-content: center;
  }
}
@media screen and (min-width: 480px) {
  /* Year's list */
  .filter-years-list {
    width: 100%;
    overflow: hidden;
  }
  .filter-years-group {
    width: calc(100% + 16px);
    display: flex;
    flex-wrap: wrap;
  }
  .filter-years-group:first-child {
    margin-top: -16px;
  }
  .filter-years-item {
    margin-top: 16px;
    margin-right: 16px;
  }
}
@media screen and (min-width: 480px) and (max-width: 1559px) {
  .filters-fieldset-title {
    font-size: 24px;
  }
  .filters-fieldset-body {
    margin-top: 1.5rem;
  }
}
@media screen and (min-width: 1560px) {
  .filters-fieldset-title {
    font-size: 32px;
  }
  .filters-fieldset-body {
    margin-top: 2rem;
  }
  .filters-simple-list {
    font-size: 20px;
  }
}
/* Tag's list */
.filters-categories-tab {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0 none;
  outline: 0 none;
  background: transparent none;
  text-align: left;
  color: #6F6F6F;
}

.filters-categories-tab.active {
  color: #000;
  font-weight: 600;
}

.filters-categories-head:not(:first-child) {
  margin-top: 0.5rem;
}

.filters-categories-items {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto;
  width: 100%;
  overflow: hidden;
  align-items: start;
}

.filter-list-of-tags {
  grid-column: 1/2;
  grid-row: 1/2;
  opacity: 0;
  width: calc(100% + 16px);
  margin-top: -16px;
  display: flex;
  flex-flow: wrap;
  height: 0;
  display: none;
}

.filter-list-of-tags.active {
  opacity: 1;
  display: flex;
  height: auto;
}

.filter-tag-choice {
  margin-top: 16px;
  margin-right: 16px;
}

.filter-selected {
  padding-top: 1rem;
  display: none;
}

.filter-selected.active {
  display: block;
}

.filter-selected-head {
  font-weight: 600;
  font-size: 14px;
}

.filter-selected-list {
  margin-top: 0.5rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.filter-selected-list li {
  margin-bottom: 16px;
  margin-right: 16px;
}

@media screen and (max-width: 559px) {
  .filters-categories-tab {
    font-size: 13px;
  }
}
@media screen and (max-width: 767px) {
  .filters-categories-items {
    margin-top: 1.5rem;
  }
}
@media screen and (min-width: 560px) {
  .filters-categories-tab {
    font-size: 14px;
  }
}
@media screen and (min-width: 768px) {
  .filters-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media screen and (min-width: 1024px) {
  .filters-categories {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }
}
@media screen and (min-width: 1280px) {
  .filters-categories {
    grid-template-columns: 25% 1fr;
  }
}
@media screen and (min-width: 1559px) {
  .filters-categories-tab {
    font-size: 18px;
  }
}
/* City filter */
.filters-city {
  position: relative;
  z-index: 10;
}

.filters-city-search {
  position: relative;
}

.filters-city-input {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  outline: 0 none;
  border: 1px solid #868686;
  margin: 0;
  padding: 0 0.5rem 0 3.5rem;
}

.filters-city-search-icon {
  display: block;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 10px;
  color: #868686;
  transform: translateY(-50%);
}

.filters-city-search-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.filters-city-mountpoint {
  position: relative;
  width: 100%;
  height: 0;
}

.filters-city-choicebox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  /* offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.3);
  /* TODO: add city filter */
  display: none;
}

.filters-city-choicebox.active {
  display: block;
}

.filters-city-apply {
  padding: 1rem;
  border-top: 1px solid #D9D9D9;
}

.filters-city-btn {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0 none;
  outline: 0 none;
  background: transparent;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}

.filters-city-btn:hover {
  text-decoration: underline;
}

.filters-city-candidates {
  max-height: 200px;
  overflow: auto;
}

.filters-city-candidates-list {
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.filters-city-candidates-item {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

.filters-city-candidates-item.is-hidden {
  display: none;
}

.ps-checkbox__label.ps-city-label {
  font-weight: 300;
}

.ps-checkbox__input:checked ~ .ps-checkbox__label.ps-city-label {
  font-weight: 600;
}

.filters-inside {
  --border-color: #3B3B3B;
}

.fi-btn {
  margin: 0;
  padding: 0;
  border: 0 none;
  outline: 0 none;
  background: transparent;
}

.filters-inside {
  border-top: 1px solid var(--border-color);
}

.filters-inside-box {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.remove-filter {
  padding-left: 1.25rem;
  line-height: 1;
  position: relative;
}

.remove-filter::before {
  content: "✕";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 200;
}

.filters-inside-reset {
  font-size: 18px;
}

.remove-filter-item.remove-filter {
  font-size: 14px;
  padding-left: 1rem;
  text-align: left;
}

.filters-inside-title {
  color: #868686;
  font-size: 14px;
  font-weight: 300;
}

@media screen and (max-width: 559px) {
  .filters-inside-listbox,
  .filters-inside-category:not(:first-child) {
    margin-top: 1.5rem;
  }
  .filters-inside-list {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
  }
  .filters-inside-list li {
    margin-top: 0.5rem;
  }
}
@media screen and (min-width: 560px) {
  .filters-inside-listbox {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, auto);
  }
  .filters-inside-list {
    margin-top: 1rem;
  }
  .filters-inside-list li:not(:first-child) {
    margin-top: 0.5rem;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .filters-inside-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .filters-inside-listbox {
    grid-column: 2/4;
    margin-top: 0;
  }
}
@media screen and (min-width: 1280px) {
  .filters-inside-box {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .filters-inside-listbox {
    margin-top: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
  }
  .filters-inside-category {
    padding-right: 24px;
  }
}
@media screen and (min-width: 1560px) {
  .filters-inside-box {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .filters-inside-reset {
    font-size: 20px;
  }
  .filters-inside-title {
    font-size: 16px;
  }
  .remove-filter.remove-filter-item {
    font-size: 18px;
    padding-left: 1.25rem;
  }
}
.story_count {
  margin-bottom: var(--section-content-m-top);
}

@media screen and (min-width: 1280px) {
  .story_count {
    font-size: 18px;
  }
}
@media screen and (min-width: 1560px) {
  .story_count {
    font-size: 20px;
  }
}
