
/* Generic Scroll Slider */
section .scroll-slider-section {
	position: relative;
	margin: 0px auto;
	height: 100vh;
	background-color: #fff;
	overflow: hidden;
	opacity: 1;
	transition: opacity 1s ease-in-out;
}

section .scroll-slider-section.fade-out {
	opacity: 0;
	pointer-events: none;
}

section .scroll-slider-section.floatable,
section .scroll-slider-section.absolute {
	top: 0px;
	right: 0px;
	left: 0px;
	background-size: cover;
	transition: opacity 0.25s ease-in-out;
}

/* Internet Explorer Scroll Jack fix */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	section .scroll-slider-section.floatable,
	section .scroll-slider-section.absolute {
		left: 50%;
		transform: translateX(-50%);
	}
}

section .scroll-slider-section {
	overflow: visible;
}

section .scroll-slider-section.floatable {
	position: fixed;
}

section .scroll-slider-section.absolute {
	position: absolute;
    overflow: hidden;
}

section .scroll-slider-section object.animated-overlay {
	margin: 0px auto;
}

@media screen and (max-width: 767px) {
	section .scroll-slider-section {
		height: calc(100vh - 85px);
		opacity: 0;
		pointer-events: none;
	}
	
	section .scroll-slider-section.active {
		opacity: 1;
		pointer-events: initial;
	}
	
	section .scroll-slider-section object.animated-overlay {
		margin-bottom: -140px;
		padding: 0px 80px;
	}
}

/* Slider */
.large-color .slider .text h2,
.slider .large-color .text h2,
.large-color.slider .text h2,
.slider.large-color .text h2 {
    margin-bottom: 0px;
}

.slider .text h3 {
	font-size: 40px;
	font-size: 2.95rem;
}

/* Scroll Slider - Column Control */
section.page-section--col-light-grey.slider.slider-colour .scroll-slider-section .pwccol2-longform-c0,
section.page-section--col-light-grey.slider.slider-colour .scroll-slider-section .pwccol2-longform-c1 {
	/* background-color: #f0f0f0 !important; original light-grey*/
	background-color: #f2f2f2 !important;
}

@media screen and (max-width: 767px) {
	section.page-section--col-light-grey.slider.slider-colour .scroll-slider-section {
		background-color: #f2f2f2;
	}
	
	section.page-section--col-light-grey.slider.slider-colour .scroll-slider-section  .pwccol2-longform-c0 {
		padding: 20px 40px;
	}
	
	section.page-section--col-light-grey.slider.slider-colour .scroll-slider-section  .pwccol2-longform-c1 img {
		width: auto;
		max-height: 45vh;
	}
}

/* Mark: Reponsive images */
.slider.slider-colour .parsys_column .image-asset {
  display: block;
  max-width: 80%;
  max-height: 100vh;
  height: auto;
}

/* HERO slider */
section.hero-slider {
	width: 100%;
	height: calc(100vh - 210px);
	min-height: 420px;
	overflow: hidden;
}

section.hero-slider.smaller {
	height: calc(100vh - 253px);
}

section.hero-slider.enabled {
	background: #fff !important;
}

section.hero-slider.enabled .parsys {
	white-space: nowrap;
	overflow: hidden;
}

section.hero-slider:not(.disabled) .parsys > .herotitle {
    white-space: normal;
	display: none;
}

section.hero-slider:not(.disabled) .parsys > .herotitle:first-child {
	display: block;
}

section.hero-slider:not(.disabled) .parsys > .html + .herotitle {
	display: block;
}

section.hero-slider.enabled .parsys > .herotitle {
	display: block;
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	white-space: initial;
	opacity: 1;
	transition: opacity 1s ease-in;
	overflow: hidden;
}

section.hero-slider.enabled .parsys > .herotitle.inactive {
	opacity: 0;
	pointer-events: none;
}

section.hero-slider .parsys > .herotitle .hero-title-textpanel {
	position: relative;
}

section.hero-slider .parsys > .herotitle .hero-title-textpanel > .content-wrapper {
	display: flex;
	padding-bottom: 40px;
	height: 100%;
	flex-flow: column;
	justify-content: space-between;
}

section.hero-slider.enabled .parsys > .herotitle .scroll-carousel {
	position: absolute;
	left: 0px;
	right: 0px;
	bottom: 10px;
}

section.hero-slider .parsys > .herotitle .hero-title-component {
	position: relative;
	z-index: 10;
}

section.hero-slider .parsys > .herotitle .bg {
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	z-index: 1;
	background-size: cover;
	background-repeat: no-repeat;
}

@media screen and (max-width: 767px) {
	/* 
	section.hero-slider {
		height: 100vh !important;
		min-height: unset;
	}
	*/
	
	section.hero-slider .parsys > .herotitle {
		height: 100%;
	}
	
	section.hero-slider .parsys > .herotitle .bg {
		top: auto;
        bottom: 0px;
		height: 30vh; /* From 50 */
        background-size: 100% auto;
        background-position: center bottom;
	}
	
	section.hero-slider .parsys > .herotitle .hero-title-textpanel > .content-wrapper {
		display: block;
		padding-bottom: 0px;
		height: auto;
	}
}

