.tax-type .wrapper,
.post-type-archive-publications .wrapper {
  padding: 80px var(--out-padding);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
}

/** Years Filter **/
.tax-type .wrapper .year-filter,
.post-type-archive-publications .wrapper .year-filter {
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
}
.tax-type .wrapper .year-filter .years,
.post-type-archive-publications .wrapper .year-filter .years {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row nowrap;
          flex-flow: row nowrap;
  white-space: nowrap;
  gap: 10px;
  overflow: auto;
  margin-bottom: 30px;
  padding-bottom: 5px;
}
.tax-type .wrapper .year-filter .years .btn,
.post-type-archive-publications .wrapper .year-filter .years .btn {
  padding: 0 6px;
  text-decoration: none;
  outline: 0;
  cursor: pointer;
  color: #0c9099;
  font-size: 20px;
  line-height: 28px;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.tax-type .wrapper .year-filter .years .btn:hover,
.post-type-archive-publications .wrapper .year-filter .years .btn:hover {
  color: #3cc0c9;
}
.tax-type .wrapper .year-filter .years .btn.active,
.post-type-archive-publications .wrapper .year-filter .years .btn.active {
  color: #fff;
}

/* Scrollbars */
.tax-type .wrapper .year-filter .years::-webkit-scrollbar,
.post-type-archive-publications .container::-webkit-scrollbar,
.post-type-archive-publications
  .wrapper
  .year-filter
  .years::-webkit-scrollbar {
  height: 3px;
  width: 6px;
}
.tax-type .wrapper .year-filter .years::-webkit-scrollbar-track,
.post-type-archive-publications .container::-webkit-scrollbar-track,
.post-type-archive-publications
  .wrapper
  .year-filter
  .years::-webkit-scrollbar-track {
  background: #193855;
}
.tax-type .wrapper .year-filter .years::-webkit-scrollbar-thumb,
.post-type-archive-publications .container::-webkit-scrollbar-thumb,
.post-type-archive-publications
  .wrapper
  .year-filter
  .years::-webkit-scrollbar-thumb {
  background: #069aa4;
}
.tax-type .wrapper .year-filter .years::-webkit-scrollbar-thumb:hover,
.post-type-archive-publications .container::-webkit-scrollbar-thumb:hover,
.post-type-archive-publications
  .wrapper
  .year-filter
  .years::-webkit-scrollbar-thumb:hover {
  background: #067a84;
}

.tax-type .wrapper .year-filter .yearBox,
.post-type-archive-publications .wrapper .container .yearBox {
  border-radius: 6px 6px 0px 0px;
  border-bottom: 1px solid #069aa4;
  background: #193855;
  display: flex;
  justify-content: center;
  padding: 6px 20px;
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
}

/** Publications Container **/
.post-type-archive-publications .container {
  order: 2;
  display: grid;
  gap: 30px 0;
  max-height: 740px;
  overflow: auto;
  position: relative;
}

/** Publications **/
.publications {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0px 20px;
  border-bottom: 1px solid #069aa4;
  padding-bottom: 30px;
  height: 100%;
  box-sizing: border-box;
}
.publications img {
  width: 100%;
  max-width: 110px;
  height: 110px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px 0;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  grid-area: 1 / 1 / 1 / 1;
}
.publications .pub_title {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
  grid-area: 1 / 2 / 1 / 2;
}
.publications .pub_desc {
  margin-top: 15px;
  font-weight: 700;
  grid-area: 2 / 1 / 2 / 3;
}
.publications .pub_authors {
  -ms-grid-column-span: 2;
  grid-area: 3 / 1 / 3 / 3;
}
.publications .links {
  margin-top: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  gap: 4px 40px;
  grid-area: 4 / 1 / 4 / 3;
}
.publications .links a {
  position: relative;
  text-decoration: none;
  color: #72ede1;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/** Pseudoelements **/
.publications .links a.article::before,
.publications .links a.pdf::before,
.publications .links a.github::before {
  margin: 2px 5px 0 0;
}
.publications .links a.article::after,
.publications .links a.pdf::after,
.publications .links a.github::after {
  margin: 2px 0 0 8px;
  -webkit-transform: translateX(0px);
      -ms-transform: translateX(0px);
          transform: translateX(0px);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -o-transition: transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.publications .links a.article:hover::after,
.publications .links a.pdf:hover::after,
.publications .links a.github:hover::after {
  -webkit-transform: translateX(3px);
      -ms-transform: translateX(3px);
          transform: translateX(3px);
}
.publications .links a.article::before {
  content: url("/wp-content/themes/tl/assets/icons/publications/article_icon.png");
}
.publications .links a.pdf::before {
  content: url("/wp-content/themes/tl/assets/icons/publications/pdf_icon.png");
}
.publications .links a.github::before {
  content: url("/wp-content/themes/tl/assets/icons/publications/github_icon.png");
}
.publications .links a.article::after,
.publications .links a.pdf::after,
.publications .links a.github::after {
  content: url("/wp-content/themes/tl/assets/icons/publications/arrow.png");
}

/** Responsive **/
@media screen and (min-width: 760px) {
  .post-type-archive-publications .container {
    padding-right: 8px;
  }
  .publications img {
    grid-area: 1 / 1 / 5 / 1;
  }
  .publications .pub_desc {
    margin-top: unset;
    grid-area: 2 / 2 / 2 / 2;
  }
  .publications .pub_authors {
    grid-area: 3 / 2 / 3 / 2;
  }
  .publications .links {
    margin-top: unset;
    grid-area: 4 / 2 / 4 / 2;
  }
}
