/* FONTS */
@font-face {
	font-family: 'LibreBaskerville';
	src: local('LibreBaskerville'), url('./fonts/LibreBaskerville-Italic.ttf') format('truetype');
}
@font-face {
	font-family: 'Lobster';
	src: local('Lobster'), url('./fonts/Lobster-Regular.ttf') format('truetype');
}
@font-face {
	font-family: 'OpenSans';
	src: local('OpenSans'), url('./fonts/OpenSans-Regular.ttf') format('truetype');
}

/* TAGS */
html {
	background: hsla(0, 0%, 100%, 1);
	color: hsla(0, 0%, 50%, 1);
	font-family: OpenSans;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-overflow: clip;
	text-rendering: optimizeLegibility;
	white-space: normal;
}
h1 {
	color: hsla(0, 0%, 96%, 1);
	display: inline-block;
	font-family: Lobster;
    font-size: 22px;
	line-height: 38px;
}
h2 {
	color: hsla(0, 0%, 96%, 1);
	font-family: LibreBaskerville;
	font-size: 24px;
	text-align: center;
	text-shadow: 2px 2px 4px hsla(0, 0%, 0%, 0.5);
}
h3 {
	color: hsla(0, 0%, 19%, 1);
	font-family: LibreBaskerville;
	font-size: 30px;
	margin: 0 0 24px 0;
	text-align: center;
}
h4 {
	font-family: LibreBaskerville;
	font-size: 20px;
	font-weight: bold;
	margin: -8px 0 24px 0;
	text-align: center;
}
h5 {
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
}
h6 {
	font-size: 16px;
	font-weight: bold;
	margin: 16px 0;
}
hr {
	background: hsla(0, 0%, 19%, 1);
	border: none;
	height: 2px;
	margin: auto;
	margin-bottom: 32px;
	max-width: 128px;
}
img {
	width: 100%;
}
p:not(:last-child) {
	margin-bottom: 24px;
}
ul, li {
	padding-left: 16px;
}
ul:not(:last-child) {
	margin-bottom: 24px;
}
@media (min-width: 440px) {
	h1 {
		font-size: 30px;
	}
}
@media (min-width: 480px) {
	h2 {
		font-size: 32px;
	}
}
@media (min-width: 640px) {
	h2 {
		font-size: 40px;
	}
}
@media (min-width: 768px) {
	h2 {
		font-size: 48px;
	}
}

