@import url("https://fonts.googleapis.com/css2?family=Baloo+2&display=swap");
/* This pen */
body {
  font-family: "Baloo 2";
  font-size: 16px;
  text-rendering: optimizeLegibility;
  font-weight: initial;
}

a, a:hover {
  text-decoration: underline;
}

/* Cards */
.postcard {
  flex-wrap: wrap;
  display: flex;
  box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
  border-radius: 10px;
  margin: 0 0 2rem 0;
  overflow: hidden;
  position: relative;
  color: #18151f;
  background-color: #F0ECE3;
  margin-right: 2rem;
}

.postcard:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: rgba(0, 0, 0, 0.1);
  opacity: 1;
  border-radius: 10px;
}

.postcard .postcard__img_link {
  display: contents;
}

.postcard .postcard__img {
  max-height: 180px;
  width: 100%;
  object-fit: cover;
  position: relative;
}

.postcard:hover .postcard__img {
  transform: scale(1.1);
}

.postcard .postcard__title {
  /*font-size: 1.75rem;*/
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.postcard .postcard__bar {
  width: 50px;
  height: 6px;
  margin: 10px 0;
  border-radius: 5px;
  background-color: #ff8000;
  transition: width 0.2s ease;
}

.postcard:hover .postcard__bar {
  width: 100px;
}

.postcard .postcard__text {
  padding: 1.5rem;
  position: relative;
}

.postcard .postcard__preview-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: justify;
}
.postcard .postcard__tagbox {
  /*display: flex;*/
  flex-flow: row wrap;
  font-size: 14px;
  margin: 20px 0 0 0;
  padding: 0;
  justify-content: center;
}
.postcard .postcard__tagbox .tag__item {
  display: inline-block;
  background: rgba(83, 83, 83, 0.4);
  border-radius: 3px;
  padding: 2.5px 10px;
  margin: 0 5px 5px 0;
  cursor: default;
  user-select: none;
  transition: background-color 0.3s;
}

.postcard .postcard__tagbox .play:hover {
  background: #ff8000;
}


/* large screens: image on left and right of text */
/* otherwise (smalelr screens), image on top of text */
@media screen and (min-width: 769px) {
  .postcard {
    flex-wrap: inherit;
  }
  .postcard .postcard__img {
    max-width: 200px;
    max-height: 100%;
    transition: transform 0.3s ease;
  }
  .postcard .postcard__text {
    padding: 1.5rem;
    width: 100%;
  }
  .postcard:nth-child(2n+1) {
    flex-direction: row;
  }
  .postcard:nth-child(2n+0) {
    flex-direction: row-reverse;
  }
  .postcard:nth-child(2n+1) .postcard__text::before {
    left: -12px !important;
    transform: rotate(0deg);
  }
  .postcard:nth-child(2n+0) .postcard__text::before {
    right: -12px !important;
    transform: rotate(-0deg);
  }
}