﻿section.text-image { 
	padding: 20px 0;
}

section.text-image > .wrapper > .col-1 { 
	padding-top: 0;
	padding-bottom: 0;
}

section.text-image div.image-container img.image,
section.text-image div.image-container div.video-container { 
	position: absolute;
	right: 25px;
	top: 25px;
	bottom: calc(100% - 25px);
	left: initial;
	width: auto;
	height: calc(100% - 50px);
	z-index: 0;
}

section.text-image div.text-image-container {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	min-height: 340px;
	overflow: hidden;
}

section.text-image div.text-image-container:after {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	clip-path: polygon(0 0, 350px 0, 350px 100%, 0 100%);
}


section.text-image div.text-image-container .content { 
	position: relative;
	width: 100%;
	max-width: 350px;
	min-height: 350px;
	padding: 25px 40px 25px 25px;
	display: flex;
	flex-direction: column;
	gap: 30px;
	justify-content: space-between;
	z-index: 2;
}

section.text-image div.text-image-container .content div.title { 
	color: var(--hl-dark-green);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.15;
}

section.text-image div.text-image-container .content div.copy { 
	margin-top: 20px;
}

section.text-image div.text-image-container .content p {
	font: inherit;
	color: inherit;
}

section.text-image div.text-image-container .content div.title > :last-child,
section.text-image div.text-image-container .content div.copy > :last-child {
	margin-bottom: 0;
}

section.text-image div.text-image-container {
	color: var(--hl-dark-green);
}

/*** Themes ***/
/*
	dark-green
	light-green
	light-green-purple-gradient
	light-green-teal-gradient
	multi-gradient
	taupe
	teal-purple-gradient

	dark-green-fade
	light-green-fade
	purple-fade
	taupe-fade
	teal-fade
*/

section.text-image div.text-image-container.tpp-theme-dark-green,
section.text-image div.text-image-container.tpp-theme-dark-green-fade {
	background-color: var(--hl-dark-green);
	color: #ffffff;
}

section.text-image div.text-image-container.tpp-theme-dark-green div.title,
section.text-image div.text-image-container.tpp-theme-dark-green-fade div.title {
	color: var(--hl-light-green);
}


section.text-image div.text-image-container.tpp-theme-dark-green .content {
	background: linear-gradient(to right, var(--hl-dark-green), var(--hl-dark-green) calc(100% - 30px), rgba(var(--hl-dark-green-rgb), 0));
}


section.text-image div.text-image-container.tpp-theme-light-green,
section.text-image div.text-image-container.tpp-theme-light-green-fade {
	background-color: var(--hl-light-green);
}

section.text-image div.text-image-container.tpp-theme-light-green .content {
	background: linear-gradient(to right, var(--hl-light-green), var(--hl-light-green) calc(100% - 30px), rgba(var(--hl-light-green-rgb), 0));
}


section.text-image div.text-image-container.tpp-theme-taupe,
section.text-image div.text-image-container.tpp-theme-taupe-fade {
	background-color: var(--hl-taupe);
}

section.text-image div.text-image-container.tpp-theme-taupe .content {
	background: linear-gradient(to right, var(--hl-taupe), var(--hl-taupe) calc(100% - 30px), rgba(var(--hl-taupe-rgb), 0));
}


section.text-image div.text-image-container.tpp-theme-light-green-purple-gradient { 
	background-image: url("/template-tool/_assets/bg-light-green-purple-gradient.jpg");
}

section.text-image div.text-image-container.tpp-theme-light-green-purple-gradient:after  {
	content: "";
	background-image: url("/template-tool/_assets/bg-light-green-purple-gradient.jpg");
}


section.text-image div.text-image-container.tpp-theme-light-green-teal-gradient  {
	background-image: url("/template-tool/_assets/bg-light-green-teal-gradient.jpg");
}

section.text-image div.text-image-container.tpp-theme-light-green-teal-gradient:after {
	content: "";
	background-image: url("/template-tool/_assets/bg-light-green-teal-gradient.jpg");
}


section.text-image div.text-image-container.tpp-theme-multi-gradient {
	background-image: url("/template-tool/_assets/bg-multi-gradient.jpg");
}

section.text-image div.text-image-container.tpp-theme-multi-gradient:after {
	content: "";
	background-image: url("/template-tool/_assets/bg-multi-gradient.jpg");
}


section.text-image div.text-image-container.tpp-theme-teal-purple-gradient {
	background-image: url("/template-tool/_assets/bg-teal-purple-gradient.jpg");
}

