/**
 * MODAL
*/
.c-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.33);
  transform: scale(1.2);
  transition: transform 0.4s cubic-bezier(0.47, 0, 0.745, 0.715), opacity 0.4s cubic-bezier(0.47, 0, 0.745, 0.715);
}

@media (min-width: 1024px) {
  .c-modal {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.c-modal.is-active {
  pointer-events: initial;
  opacity: 1;
  transform: scale(1);
}

.c-modal__inner {
  background-color: white;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
  position: relative;
  max-width: 800px;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 24px;
  max-height: calc(100vh - 100px);
  overflow-y: scroll;
}

@media (min-width: 640px) {
  .c-modal__inner {
    padding: 32px;
  }
}

@media (min-width: 1024px) {
  .c-modal__inner {
    padding: 48px;
  }
}

/**
 * MODAL
*/
.c-posts__anchor {
  display: inline-block;
  cursor: pointer;
}

.c-posts__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.c-posts__item-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: stretch;
  position: relative;
}

.c-posts__background, .c-posts__content {
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  .c-posts__background, .c-posts__content {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .c-posts__content {
    margin-left: 50%;
  }
}

.c-posts__excerpt, .c-posts__heading {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-posts__background {
  position: relative;
  padding-bottom: 56.25%;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .c-posts__background {
    padding-bottom: 0;
    position: absolute;
    left: 0;
    margin-bottom: 0;
  }
}

.c-posts__background div {
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
}