/* MODIFIERS */
.iframe {
	position: relative;
	padding-top: 56.25%;
}
.iframe iframe {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
.left {
	display: block;
	float: left;
}
.right {
	display: block;
	float: right;
}
.wrapper {
	margin: auto;
	max-width: 960px;
	overflow: hidden;
	padding: 10px 16px;
	position: relative;
}

/* AREA - NAV */
nav {
	background: hsla(0, 0%, 19%, 1);
	line-height: 32px;
	overflow: hidden;
	position: relative;
}
nav .wrapper {
	max-height: 58px;
}
nav .button, nav .icon {
	background: hsla(0, 0%, 87%, 1);
	display: inline-block;
	font-size: 12px;
	font-weight: bold;
	height: 32px;
	overflow: hidden;
	text-align: center;
}
nav .button:hover, nav .icon:hover {
	background: hsla(0, 0%, 100%, 1);
}
nav .button {
	border-radius: 4px;
	color: hsla(0, 0%, 0%, 1);
	margin: 3px 0 3px 12px;
	padding: 0 8px;
}
nav .icon {
	border: 2px solid hsla(0, 0%, 87%, 1);
	border-radius: 50%;
	display: none;
	margin: 1px 0 1px 8px;
	width: 32px;
}
nav .logo {
	display: inline-block;
	height: 36px;
	margin-right: 10px;
	vertical-align: top;
	width: auto;
}
@media (min-width: 440px) {
	nav .button {
		font-size: 14px;
		margin-left: 24px;
	}
}
@media (min-width: 580px) {
	nav .icon {
		display: inline-block;
	}
}

/* AREA - HEADER */
header {
	margin-top: 2px;
	position: relative;
}
header .slideshow .slide {
	display: block !important;
	overflow: hidden;
	position: relative;
}
header .slideshow .slide .overlay {
	background: hsla(0, 0%, 0%, 0.25);
	height: 100%;
	position: absolute;
	top: 0;
	width: 100%;
}
header .slideshow .slide .overlay h2 {
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 100%;
}
@media (min-width: 480px) {
	header .logo img {
		height: 64px;
	}
}
@media (min-width: 640px) {
	header .logo img {
		height: 72px;
	}
}
@media (min-width: 768px) {
	header .logo img {
		height: auto;
	}
}
@media (min-width: 853px) {
	header .slideshow .slide {
		height: 480px;
	}
	header .slideshow .slide img {
		position: relative;
		top: 50%;
		-ms-transform: translateY(-50%);
		-webkit-transform: translateY(-50%);
		transform: translateY(-50%);
	}
}

/* AREA - ARTICLE */
article section {
	overflow: hidden;
	position: relative;
}
article section:nth-child(even) {
	background: hsla(0, 0%, 96%, 1);
}
article .wrapper {
	padding-top: 32px;
	padding-bottom: 48px;
}
article .wrapper .left, 
article .wrapper .right {
	width: 50%;
}
article .avatar {
	background: red;
	border: 1px solid hsla(0, 0%, 87%, 1);
	border-radius: 50%;
	box-shadow: 0 4px 16px hsla(0, 0%, 50%, 0.5);
	display: block;
	height: 210px;
	margin: 0 auto 24px;
	overflow: hidden;
	width: 210px;
}
article .cards {
	margin-bottom: -32px;
	text-align: center;
}
article .cards .card {
	background: hsla(0, 0%, 100%, 1);
	box-shadow: 0 4px 16px hsla(0, 0%, 50%, 0.5);
	margin-bottom: 32px;
	overflow: hidden;
	position: relative;
}
article .cards .thumb {
	position: relative;
	text-align: left;
}
article .cards .thumb .name {
	background: hsla(0, 0%, 100%, 1);
	bottom: 0;
	padding: 8px 16px;
	position: absolute;
	right: 0;
	width: 180px;
}
article .cards .thumb .play {
	background: center center no-repeat url('./images/icons/icon_play.png');
	height: 100%;
	position: absolute;
	top: 0;
	width: 100%;
}
article .cards .description {
	margin: 0;
	padding: 16px 16px 16px 32px;
	text-align: left;
}
article .cards .description li {
	padding: 0;
}
article .cards .book {
	background: hsla(216, 12%, 40%, 1);
	border-radius: 4px;
	color: hsla(0, 0%, 100%, 1);
	display: inline-block;
	line-height: 40px;
	margin: 8px 0 24px 0;
	padding: 0 16px;
}
article .cards .book:hover {
	background: hsla(216, 12%, 55%, 1);
}
article .gallery {
	overflow: hidden;
	text-align: center;
}
article .gallery .picture {
	box-shadow: 0 1px 3px hsla(0, 0%, 33%, 1);
	display: inline-block;
}
article .services {
	overflow: hidden;
	margin: 0 0 -16px 0;
	text-align: center;
}
article .services .service {
	display: inline-block;
	margin: 0 0 16px 0;
	width: 148px;
}
article .services .icon {
	background: hsla(0, 0%, 100%, 1);
	border: 1px solid hsla(0, 0%, 87%, 1);
	border-radius: 50%;
	display: inline-block;
	height: 48px;
	padding: 23px;
	width: 48px;
}
@media (max-width: 479px) {
	article .gallery .picture {
		margin: 0 0 4% 4%;
		width: 47%;
	}
	article .gallery .picture:nth-child(2n+1) {
		margin-left: 0;
	}
}
@media (min-width: 480px) and (max-width: 639px) {
	article .gallery .picture {
		margin: 0 0 3% 3%;
		width: 30.6%;
	}
	article .gallery .picture:nth-child(3n+1) {
		margin-left: 0;
	}
}
@media (min-width: 640px) and (max-width: 899px) {
	article .gallery .picture {
		margin: 0 0 2% 2%;
		width: 22.9%;
	}
	article .gallery .picture:nth-child(4n+1) {
		margin-left: 0;
	}
}
@media (min-width: 668px) {
	article .avatar {
		float: left;
		margin: 8px 24px 8px 8px;
	}	
}
@media (min-width: 768px) {
	article .cards .card {
		float: left;
		margin: 0 1% 32px 1%;
		width: 32%;
	}
	article .cards .card:first-child {
		margin-left: 0;
	}
	article .cards .card:last-child {
		margin-right: 0;
	}
	article .cards .description {
		min-height: 110px;
	}
}
@media (min-width: 900px) {
	article .gallery .picture {
		margin: 0 0 1% 1%;
		width: 18.8%;
	}
	article .gallery .picture:nth-child(5n+1) {
		margin-left: 0;
	}
}

/* AREA - FOOTER */
footer {
	background: hsla(0, 0%, 19%, 1);
	color: hsla(0, 0%, 96%, 1);
	font-size: 14px;
	position: relative;
}
footer h1 {
	font-size: 30px;
}
footer .wrapper {
	padding-top: 24px;
	padding-bottom: 0;
}
footer .wrapper .left,
footer .wrapper .right {
	float: none;
}
footer .contacts {
	margin-bottom: 32px;
	overflow: hidden;
}
footer .contacts .badges {
	overflow: hidden;
	padding-top: 24px;
}
footer .contacts .badges .badge {
	float: left;
	padding: 14px 0;
}
footer .contacts .badges .code {
	float: left;
	line-height: 32px;
	padding: 0 24px;
}
footer .contacts .info {
	overflow: hidden;
	padding-top: 24px;
}
footer .contacts .info a {
	display: block;
	line-height: 32px;
	padding-left: 46px;
}
footer .contacts .info a:not(:last-child) {
	margin-bottom: 16px;
}
footer .contacts .info a.address {
	background: center left no-repeat url('./images/icons/icon_address.png');
	float: left;
}
footer .contacts .info a.email {
	background: center left no-repeat url('./images/icons/icon_email.png');
	float: left;
}
footer .contacts .info a.facebook {
	background: center left no-repeat url('./images/icons/icon_facebook.png');
	float: right;
	height: 32px;
}
footer .contacts .info a.instagram {
	background: center left no-repeat url('./images/icons/icon_instagram.png');
	float: right;
	height: 32px;
}
footer .contacts .info a.tel {
	background: center left no-repeat url('./images/icons/icon_tel.png');
	float: left;
	margin: 0 24px 0 0;
}
footer .contacts .info a.whatsapp {
	background: center left no-repeat url('./images/icons/icon_whatsapp.png');
	float: right;
	height: 32px;
	margin: 0;
}
footer .contacts .info div {
	overflow: hidden;
}
footer .maps {
	box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.5);
	margin-bottom: 32px;
}
@media (min-width: 700px) and (max-width: 767px) {
	footer .contacts .info {
		float: left;
		padding-right: 24px;
		width: 60%;
	}
	footer .contacts .badges {
		float: right;
		width: 40%;
	}
}
@media (min-width: 768px) {
	footer .wrapper .iframe {
		padding-top: 306px;
	}
	footer .wrapper .left {
		float: left;
		padding-right: 24px;
		width: 60%;
	}
	footer .wrapper .right {
		float: right;
		width: 40%;
	}
}

/* MISCELLANEUS */
.mfp-fade.mfp-bg {
	opacity: 0;
	-webkit-transition: all 0.15s ease-out;
	-moz-transition: all 0.15s ease-out;
	transition: all 0.15s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
	opacity: 0.8;
}
.mfp-fade.mfp-bg.mfp-removing {
	opacity: 0;
}
.mfp-fade.mfp-wrap .mfp-content {
	opacity: 0;
	-webkit-transition: all 0.15s ease-out;
	-moz-transition: all 0.15s ease-out;
	transition: all 0.15s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
	opacity: 1;
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
	opacity: 0;
}