@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta-italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta-bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta-bold-italic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Recta';
  src: url("../../../assets/fonts/recta-light-italic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Helveticaneue';
  src: url("../../../assets/fonts/helveticaneue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Helveticaneue';
  src: url("../../../assets/fonts/helveticaneue-bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Helveticaneue';
  src: url("../../../assets/fonts/helveticaneue-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Simoncini';
  src: url("../../../assets/fonts/simoncinigaramond.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Simoncini';
  src: url("../../../assets/fonts/simoncinigaramond-italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Simoncini';
  src: url("../../../fonts/simoncinigaramond-bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

.main::after {
  clear: both;
  content: "";
  display: block;
}

.cases {
  width: calc(100% - 40px);
  float: left;
  margin-left: 20px;
}

@media only screen and (min-width: 768px) {
  .cases {
    width: calc(100% - 40px);
    float: left;
    margin-left: 20px;
  }
}

.tags {
  width: calc(100%);
  float: left;
  margin-left: 0;
  display: flex;
  font-family: "Helveticaneue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  justify-content: center;
  margin-bottom: 60px;
}

.tags-info {
  display: inline;
  font-weight: 600;
  margin-right: 20px;
}

.tags-list {
  display: inline;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: small;
}

.tags-list li {
  border-radius: 2px;
  border: 1px solid #8c191c;
  display: inline-block;
  line-height: 1;
  margin-bottom: 5px;
  padding: 5px 12px 6px 12px;
}

.tags-list .is-open {
  background: #8c191c;
}

.tags-list .is-open a {
  color: #fff;
}

.search {
  display: flex;
  justify-content: flex-end;
}

.search::after {
  clear: both;
  content: "";
  display: block;
}

.search-input {
  border-bottom: 1px solid #fff;
  border-radius: 0;
  border: none;
  color: #d2d7d3;
  font-family: "Helveticaneue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 24px;
  font-weight: 600;
  height: auto;
  line-height: 1.5;
  margin-bottom: 30px;
  outline: none;
  transition: .3s all ease-in-out;
  width: 100%;
}

.search-input:focus {
  color: #111;
}

.cases-wrapper {
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}

.cases-wrapper::after {
  clear: both;
  content: "";
  display: block;
}

.cases-grid::after {
  clear: both;
  content: "";
  display: block;
}

@media only screen and (min-width: 768px) {
  .cases-grid {
    width: calc(100%);
    float: left;
    margin-left: 0;
  }
}

.cases-grid-item {
  width: calc(50% - 30px);
  float: left;
  margin-left: 20px;
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: small;
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
}

@media only screen and (min-width: 480px) {
  .cases-grid-item {
    width: calc(33.33333333% - 26.66666667px);
    float: left;
    margin-left: 20px;
  }
}

@media only screen and (min-width: 768px) {
  .cases-grid-item {
    width: calc(20% - 24px);
    float: left;
    margin-left: 20px;
  }
}

@media only screen and (min-width: 1024px) {
  .cases-grid-item {
    width: calc(16.66666667% - 23.33333333px);
    float: left;
    margin-left: 20px;
  }
}

.cases-grid-item .name {
  white-space: nowrap;
}

.newsfeed-wrapper::after {
  clear: both;
  content: "";
  display: block;
}

@media only screen and (min-width: 768px) {
  .newsfeed-wrapper {
    width: calc(33.33333333%);
    float: left;
    margin-left: 0;
  }
}

.newsfeed-wrapper h1,
.newsfeed-wrapper h2 {
  margin: 0 0 20px 20px;
}

.newsfeed {
  width: calc(100% - 40px);
  float: left;
  margin-left: 20px;
  border-radius: 2px;
  border: 1px solid #8c191c;
  margin-bottom: 20px;
  overflow: auto;
  padding: 0 10px;
  height: auto;
}

.newsfeed ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.newsfeed li {
  margin-top: 20px;
  padding-bottom: 20px;
}

.newsfeed li:not(:last-child) {
  border-bottom: 1px solid #8c191c;
}

.newsfeed .feed-author {
  display: block;
}

.newsfeed .feed-title {
  font-family: "Helveticaneue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 600;
}

.newsfeed .feed-body {
  margin-top: 10px;
  display: flex;
  font-size: 14px;
}

.newsfeed .feed-image {
  border-radius: 2px;
  margin: 5px 0;
  max-width: 80px;
  overflow: hidden;
}

.newsfeed .feed-image img {
  width: 100%;
  padding-right: 10px;
}

.newsfeed .feed-text {
  flex: 3;
}

.cases-grid-item:not(.is-all).is-hidden .item-image {
  background-image: none !important;
  background-color: #333;
}

.cases-grid-item:not(.is-all).is-hidden .first-letter,
.cases-grid-item:not(.is-all).is-hidden .name {
  color: #fff !important;
  opacity: 0;
  transition: all 0.3s ease;
}

.cases-grid-item:not(.is-all).is-hidden .overlay {
  opacity: 0;
}

.cases-grid-item:not(.is-all).is-hidden:hover .first-letter,
.cases-grid-item:not(.is-all).is-hidden:hover .name {
  opacity: 1;
}

a {
  width: 100%;
}

.item-image {
  align-items: center;
  background-position: center;
  background-size: cover;
  border-radius: 2px;
  color: #111;
  display: flex;
  flex-direction: row;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  padding-top: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.item-image .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  z-index: 0;
}

.item-image.is-open,
.item-image:hover {
  color: #fff;
}

.item-image.is-open .overlay,
.item-image:hover .overlay {
  background: rgba(0, 0, 0, 0.1);
}

.item-image:hover {
  cursor: pointer;
}

.no-image {
  background: #d2d7d3;
}

.no-image.is-open {
  background: #8c191c;
}

.first-letter {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Helveticaneue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 80px;
  font-weight: 600;
  height: 80%;
  line-height: 1;
  z-index: 10;
}

.name-wrapper {
  z-index: 10;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  align-items: center;
}

.name {
  border-top: 1px solid;
  bottom: 0;
  height: 20%;
  margin: 0 auto;
  padding: .5em;
  z-index: 10;
}
