/* IMAGE HOVER ICON
-----------------------------*/

.image-hover {
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
}

.image-hover img {
	width: 100%;
	height: auto;
	top: 0;
	position: relative;
	left: 0;
	-webkit-transition: -webkit-transform 0.3s;
	-moz-transition: -moz-transform 0.3s;
	-o-transition: -o-transform 0.3s;
	transition: transform 0.3s;
}

.image-hover .hover-overlay {
	background: rgba(0, 0, 0, 0.5);
	height: 100%;
	left: 0;
	top: 0;
	position: absolute;
	width: 100%;
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

.image-hover .hover-buttons {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.image-hover .hover-buttons .fa {
	background: rgb(256, 256, 256);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	color: rgba(50, 50, 50, 0.9);
	display: inline-block;
	margin: 0 1px;
	line-height: 40px;
	font-size: 16px;
	text-align: center;
	text-decoration: none;
	width: 40px;
	height: 40px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
	opacity: 0;
}

.image-hover:hover img {
	-webkit-transform: scale(1.3);
	-moz-transform: scale(1.3);
	-ms-transform: scale(1.3);
	-o-transform: scale(1.3);
	transform: scale(1.3);
}

.image-hover:hover .hover-overlay {
	opacity: 1;
}

.image-hover:hover .hover-buttons .fa {
	opacity: 1;
}

/* IMAGE SWITCH ON HOVER
-----------------------------*/

.image-switch {
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
}

.image-switch img:nth-child(1) {
	opacity: 1;
	transition: all 0.5s ease-out 0s;
}

.image-switch:hover img:nth-child(1) {
	opacity: 0;
}

.image-switch img:nth-child(2){
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: all 0.5s ease-out 0s;
}

.image-switch:hover img:nth-child(2) {
	opacity: 1;
}

.image-switch .image-switch-icon {
	color: #666;
	background-color: #fff;
	font-size: 16px;
	height: 45px;
	width: 45px;
	padding: 18px;
	border-radius: 100px 0 0;
	display: block;
	opacity: 0;
	position: absolute;
	right: 0;
	bottom: 0;
	transition: all 0.3s ease 0s;
	text-decoration: none;
}

.image-switch .image-switch-icon:hover {
	color: #333;
	text-decoration: none;
}

.image-switch:hover .image-switch-icon {
	opacity: 1;
}

/* ANGLED PROMO SECTIONS - CLIP PATH
-----------------------------*/

.angled-clip section:nth-child(odd) {
	position: relative;
	height: 300px;
	-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vw));
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vw));
}

.angled-clip section:nth-child(even) {
	margin-top: -5vw;
}

.angled-clip section > div {
	margin: 0;
	padding: 100px 0;
	color: #fff;
	text-align: center;
}

/* ANGLED PROMO SECTIONS - SKEW
-----------------------------*/

.angled-skew section {
	position: relative;
	height: 300px;
	overflow: hidden;
	margin-top: 0.5%;
}

.angled-skew section .skew-bg {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: skewY(-6deg);
	transform-origin: top left;
}

.angled-skew section:nth-child(even) {
	margin-top: -10%;
}

.angled-skew section:nth-child(even) .skew-bg {
	transform-origin: bottom right;
}

.angled-skew section .skew-bg + div {
	margin: 0;
	padding: 80px 0;
	text-align: center;
	position: relative;
	color: #fff;
}

.angled-skew section:nth-child(even) .skew-bg + div {
	padding: 150px 0;
}

/* ANGLED HERO SECTIONS - CLIP PATH
-----------------------------*/

:root {
  --diagonal-section-offset: 50px;
}

