/*
* Global button styling
*/
/*
* Breakpoint debugging
*/
/*
* MEDIA QUERIES
* Breakpoints for responsive sites
*/
/*
* SASS Parent append
* Useful if you want to add an append to the parent without writing it out again
* Usage: @include parent-append(":hover")
* Source: https://codepen.io/imkremen/pen/RMVBvq
*/
/*
* Skew
* Useful mixing to create skewed edges
* Usage: @include angle-edge(bottomright, 3deg, topleft, 3deg, #fff);
* Source: http://www.hongkiat.com/blog/skewed-edges-css/
*/
@keyframes modal-video {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-video-inner {
  from {
    transform: translate(0, 100px);
  }
  to {
    transform: translate(0, 0);
  }
}
.modal-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  cursor: pointer;
  opacity: 1;
  animation-timing-function: ease-out;
  animation-duration: 0.3s;
  animation-name: modal-video;
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -ms-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}

.modal-video-close {
  opacity: 0;
}
.modal-video-close .modal-video-movie-wrap {
  -webkit-transform: translate(0, 100px);
  -moz-transform: translate(0, 100px);
  -ms-transform: translate(0, 100px);
  -o-transform: translate(0, 100px);
  transform: translate(0, 100px);
}

.modal-video-body {
  max-width: 960px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.modal-video-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
@media (orientation: landscape) {
  .modal-video-inner {
    padding: 10px 60px;
    box-sizing: border-box;
  }
}

.modal-video-movie-wrap {
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 56.25%;
  background-color: #333;
  animation-timing-function: ease-out;
  animation-duration: 0.3s;
  animation-name: modal-video-inner;
  -webkit-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -moz-transition: -moz-transform 0.3s ease-out;
  -ms-transition: -ms-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
}
.modal-video-movie-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-video-close-btn {
  position: absolute;
  z-index: 2;
  top: -45px;
  right: 0;
  display: inline-block;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border: none;
  background: transparent;
}
@media (orientation: landscape) {
  .modal-video-close-btn {
    top: 0;
    right: -45px;
  }
}
.modal-video-close-btn:before {
  transform: rotate(45deg);
}
.modal-video-close-btn:after {
  transform: rotate(-45deg);
}
.modal-video-close-btn:before, .modal-video-close-btn:after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -1px;
  background: #fff;
  border-radius: 5px;
  margin-top: -6px;
}

.block-posts {
  display: grid;
  grid-gap: 2rem;
}
.block-posts .col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.block-posts .post-excerpt {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #262626;
  margin-top: 3rem;
}
.block-posts .post-excerpt .image-holder {
  overflow: hidden;
  max-height: 340px;
}
.block-posts .post-excerpt .image-holder img {
  transition: all 1s ease-in-out;
}
.block-posts .post-excerpt.small {
  padding-top: 3.5rem;
  border-top: 1px solid var(--wp--preset--color--primary);
}
.block-posts .post-excerpt img {
  width: 100%;
  aspect-ratio: 1.68/1;
  object-fit: cover;
}
.block-posts .post-excerpt .meta {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #a4a3a2;
  margin: 0 0 0.6ch 0;
}
.block-posts .post-excerpt .meta .cat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  margin-right: 0.5ch;
  padding: 0.6ch 1ch 0.2ch 1ch;
  color: #fff;
  background: var(--wp--preset--color--secondary);
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}
.block-posts .post-excerpt .meta svg {
  width: 13px;
  height: 13px;
  margin: -4px 0 0 7px;
}
.block-posts .post-excerpt time {
  text-transform: uppercase;
  font-size: 1.4rem;
}
.block-posts .post-excerpt h3 {
  transition: color 0.2s ease-in-out;
  font-size: 2.2rem;
  font-weight: 300;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #000;
  font-weight: 500;
}
.block-posts .post-excerpt:hover, .block-posts .post-excerpt:active, .block-posts .post-excerpt:focus {
  text-decoration: none;
}
.block-posts .post-excerpt:hover .image-holder img, .block-posts .post-excerpt:active .image-holder img, .block-posts .post-excerpt:focus .image-holder img {
  transform: scale(1.2);
}
.block-posts .post-excerpt:hover h3, .block-posts .post-excerpt:active h3, .block-posts .post-excerpt:focus h3 {
  color: var(--wp--preset--color--secondary);
}
.block-posts .post-excerpt:hover .meta .cat, .block-posts .post-excerpt:active .meta .cat, .block-posts .post-excerpt:focus .meta .cat {
  background: var(--wp--preset--color--primary);
}
