:root {
  --current-color: #fff;
}

.block-link-animate:hover h2 {
  background-position: right 100% bottom;
  background-size: 100% 2px;
  transition: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), background-position 0s;
}

.block-link-animate h2 {
  background-image: linear-gradient(90deg, var(--current-color), var(--current-color));
  background-position: left 100% bottom;
  background-size: 0% 2px;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), background-position 0s;
}

.front-top {
  position: relative;
  padding-top: 40vh;
}
.front-top .wrap-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.front-top h1 {
  font-size: 30px;
  color: #333;
  text-shadow: 0 0 2px #a58823, 0 0 3px #FFF;
}
.front-top .text {
  position: absolute;
  width: 70%;
  right: 10%;
  padding-top: 30px;
  font-family: Georgia;
  font-size: 20px;
  font-style: italic;
  text-align: right;
  color: #000;
}
.front-top .wrap-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.front-top .decoration {
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 30px;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#dab5a3+0,f1edf4+95,f1edf4+100&0+0,1+95,1+95,1+100 */ /* FF3.6-15 */ /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(218, 181, 163, 0) 0%, rgb(241, 227, 234) 95%, rgb(241, 227, 234) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00dab5a3", endColorstr="#f1edf4", GradientType=0); /* IE6-9 */
  box-shadow: 0 20px 10px rgb(241, 237, 234);
}

.cover {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (min-width: 576px) {
  .front-top {
    padding-top: 0;
    height: 400px;
  }
  .front-top h1 {
    font-size: 44px;
  }
  .front-top .text {
    font-size: 24px;
  }
}
@media (min-width: 1320px) {
  .front-top .text {
    font-size: 24px;
    margin-right: 15%;
  }
}
.card-news-list {
  display: grid;
  max-width: 1320px;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px 10px;
  grid-template-rows: auto;
  justify-self: center;
  margin-bottom: 20px;
}
.card-news-list .sidebar {
  display: none;
}

.card-category-list {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-category-list .card-news {
  width: 100%;
  margin: 0 auto 40px;
  padding-top: 125%;
}
.card-category-list .card-news .content {
  text-align: center;
}
.card-category-list .card-news h2 {
  font-size: 20px;
  text-align: center;
  text-shadow: 0 0 1px #000, 0 0 3px #333, 0 0 5px #333;
}

.card-news {
  position: relative;
  padding-top: 170%;
  padding-top: 125%;
  border-radius: 6px;
  overflow: hidden;
}
.card-news .link-wrap-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-news img {
  width: 100%;
  height: auto;
  transition: transform 0.4s;
}
.card-news:hover img {
  transform: scale(1.1);
}
.card-news .content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0.45) 75%, rgba(0, 0, 0, 0));
}
.card-news:nth-child(even) .content {
  top: 0;
  bottom: auto;
  padding: 10px 10px 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0.45) 75%, rgba(0, 0, 0, 0));
}
.card-news h2 {
  display: inline;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 2px #333;
}
@media (min-width: 440px) {
  .card-news h2 {
    font-size: 20px;
  }
  .card-news .card-meta {
    font-size: 16px;
    padding: 6px 8px;
  }
  .card-news .content {
    padding: 30px 10px 10px;
  }
  .card-news:nth-child(even) .content {
    padding: 10px 10px 30px;
  }
}
@media (min-width: 576px) {
  .card-news .card-meta {
    font-size: 16px;
  }
}
@media (min-width: 800px) {
  .card-news:nth-child(odd) .content {
    padding: 40px 15px 15px;
  }
  .card-news:nth-child(even) .content {
    padding: 15px 15px 40px;
  }
}
@media (min-width: 900px) {
  .card-news h2 {
    font-size: 20px;
  }
}

.card-meta {
  display: inline-block;
  background: rgba(232, 22, 57, 0.6666666667);
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 5px;
}
.card-meta:not(last-child) {
  margin-right: 5px;
}

.card-meta-date {
  background: rgba(252, 253, 149, 0.8549019608);
  color: #333;
  margin-top: 1px;
  margin-bottom: 0px;
}

@media (min-width: 440px) {
  .card-category-list .card-news h2 {
    font-size: 24px;
  }
  .card-meta {
    margin-bottom: 5px;
  }
  .card-meta-date {
    margin-top: 10px;
  }
}
@media (min-width: 650px) {
  .card-category-list {
    grid-template-columns: 1fr 1fr;
  }
  .card-category-list .card-news .card-meta {
    font-size: 12px;
  }
  .card-category-list .card-news:nth-child(odd) .content {
    padding: 40px 20px 20px;
  }
  .card-category-list .card-news:nth-child(even) .content {
    padding: 20px 20px 40px;
  }
  .card-category-list .card-news h2 {
    font-size: 28px;
  }
  .card-news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px 10px;
    grid-template-rows: auto;
  }
  .card-news-list .sidebar {
    width: 300px;
    grid-column: 2/3;
    grid-row: 1/7;
    background: rgba(134, 183, 254, 0.2666666667);
  }
  .card-news-list .sidebar .re {
    width: 100%;
    height: 100px;
    background: rosybrown;
  }
  .card-news {
    margin-bottom: 0;
  }
}
@media (min-width: 800px) {
  .card-news-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .card-news-list .sidebar {
    position: relative;
    width: 300px;
    grid-column: 3/4;
    grid-row: 1/4;
  }
  .card-news-list.card-category-list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .card-category-list .card-news:nth-child(odd) .content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0));
  }
  .card-category-list .card-news:nth-child(even) .content {
    top: 0;
    bottom: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0));
  }
}
@media (min-width: 1200px) {
  .card-news-list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 40px 20px;
  }
  .card-news-list .sidebar {
    position: relative;
    display: block;
    width: 300px;
    grid-column: 4/5;
    grid-row: 1/3;
  }
}