.diagonal-section {
  position: relative;
  z-index: 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@supports (clip-path: inset(50%)) {
  .diagonal-section, .diagonal-section-top.diagonal-section-bottom {
    padding-top: calc(var(--diagonal-section-offset)/2);
    padding-bottom: calc(var(--diagonal-section-offset)/2);
    clip-path: polygon(0% 0%, 100% var(--diagonal-section-offset), 100% 100%, 0% calc(100% - var(--diagonal-section-offset)));
  }

  .diagonal-section--flip-x {
    clip-path: polygon(0% var(--diagonal-section-offset), 100% 0%, 100% calc(100% - var(--diagonal-section-offset)), 0% 100%);
  }

  .diagonal-section-top {
    padding-top: calc(var(--diagonal-section-offset)/2);
    clip-path: polygon(0% 0%, 100% var(--diagonal-section-offset), 100% 100%, 0% 100%);

  }

  .diagonal-section-top--flip-x {
    clip-path: polygon(0% var(--diagonal-section-offset), 100% 0%, 100% 100%, 0% 100%);

    &.diagonal-section-bottom {
      clip-path: polygon(0% var(--diagonal-section-offset), 100% 0%, 100% 100%, 0% calc(100% - var(--diagonal-section-offset)));
    }
  }

  .diagonal-section-bottom {
    padding-bottom: calc(var(--diagonal-section-offset)/2);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% calc(100% - var(--diagonal-section-offset)));
  }

  .diagonal-section-bottom--flip-x {
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - var(--diagonal-section-offset)), 0% 100%);

    &.diagonal-section-top {
      clip-path: polygon(0% 0%, 100% var(--diagonal-section-offset), 100% calc(100% - var(--diagonal-section-offset)), 0% 100%);
    }
  }

  .diagonal-section-top--flip-x.diagonal-section-bottom--flip-x {
    clip-path: polygon(0% var(--diagonal-section-offset), 100% 0%, 100% calc(100% - var(--diagonal-section-offset)), 0% 100%);
  }
}

/* VIDEO SECTION
-----------------------------*/

section.video-section {
  position: relative;
  background-color: black;
  height: 75vh;
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}

section.video-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

section.video-section .container {
  position: relative;
  z-index: 2;
}

section.video-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 1;
}

@media (pointer: coarse) and (hover: none) {
  section.video-section {
    background: url('https://source.unsplash.com/XT5OInaElMw/1600x900') black no-repeat center center scroll;
  }
  section.video-section video {
    display: none;
  }
}

/* PRICING SECTION
-----------------------------*/

section.pricing .card {
  border: none;
  border-radius: 1rem !important;
  transition: all 0.2s;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

section.pricing .card .card-body {
  border-radius: 1rem !important;
}

section.pricing hr {
  margin: 1.5rem 0;
}

section.pricing .card-title {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  letter-spacing: .1rem;
  font-weight: bold;
}

section.pricing .card-price {
  font-size: 3rem;
  margin: 0;
}

section.pricing .card-price .period {
  font-size: 0.8rem;
}

section.pricing ul li {
  margin-bottom: 1rem;
}

section.pricing .text-muted {
  opacity: 0.7;
}

section.pricing .btn {
  font-size: 80%;
  border-radius: 5rem;
  letter-spacing: .1rem;
  font-weight: bold;
  padding: 1rem;
  opacity: 0.7;
  transition: all 0.2s;
}

/* Hover Effects on Card */

@media (min-width: 992px) {
  section.pricing .card:hover {
    margin-top: -.25rem;
    margin-bottom: .25rem;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.3);
  }
  section.pricing .card:hover .btn {
    opacity: 1;
  }
}

/* WAVE DIVIDERS
-----------------------------*/

.wave-divider-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.wave-divider-top svg {
	position: relative;
	display: block;
	width: calc(135% + 1.3px);
	height: 50px;
}

.wave-divider-top .shape-fill {
	fill: #fff;
}

.wave-divider-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	transform: rotate(180deg);
}

.wave-divider-bottom svg {
	position: relative;
	display: block;
	width: calc(135% + 1.3px);
	height: 50px;
}

.wave-divider-bottom .shape-fill {
	fill: #fff;
}

