/*ROOM FOR IMPROVEMENT*/
/*fix margin-top of section__text (flex reverse order?)*/
/*image lazy loading plugin*/
/*fix dot, arrows and HZ alignment (safari)*/
/*Fix the circle sizing -- esp mobile*/
/*browerstack testing*/
/*carousel javascript refactor*/
/*refactor code (esp media queries -- use SASS)*/
/*first arrow should be light grey and unclickable*/

/*EXTRA EXTRA*/
/*animation on load?*/
/*arrows move on hover*/
/*circle movement on hover*/

*,
*:before,
*:after {
  /*border: 1px solid lightblue;*/
  box-sizing: border-box;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

body {
	background-color: #FAF9F6;
	color: #2E2E2E;
	font-family: 'Roboto', sans-serif;
	margin: 0;
	font-size: calc(1rem + .01vh);
}

a {
	color: #2E2E2E;
	font-weight: 500;
	text-decoration: none;
}

.margin-wrapper {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		padding: 2rem 4rem;
}
@media (min-width: 500px) {
	.margin-wrapper {
		margin-top: 1.2rem;
		padding: 3rem 7rem;
	}
}
@media (min-width: 900px) {
	.margin-wrapper {
		margin-top: 0;
		padding: 4rem 12rem;
	}
}

@media (min-width: 1200px) {
	.margin-wrapper {
		padding: 1.5rem 10rem;
		margin: 0 auto;
		max-width: 75rem;
	}
}

@media (min-width: 1500px) {
	.margin-wrapper {
		max-width: 130rem;
	}
}

.main-section {
	flex-grow: 1;
}

.top-border {
	flex-grow: .8;
}

/*HEADING*/
.section__heading {
	position: relative;
	z-index: 10;
}

@media (min-width: 500px) {
	.section__heading   {
		margin-top: 3rem;
	}
}

@media (min-width: 900px) {
	.section__heading   {
		margin-top: 4rem;
	}
}

@media (min-width: 1200px) {
	.section__heading   {
		width: 29%;
		margin-top: 1.5rem;
		float: left;
	}
}

.heading__title {
	text-transform: lowercase;
	font-weight: 500;
}

.title {
	font-size: 2.2rem;
	position: relative;
	letter-spacing: -0.02rem;
	margin-left: -0.1rem;
}

@media (min-width: 500px) {
	.title {
		font-size: 2.8rem;
	}
}
@media (min-width: 900px) {
	.title {
		font-size: 3.6rem;
	}
}

@media (min-width: 1200px) {
	.title {
		font-size: 4.3rem;
	}
}

@media (min-width: 1500px) {
	.title {
		font-size: calc(5rem + 2vw);
	}
}

.title__second {
	position: absolute;
	bottom: -0.38em;
	right: -1.96em;
}

/*PHOTO*/
.section__photo {
	margin-top: 2.4em;
	position: relative;
}

@media (min-width: 500px) {
	.section__photo {
		margin-top: 2.8em;
	}
}

@media (min-width: 900px) {
	.section__photo {
		margin-top: 3.6em;
	}
}

@media (min-width: 1200px) {
	.section__photo   {
		width: 71%;
		float: left;
	}
}

.photos {
	padding-top: 65.689%;
	position: relative;
	overflow: hidden;
}

.photo {
	transition: transform 1s;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.photos > .first--js {
	left: 0;
}

.photos > .second--js {
	left: 100%;
}
.photos > .third--js {
	left: 200%;
}

.photo-img {
	width: 85%;
}

.section__photo::after {
	z-index: 100;
	position: absolute;
	top: -15%;
	right: 0;
	content: '';
	background-color: rgba(248, 231, 28, .4);
	display: block;
	width: 67%;
	height: 98%;
	border-radius: 50%;
}

@media (min-width: 500px) {
	.section__photo::after {
		width: 68%;
		height: 92%;
	}
}

.photo__caption {
	display: none;
	font-size: .5rem;
	text-transform: uppercase;
	letter-spacing: .15rem;
	margin-top: .7rem;
}

@media (min-width: 900px) {
	.photo__caption {
		font-size: .5rem;
		letter-spacing: .2rem;
		margin-top: .8rem;
	}
}

@media (min-width: 1200px) {
	.photo__caption  {
		font-size: .7rem;
		margin-top: .9rem;
		letter-spacing: .25rem;
	}
}


@media (min-width: 1500px) {
	.photo__caption  {
		margin-top: 1.5rem;
		font-size: .9rem;
	}
}

.photo__text {
	transition: transform 1s;
	text-align: center;
	position: absolute;
  width: 100%;
}


.caption {
	display: inline-block;
	min-width: 5.5rem;
	height: 1.2rem;
	padding-top: .2rem;
	position: relative;
	overflow: hidden;
}

@media (min-width: 500px) {
	.caption {
		padding-top: .54rem;
	}
}

@media (min-width: 900px) {
	.caption {
		min-width: 7rem;
	}
}

@media (min-width: 1200px) {
	.caption {
		min-width: 8rem;
		padding-top: .35rem;
	}
}

@media (min-width: 1500px) {
	.caption  {
		min-width: 11rem;
		padding-top: 0;
	}
}

.caption > .one--js {
	left: 0;
}

.caption > .two--js {
	left: 100%;
}

.caption > .three--js {
	left: 200%;
}

.left-arrow {
	display: inline-block;
	vertical-align: super;
	cursor: pointer;
}

.right-arrow {
	display: inline-block;
	vertical-align: super;
	cursor: pointer;
}

.photo__link:hover {
	transform: translateX(1em);
}

/*TEXT*/
.section__text {
	position: relative;
	z-index: 10;
	margin-top: 1.6em;
}

@media (min-width: 900px) {
	.section__text {
		margin-top: 2.3em;
	}
}

@media (min-width: 1200px) {
	.section__text   {
		width: 38%;
		float: left;
		margin-top: -20.7rem;
		padding-right: 2rem;
	}
}

@media (min-width: 1500px) {
	.section__text  {
		margin-top: calc(-36% - 2rem);
	}
}

.text__list-heading {
	margin-top: 1.5em;
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.text__list-heading {
		margin-top: 1.2em;
		line-height: 1.8rem;
		font-size: 1.2rem;
	}
}

@media (min-width: 1200px) {
	.text__list-heading {
		font-size: 1.3rem;
	}
}

@media (min-width: 1500px) {
	.text__list-heading  {
		max-width: 30rem;
		font-size: calc(1.5rem + .5vw);
	}
}

.text__list {
	margin-top: .6em;
	padding-left: 1.8rem;
	line-height: 1.3em;
}

ol {
	list-style: none;
	counter-reset: li;
}
li::before {
	content: counter(li);
	font-weight: 500;
	font-size: .7rem;
  display: inline-block;
	width: 1em;
  margin-left: -1em;
}

li {
	counter-increment: li;
}

.text__main {
	line-height: 1.6rem;
	max-width: 20rem;
}

@media (min-width: 900px) {
	.text__main {
		line-height: 1.8rem;
		max-width: 23rem;
		font-size: 1.2rem;
	}
}

@media (min-width: 1200px) {
	.text__main {
		max-width: 18rem;
		font-size: 1.3rem;
		line-height: 1.9rem;
	}
}

@media (min-width: 1500px) {
	.text__main  {
		max-width: 30rem;
		font-size: calc(1.5rem + .5vw);
		line-height: normal;
	}
}

.text__icon svg {
	width: 16px;
	height: 16px;
	margin-bottom: -2px;
}

@media (min-width: 1500px) {
	.text__icon svg  {
		width: 26px;
		height: 26px;
	}
}

/*FOOTER*/
.section__footer {
	flex-grow: 1;
	margin-top: 2em;
	text-align: right;
}

@media (min-width: 500px) {
	.section__footer {
		margin-top: 3rem;
	}
}

@media (min-width: 900px) {
	.section__footer {
		margin-top: 5rem;
	}
}

@media (min-width: 1200px) {
	.section__footer {
		margin-top: 3.1rem;
	}
}

.footer__text {
	text-transform: uppercase;
	color: #9B9B9B;
	font-size: .4rem;
	letter-spacing: .16rem;
	margin-right: -.16rem;
}

@media (min-width: 1200px) {
	.footer__text {
		font-size: .45rem;
		letter-spacing: .17rem;
	}
}

.footer__icon svg {
	width: 8px;
	height: 8px;
	margin-bottom: -1.5px;
}

.footer__icon {

}

.credit-link {
	color: inherit;
	border-bottom: .5px solid rgba(155, 155, 155, .2);
}

/*BORDER*/
.border {
	content: '';
	display: block;
	position: relative;
	width: 100%;
	border-top: 1px solid rgba(155, 155, 155, .5);
}

@media (min-width: 1200px) {
	.border {
		width: 70%;
	}
}

.border::before {
	content: '. . .';
	font-size: 1em;
	color: rgba(155, 155, 155, .8);
	position: absolute;
	background-color: #FAF9F6;
	top: -.9em;
	/*line-height: 0;*/
}

.bottom-border::before {
	padding-right: .34em;
	left: -.16em;
}

.top-border::before {
	padding-left: .34em;
	right: 0;
}

@media (min-width: 1200px) {
	.top-border {
		margin-bottom: 2rem;
	}
	.bottom-border{
		margin-left: 30%;
	}
}

/*UTILITY CLASSES*/
@media (min-width: 500px) {
	.mobile-not-hidden {
		display: none;
	}
	.mobile-is-hidden {
		display: block;
	}
}