section.text-image div.text-image-container.tpp-theme-teal-purple-gradient:after {
	content: "";
	background-image: url("/template-tool/_assets/bg-teal-purple-gradient.jpg");
}


/* Fade Themes */

section.text-image div.text-image-container.tpp-theme-purple-fade { 
	background-color: var(--hl-purple);
}

section.text-image div.text-image-container.tpp-theme-teal-fade {
	background-color: var(--hl-teal);
}

section.text-image div.text-image-container[class*='-fade'] div.video-container {
	text-align: right; 
}

section.text-image div.text-image-container[class*='-fade'] div.video-container video {
	width: auto;
	height: 100%;
}

section.text-image div.text-image-container:not([class*='-fade']) div.video-container video {
	width: auto;
	height: 100%;
}


/* Note: min-width */
@media (min-width: 640px) {
	section.text-image div.text-image-container[class*='-fade'] img.image,
	section.text-image div.text-image-container[class*='-fade'] div.video-container {
		top: 0;
		right: 0;
		bottom: 0;
		height: 100%;
	}

	section.text-image div.text-image-container[class*='-fade']:after {
		content: "";
		clip-path: none;
	}

	section.text-image div.text-image-container.tpp-theme-dark-green-fade:after {
		background: linear-gradient(to right, var(--hl-dark-green) 0%, var(--hl-dark-green) 340px, rgba(var(--hl-dark-green-rgb), 0) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-light-green-fade:after {
		background: linear-gradient(to right, var(--hl-light-green) 0%, var(--hl-light-green) 340px, rgba(var(--hl-light-green-rgb), 0) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-purple-fade:after {
		background: linear-gradient(to right, var(--hl-purple) 0%, var(--hl-purple) 340px, rgba(var(--hl-purple-rgb), 0) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-taupe-fade:after {
		background: linear-gradient(to right, var(--hl-taupe) 0%, var(--hl-taupe) 340px, rgba(var(--hl-taupe-rgb), 0) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-teal-fade:after {
		background: linear-gradient(to right, var(--hl-teal) 0%, var(--hl-teal) 340px, rgba(var(--hl-teal-rgb), 0) 100%);
	}
}


/* Note: max-width */

@media (max-width: 640px) {
	section.text-image div.text-image-container {
		display: flex;
		flex-direction: column-reverse;
		min-height: unset;
	}

	section.text-image .text-image-container div.image-container {
		padding: 0 25px 25px 25px;
	}


	section.text-image div.image-container img.image,
	section.text-image div.image-container div.video-container {
		position: static;
		width: 100%;
		height: auto;
	}

	section.text-image div.text-image-container div.video-container video { 
		width: 100%!important;
		height: auto!important;
	}

	section.text-image div.text-image-container .content {
		max-width: 100%;
		min-height: unset;
		background: none !important;
	}

	section.text-image div.text-image-container.tpp-theme-light-green-purple-gradient:after,
	section.text-image div.text-image-container.tpp-theme-light-green-teal-gradient:after,
	section.text-image div.text-image-container.tpp-theme-multi-gradient:after,
	section.text-image div.text-image-container.tpp-theme-teal-purple-gradient:after {
		background: none;
	}

	section.text-image div.text-image-container[class*='-fade'] img.image {
		margin: 0;
	}

	section.text-image div.text-image-container[class*='-fade'] div.image-container {
		position: relative;
	}

	section.text-image div.text-image-container[class*='-fade'] div.image-container:after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	section.text-image div.text-image-container.tpp-theme-dark-green-fade div.image-container:after {
		background: linear-gradient(to bottom, var(--hl-dark-green) 0, rgba(var(--hl-dark-green-rgb), 0.1) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-light-green-fade div.image-container:after {
		background: linear-gradient(to bottom, var(--hl-light-green) 0, rgba(var(--hl-light-green-rgb), 0.1) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-purple-fade div.image-container:after {
		background: linear-gradient(to bottom, var(--hl-purple) 0, rgba(var(--hl-purple-rgb), 0.1) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-taupe-fade div.image-container:after {
		background: linear-gradient(to bottom, var(--hl-taupe) 0, rgba(var(--hl-taupe-rgb), 0.1) 100%);
	}

	section.text-image div.text-image-container.tpp-theme-teal-fade div.image-container:after { 
		background: linear-gradient(to bottom, var(--hl-teal) 0, rgba(var(--hl-teal-rgb), 0.1) 100%);
	}
}
