/*
 ************************************************************
 *
 * BASE
 *
 ************************************************************
 *
 * ----------------------------------------------------------
 *
 * GLOBAL
 *
 * ----------------------------------------------------------
 *
 * - ROOT
 */

:root
{
	--font-body: 'Proxima Nova', Arial, sans-serif;
	--font-feat: 'Proxima Nova', Arial, sans-serif;
	--color-white: #ffffff;
	--color-black: #000000;
	--color-gray: #9898a7;
	--color-lightgray-1: #f9f9fd;
	--color-lightgray-2: #e8e8f5;
	--color-lightgray-3: #e7e7f1;
	--color-cvi-1: #342b60;
	--color-cvi-2: #4dbed2;
	--color-cvi-3: #e4067d;
	--color-cvi-4: #800e3e;
}

body
{
	font-family: var(--font-body);
}

/*
 * - HEADING
 */

h1,
h2,
h3,
h4,
h5,
h6
{
	font-family: var(--font-feat);
}

.template-page .entry-content-wrapper h1,
.template-page .entry-content-wrapper h2
{
	letter-spacing: 0;
}

.av-thin-font .av-special-heading-tag,
.modern-quote .av-special-heading-tag
{
	font-weight: 600;
}

/*
 * - TYPO
 */

::marker
{
	font-weight: 600;
	color: var(--color-cvi-3);
}

sup
{
	font-size: 50% !important;
}

p,
ul,
ol,
table,
blockquote,
#top .article .avia-gallery,
#top .article .wp-caption
{
	margin: 2em 0;
}

p:first-child,
ul:first-child,
ol:first-child,
table:first-child,
blockquote:first-child
{
	margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child,
table:last-child,
blockquote:last-child
{
	margin-bottom: 0;
}

b,
b a,
strong,
strong a,
.av-thin-font strong,
.modern-quote strong
{
	font-weight: 600;
}

.main_color b,
.main_color a b,
.main_color strong,
.main_color a strong,
.alternate_color b,
.alternate_color a b,
.alternate_color strong,
.alternate_color a strong
{
	color: var(--color-cvi-1);
}

.main_color a:hover b,
.main_color a:hover strong,
.alternate_color a:hover b,
.alternate_color a:hover strong
{
	color: var(--color-cvi-1);
}

.special_amp
{
	color: inherit !important;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	font-weight: 400;
}

blockquote
{
	clear: both;
	padding: 24px;
	border-left-width: 4px;
	font-weight: 400;
	font-size: 1em;
}

.main_color blockquote,
.alternate_color blockquote
{
	border-color: var(--color-cvi-2);
	background-color: var(--color-lightgray-1);
}

.header_color blockquote,
.footer_color blockquote
{
	border-color: var(--color-white);
	background-color: rgba(255, 255, 255, 0.1);
}

/*
 * ----------------------------------------------------------
 *
 * WORDPRESS CLASSES
 *
 * ----------------------------------------------------------
 *
 * - IMAGE
 */

#top img
{
	display: block;
}

#top figure
{
	width: auto !important;
}

@media only screen and (max-width: 479px)
{
	.responsive #top figure img
	{
		width: 100%;
		height: auto;
	}
}

/*
 * - ALIGN
 */

.alignleft,
.alignright,
.aligncenter,
.alignleft img,
.alignright img,
.aligncenter img
{
	display: block;
	position: relative;
}

.alignleft
{
	float: left;
	margin: 0px 32px 0px 0;
}

.alignright
{
	float: right;
	margin: 0px 0px 0px 32px;
}

.aligncenter
{
	clear: both;
	margin: 24px auto;
}

@media only screen and (max-width: 989px)
{
	.responsive .alignleft,
	.responsive .alignright,
	.responsive .aligncenter
	{
		clear: both;
		float: none;
		margin: 24px 0;
		margin-right: auto;
	}
}

@media only screen and (min-width: 990px)
{
	.responsive .alignleft
	{
		margin: 0px 32px 32px 0;
	}
	.responsive .alignright
	{
		margin: 0px 0px 32px 32px;
	}
	.responsive .aligncenter
	{
		margin: 32px auto;
	}
}

/*
 * - CAPTION
 */

#top .wp-caption,
#top .wp-caption img
{
	border: none;
}

#top .wp-caption,
#top .wp-caption p,
#top .wp-caption figcaption
{
	font-family: 'Muli', Arial, sans-serif;
	font-style: normal;
	font-size: 13px;
	text-align: left;
	margin: 0;
	padding: 0;
}

#top .wp-caption img
{
	padding: 0;
}

#top .wp-caption p,
#top .wp-caption figcaption
{
	font-size: 15px;
	margin-top: 16px;
	color: var(--color-gray);
}

/*
 * ----------------------------------------------------------
 *
 * WORDPRESS GALLERY
 *
 * ----------------------------------------------------------
 *
 * - COLUMNS
 */

#top .gallery-columns-1
{
	grid-template-columns: repeat(1, 1fr);
}

#top .gallery-columns-2
{
	grid-template-columns: repeat(2, 1fr);
}

#top .gallery-columns-3
{
	grid-template-columns: repeat(3, 1fr);
}

#top .gallery-columns-4
{
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5
{
	grid-template-columns: repeat(5, 1fr);
}

#top .gallery-columns-6
{
	grid-template-columns: repeat(6, 1fr);
}

#top .gallery-columns-7
{
	grid-template-columns: repeat(7, 1fr);
}

#top .gallery-columns-8
{
	grid-template-columns: repeat(8, 1fr);
}

#top .gallery-columns-9
{
	grid-template-columns: repeat(9, 1fr);
}

/*
 * - GRID
 */

.gallery
{
	display: grid;
	margin: 32px 0;
	grid-template-columns: repeat(4, 1fr);
}

#top .gallery + .button
{
	margin-top: -16px;
}

@media only screen and (max-width: 767px)
{
	.responsive #top .gallery
	{
		grid-gap: 8px;
	}
}

@media only screen and (min-width: 768px)
{
	.responsive #top .gallery
	{
		grid-gap: 12px;
	}
}

/*
 * - ITEM
 */

#top .gallery .gallery-icon,
#top .gallery .gallery-item
{
	margin: 0;
	padding: 0;
}

#top .gallery .gallery-icon.plus a
{
	position: relative;
	color: var(--color-cvi-3);
}

#top .gallery .gallery-icon.plus a:hover
{
	color: var(--color-cvi-1);
}

#top .gallery .gallery-icon.plus a::before
{
	content: "\e816";
	font-family: 'entypo-fontello';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-lightgray-1);
}

@media only screen and (max-width: 767px)
{
	.responsive #top .gallery .gallery-icon.plus a::before
	{
		font-size: 20px;
	}
}

@media only screen and (min-width: 768px)
{
	.responsive #top .gallery .gallery-icon.plus a::before
	{
		font-size: 32px;
	}
}

#top .gallery .gallery-item
{
	width: auto;
	height: auto;
}

#top .gallery .gallery-item.first
{
	grid-column: span 2;
	grid-row: span 2;
}

#top .gallery br,
#top .gallery .gallery-item:nth-child(n+6)
{
	display: none !important;
}

/*
 * - ELEMENT
 */

#top .gallery a,
#top .gallery a img
{
	display: block;
	position: relative;
	max-width: 100%;
	border: none;
}

#top .gallery:after
{
	content: '';
	display: none;
	clear: both;
}

#top .gallery figure img
{
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
	margin: 0;
}