@keyframes slide-from-right {
    from {transform: translateX(20px); opacity: 0;}
    to {transform: translateX(0px); opacity: 1;}
}

@keyframes slide-to-left {
    from {transform: translateX(0px); opacity: 1;}
    to {transform: translateX(-20px); opacity: 0;}
}

@keyframes slide-from-left {
    from {transform: translateX(-20px); opacity: 0;}
    to {transform: translateX(0px); opacity: 1;}
}

@keyframes slide-to-right {
    from {transform: translateX(0px); opacity: 1;}
    to {transform: translateX(20px); opacity: 0;}
}

section.hero-slider.going-to-the-left .parsys > .herotitle:not(.inactive) .hero-title-textpanel p {
	animation-name: slide-from-left;
	animation-duration: 1s;
}

section.hero-slider.going-to-the-left .parsys > .herotitle.inactive .hero-title-textpanel p {
	animation-name: slide-to-right;
	animation-duration: 1s;
}

section.hero-slider.going-to-the-right .parsys > .herotitle:not(.inactive) .hero-title-textpanel p {
	animation-name: slide-from-right;
	animation-duration: 1s;
}

section.hero-slider.going-to-the-right .parsys > .herotitle.inactive .hero-title-textpanel p {
	animation-name: slide-to-left;
	animation-duration: 1s;
}

@keyframes slide-from-right-bg {
    from {transform: translateX(100%);}
    to {transform: translateX(0%);}
}

@keyframes slide-to-left-bg {
    from {transform: translateX(0%);}
    to {transform: translateX(-100%);}
}

@keyframes slide-from-left-bg {
    from {transform: translateX(-100%);}
    to {transform: translateX(0%);}
}

@keyframes slide-to-right-bg {
    from {transform: translateX(0%);}
    to {transform: translateX(100%);}
}

section.hero-slider.going-to-the-right .parsys > .herotitle:not(.inactive) .bg {
	animation-name: slide-from-right-bg;
	animation-duration: 1s;
}

section.hero-slider.going-to-the-right .parsys > .herotitle.inactive .bg {
	animation-name: slide-to-left-bg;
	animation-duration: 1s;
}

section.hero-slider.going-to-the-left .parsys > .herotitle:not(.inactive) .bg {
	animation-name: slide-from-left-bg;
	animation-duration: 1s;
}

section.hero-slider.going-to-the-left .parsys > .herotitle.inactive .bg {
	animation-name: slide-to-right-bg;
	animation-duration: 1s;
}

/* Other sections scroll jack */
section.sticky {
	position: relative;
	right: 0px;
	left: 0px;
	height: 100vh;
}

section.sticky:not(.slider) > .parsys {
	transform: translateY(50%);
}

section.sticky .parsys_column > .parsys_column {
	display: inline-block;
	vertical-align: middle;
}

/* Scroll Carousel slider */
ul.scroll-carousel {
	margin: 0px;
	padding: 10px;
	text-align: center;	
	list-style-type: none;
}

section .scroll-slider-section ul.scroll-carousel {
	position: absolute;
	top: auto;
	left: auto;
	right: -70px;
	bottom: 50%;
	transform: translateY(-50%);
}

section.hero-slider ul.scroll-carousel {
	position: relative;
	top: auto;
	left: 0px;
	right: 0px;
	bottom: 0px;
	margin: 0px;
	transform: none;
}

section .scroll-slider-section.fade-out ul.scroll-carousel {
	display: none;
}

ul.scroll-carousel li {
	display: inline-block;
	margin: 10px 15px;
	padding: 5px;
	font-size: 0px;
	background: #fff;
	border: 2px solid #e0301e;
	border-radius: 100%;
	vertical-align: center;
	cursor: pointer;
	line-height:0px;
}

.page-primary-col--burgundy ul.scroll-carousel li {
	border: 2px solid #a32020;
}
.page-primary-col--red ul.scroll-carousel li {
	border: 2px solid #e0301e;
}

section .scroll-slider-section ul.scroll-carousel li {
	display: block;
}

ul.scroll-carousel li.active,
ul.scroll-carousel li:hover {
	background: #e0301e;
}

.page-primary-col--burgundy ul.scroll-carousel li.active,
.page-primary-col--burgundy ul.scroll-carousel li:hover {
	background: #a32020;
}

.page-primary-col--red ul.scroll-carousel li.active,
.page-primary-col--red ul.scroll-carousel li:hover {
	background: #e0301e;
}

@media screen and (max-width: 900px) {
	section .scroll-slider-section ul.scroll-carousel {
		right: 0px;
		transform: translateY(-50%);
	}
}

@media screen and (max-width: 767px) {
	section .scroll-slider-section ul.scroll-carousel {
		position: absolute;
		top: auto;
		left: 0px;
		right: 0px;
		bottom: 0px;
		transform: none;
	}
	
	section .scroll-slider-section ul.scroll-carousel li {
		display: inline-block;
	}
    .slider.slider-colour .parsys_column .image-asset {
		max-width: 100%;
	}
}
