.media-box {
  position: relative;
  width: inherit;
  height: inherit;
  max-width: 100%;
  min-width: 100%;
}

@media only screen and (min-width: 500px) {
  .media-box {
    max-width: 50%;
    min-width: 50%;
    overflow: hidden;
  }
}

@media only screen and (min-width: 1023px) {
  .media-box {
    max-width: calc(100% / 3);
    min-width: calc(100% / 3);
    overflow: hidden;
  }
}

@media only screen and (max-width: 1023px) {
  .media-box {
    max-width: 50%;
    min-width: 50%;
    overflow: hidden;
  }
}

@media only screen and (max-width: 500px) {
  .media-box {
    max-width: 100%;
    min-width: 100%;
    overflow: hidden;
  }
}

.media-box a {
  color: var(--color-white);
}

.media-box-image {
  height: 100%;
  width: 100%;
}

.media-box-image img {
  width: 100%;
  transition: transform 0.2s;
}

.media-box:hover .media-box-image img,
.media-box:focus .media-box-image img {
  transform: scale(1.25);
}

.media-box-text {
  position: absolute;
  background: linear-gradient(rgba(80, 83, 31, 0.6), rgba(0, 0, 0, 0.8));
  width: 100%;
  height: 100%;
  padding: var(--space);
  color: var(--color-white);
  bottom: 0;
}

.media-box-text.gold {
  background: linear-gradient(rgba(255, 228, 30, 0.8), rgba(0, 0, 0, 0.8));
}

.media-box-text.teal {
  background: linear-gradient(rgba(175, 237, 201, 0.8), rgba(0, 0, 0, 0.8));
}

.media-box-text.blue {
  background: linear-gradient(rgba(102, 176, 255, 0.8), rgba(0, 0, 0, 0.8));
}

.media-box-text.brown {
  background: linear-gradient(rgba(80, 45, 14, 0.8), rgba(0, 0, 0, 0.8));
}

.media-box-content {
  position: absolute;
  bottom: var(--space-double);
  padding: 0 var(--space-three-quarter) 0 0;
  overflow-y: hidden;
  transition: all 0.25s ease;
}

.media-box-content .title {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-family: var(--font-heading);
}

@media only screen and (max-width: 769px) {
  .media-box-content .title {
    font-size: calc(1.1vw + 10px);
  }
}

@media only screen and (max-width: 500px) {
  .media-box-content .title {
    font-size: 1.5rem;
  }
}

.media-box-content .title::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin: 0 var(--space-one-half) 0 0;
}

.media-box-content.blog--podcast .title::before,
.media-box-content.podcast .title::before {
  font-family: var(--font-awesome);
  content: '\f2ce';
  font-size: 2.5rem;
  font-weight: normal;
}

.media-box-content.article .title::before,
.media-box-content.blog--article .title::before {
  font-family: var(--font-awesome);
  content: '\f1ea';
  font-size: 2.5rem;
  font-weight: normal;
}

.media-box-content.videos .title::before,
.media-box-content.blog--videos .title::before,
.media-box-content.blog--video .title::before {
  font-family: var(--font-awesome);
  content: '\f01d';
  font-size: 2.5rem;
  font-weight: normal;
}

.media-box-content.blog .title::before,
.media-box-content.blog--blog .title::before {
  font-family: var(--font-awesome);
  content: '\f14b';
  font-size: 2.5rem;
  font-weight: normal;
}

.media-box-content .tags a {
  margin: 0 -4px 0 0;
}

@media only screen and (max-width: 769px) {
  .media-box-content .tags a {
    font-size: calc(0.8vw + 10px);
  }
}

@media only screen and (max-width: 500px) {
  .media-box-content .tags a {
    font-size: 1rem;
  }
}

.media-box-content .tags a::before {
  content: ',';
  margin: 0 4px 0 0;
}

.media-box-content .tags a:first-of-type::before {
  content: '';
}