/* ARTICLE POST
-----------------------------*/

article.post {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.post-bg {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
	transition: all 0.7s;
}

.post:hover .post-bg,
.post:focus .post-bg {
	transform: scale(1.2);
}

.post-bg::after {
	content: '';
	background: rgba(0, 0, 0, 0.5);
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.7s;
}

.post:hover .post-bg::after,
.post:focus .post-bg::after {
	background: rgba(0, 0, 0, 0.7);
}

.post-title, .post-excerpt, .post-read-more, .post-date-time {
	position: absolute;
	left: 8%;
	right: 8%;
	text-align: center;
	overflow: hidden;
	color: #fff;
	transition: all 0.7s;
}

.post-title {
	top: 40%;
	max-height: 120px;
}

.post-title a {
	font-size: 1.4em;
	line-height: 1;
	color: #fff;
	text-decoration: none;
}

.post-excerpt {
	top: 42.5%;
	max-height: 80px;
	font-size: 1.1em;
}

.post-excerpt:after {
	content: '...';
}

.post-read-more {
	top: 65%;
}

.post-date-time {
	top: 95%;
	font-size: 0.8em;
}

.post-icon-text {
	padding: 0 5px;
}

.post-excerpt, .post-read-more, .post-date-time {
	opacity: 0;
}

.post:hover .post-title {
	top: 15%;
}

.post:hover .post-excerpt, .post:hover .post-read-more {
	opacity: 1;
}

.post:hover .post-date-time {
	top: 90%;
	opacity: 1;
}

/* COLLAGE PROMOS
-----------------------------*/

@media(min-width: 767px) {
	.collage {
		display: flex;
		position: relative;
		align-items: center;
	}
	.collage img {
		max-width: 66%;
	}
	.collage-box {
		margin-left: -20%;
		width: calc(100% + 20%);
	}
	.collage.right {
		flex-direction: row-reverse;
	}
	.collage.right .collage-box {
		margin-left: 0;
		margin-right: -20%;
	}
}
@media(max-width: 767px) {
	.collage img {
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}
	.collage-box {
		border-top: none !important;
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
	}
}

/* ROW STRETCHER
-----------------------------*/

.row-stretcher > .col,
.row-stretcher > [class*="col-"] {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}

@media (min-width: 768px) {
  .row-stretcher > .col:hover,
  .row-stretcher > [class*="col-"]:hover {
    flex-grow: 2;
  }
}

@media (max-width: 991px) {
  .row-stretcher > .col,
  .row-stretcher > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* BOXES
-----------------------------*/

.box {
  display: block;
}

.box .box-content {
  padding: 1.5rem;
}

@media (min-width: 576px) {
  .box .box-content {
    padding: 2rem;
  }
}

.box .box-content-lg {
  padding: 2.5rem;
}

@media (min-width: 576px) {
  .box .box-content-lg {
    padding: 5rem;
  }
}

.box .box-spacer-sm {
  height: 3rem;
}

@media (min-width: 992px) {
  .box .box-spacer-sm {
    height: 6rem;
  }
}

.box .box-spacer-md {
  height: 6rem;
}

@media (min-width: 992px) {
  .box .box-spacer-md {
    height: 12rem;
  }
}

.box .box-spacer {
  height: 9rem;
}

@media (min-width: 992px) {
  .box .box-spacer {
    height: 18rem;
  }
}

.box .box-spacer-lg {
  height: 12rem;
}

@media (min-width: 992px) {
  .box .box-spacer-lg {
    height: 24rem;
  }
}

.box .box-spacer-xl {
  height: 15rem;
}

@media (min-width: 992px) {
  .box .box-spacer-xl {
    height: 30rem;
  }
}

.box-image {
  background-position: center;
  background-size: cover;
}

.box-parallax {
  background-attachment: fixed;
}

.box-border {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.box-product {
  overflow: hidden;
  position: relative;
}

.box-product .btn-add-cart {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
}

.box-hover {
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.box-hover:hover {
  -moz-transform: translateY(-0.25rem);
  -ms-transform: translateY(-0.25rem);
  -o-transform: translateY(-0.25rem);
  -webkit-transform: translateY(-0.25rem);
  transform: translateY(-0.25rem);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.125);
}

.box-hover-drop {
  position: relative;
  overflow: hidden;
}

.box-hover-drop:before,
.box-hover-drop p,
.box-hover-drop .box-content {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}

.box-hover-drop:hover:before,
.box-hover-drop:hover p,
.box-hover-drop:hover .box-content {
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.box-hover-drop:hover p {
  opacity: 1;
}

.box-hover-drop:before {
  content: "";
  position: absolute;
  width: auto;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.625rem;
  background-color: #fff;
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -moz-transform: translate3d(0, 100%, 0);
  -ms-transform: translate3d(0, 100%, 0);
  -o-transform: translate3d(0, 100%, 0);
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
}

.box-hover-drop p {
  -moz-transform: translate3d(0, -50%, 0);
  -ms-transform: translate3d(0, -50%, 0);
  -o-transform: translate3d(0, -50%, 0);
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
  opacity: 0;
}

.box-hover-drop .box-content {
  -moz-transform: translate3d(0, 20%, 0);
  -ms-transform: translate3d(0, 20%, 0);
  -o-transform: translate3d(0, 20%, 0);
  -webkit-transform: translate3d(0, 20%, 0);
  transform: translate3d(0, 20%, 0);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.box-hover-slide {
  position: relative;
  overflow: hidden;
}

.box-hover-slide:hover .box-content {
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.box-hover-slide .box-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  -moz-transform: translate3d(0, 100%, 0);
  -ms-transform: translate3d(0, 100%, 0);
  -o-transform: translate3d(0, 100%, 0);
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}

.box-hover-fall {
  position: relative;
  overflow: hidden;
}

.box-hover-fall:hover .box-content p {
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.box-hover-fall:hover:before {
  background-color: rgba(37, 37, 37, 0.5);
}

.box-hover-fall:before {
  content: "";
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.box-hover-fall .box-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .box-hover-fall .box-content {
    padding: 4rem 3rem;
  }
}

.box-hover-fall .box-content p {
  opacity: 0;
  margin-bottom: 0.25rem;
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -moz-transform: translate3d(-350px, 0, 0);
  -ms-transform: translate3d(-350px, 0, 0);
  -o-transform: translate3d(-350px, 0, 0);
  -webkit-transform: translate3d(-350px, 0, 0);
  transform: translate3d(-350px, 0, 0);
}

.box-hover-fall .box-content p:nth-child(2) {
  -moz-transition-delay: 0.1s;
  -o-transition-delay: 0.1s;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.box-hover-fall .box-content p:nth-child(3) {
  -moz-transition-delay: 0.15s;
  -o-transition-delay: 0.15s;
  -webkit-transition-delay: 0.15s;
  transition-delay: 0.15s;
}

.box-hover-fall .box-content p:nth-child(4) {
  -moz-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.box-hover-fall .box-content p:nth-child(5) {
  -moz-transition-delay: 0.25s;
  -o-transition-delay: 0.25s;
  -webkit-transition-delay: 0.25s;
  transition-delay: 0.25s;
}

.box-hover-fall .box-content p span {
  padding: 0.25rem 0.625rem;
  background-color: #fff;
  color: #252525;
  display: inline-block;
}

.box-hover-pull {
  position: relative;
  overflow: hidden;
}

.box-hover-pull:hover .box-content {
  color: #fff;
}

.box-hover-pull:hover .box-content header {
  margin-top: -25px;
}

.box-hover-pull:hover .box-content footer {
  opacity: 1;
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -moz-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

.box-hover-pull:hover:before {
  background-color: rgba(37, 37, 37, 0.5);
}

.box-hover-pull:before {
  content: "";
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.box-hover-pull .box-content {
  position: absolute !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.box-hover-pull .box-content header {
  position: absolute;
  left: 50%;
  top: 50%;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  min-width: 100%;
  padding: 1rem;
}

.box-hover-pull .box-content footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  padding: 1rem;
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -moz-transform: translate3d(0, 10px, 0);
  -ms-transform: translate3d(0, 10px, 0);
  -o-transform: translate3d(0, 10px, 0);
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}

/* SVG SEPARATORS
-----------------------------*/

.separator {
  margin: 0;
  padding: 0;
}

.separator .svg {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.separator .svg-primary,
.separator .svg-primary * {
  fill: #0d6efd;
}

.separator .svg-secondary,
.separator .svg-secondary * {
  fill: #565e6d;
}

.separator .svg-success,
.separator .svg-success * {
  fill: #2de082;
}

.separator .svg-info,
.separator .svg-info * {
  fill: #0dcaf0;
}

.separator .svg-warning,
.separator .svg-warning * {
  fill: #ffc107;
}

.separator .svg-danger,
.separator .svg-danger * {
  fill: #dc3545;
}

.separator .svg-light,
.separator .svg-light * {
  fill: #f5f5f5;
}

.separator .svg-dark,
.separator .svg-dark * {
  fill: #252525;
}

.separator .svg-gray,
.separator .svg-gray * {
  fill: #ececec;
}

.separator .svg-white,
.separator .svg-white * {
  fill: white;
}

.separator .svg-black,
.separator .svg-black * {
  fill: black;
}

.separator .svg-wtansparent,
.separator .svg-wtansparent * {
  fill: transparent;
}

.separator .svg-white {
  fill: #fff;
}

.separator .svg-black {
  fill: #000;
}

/* ACCORDION PROMO
-----------------------------*/

.switch-transition {
  position: absolute;
  top: 0;
  left: -640px;
  width: 640px;
  height: 640px;
  z-index: 2;
  background-color: #28a745;
}

.switch-transition.start {
  animation: ease;
  animation-name: moveRight;
  animation-duration: 1.4s;
}

@keyframes moveRight {
  0% { left: -640px; }
  100% { left: 640px; }
}

/* GRID CARD
-----------------------------*/

.card-article {
     position: relative;
     display: grid;
}

.card-article img {
     -o-object-fit: cover;
     object-fit: cover;
     max-width: 100%;
     aspect-ratio: 4/3;
     width: 100%;
}

.card-article > * {
     grid-area: 1/-1;
}

.card-article a {
     text-decoration: none;
     color: inherit;
}

.card-article a:before {
     content: "";
     position: absolute;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
}

.card-content {
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     padding: 1rem;
     color: #fff;
     background: linear-gradient(to top, #000000d9, #0000) bottom/100% 75% no-repeat;
}

.card-content p {
     margin-bottom: 0;
}

.card-tag {
     align-self: start;
     justify-self: start;
     padding: 0.25rem 0.75rem;
     margin-top: 1rem;
}

/* ANIMATED CARD CAPTION
-----------------------------*/

.card-anim-caption figure {
     position: relative;
     overflow: hidden;
}

.card-anim-caption figure img {
     -o-object-fit: cover;
     object-fit: cover;
     max-width: 100%;
     aspect-ratio: 4/3;
     width: 100%;
}

.card-anim-caption figcaption {
     position: absolute;
     bottom: 0;
     width: 100%;
     background: rgba(0, 0, 0, 0.4);
     transition: background-color .3s ease-in-out 
}

.card-anim-caption:hover figcaption {
     background: #000;
}

.card-anim-caption figcaption p {
     position: relative;
     opacity: 0;
     max-height: 0;
     padding: 0;
     margin: 0;
     transition: max-height .3s ease-in-out, opacity .3s ease-in-out;
}

.card-anim-caption:hover figcaption p {
     max-height: 150px;
     opacity: 1;
}
