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

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

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

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

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

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

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

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

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

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

/*
 * - GRID
 */

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

@media (max-width: 544px)
{
	#content .gallery
	{
		grid-gap: 8px;
	}
}

@media (min-width: 545px)
{
	#content .gallery
	{
		grid-gap: 12px;
	}
}

/*
 * - ITEM
 */

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

#content .gallery .gallery-item
{
	position: relative;
	width: auto;
	height: auto;
	max-width: none;
}

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

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

#content .gallery .gallery-icon .gallery-more
{
	background-color: var(--ast-global-color-0);
}

#content .gallery .gallery-icon .gallery-more::before
{
	content: 'Vaata kõiki';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	font-size: 16px;
	padding: 10px;
	color: var(--ast-global-color-5);
}


@media (max-width: 544px)
{
	#content .gallery .gallery-icon .gallery-more::before
	{
		font-size: 13px;
	}
}

#content .gallery .gallery-icon .gallery-more img
{
	opacity: 0.1;
}

#content .gallery .gallery-icon .gallery-more:hover img
{
	opacity: 1;
}

#content .gallery .gallery-icon .gallery-more:hover::before
{
	opacity: 0;
}

/*
 * - ELEMENT
 */

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

#content .gallery p,
#content .gallery-caption
{
	display: none;
}

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

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

.grecaptcha-badge
{
	right: -9999px !important;
}

/*
 * ----------------------------------------------------------
 *
 * CUSTOM
 *
 * ----------------------------------------------------------
 *
 * - TAGS
 */

.tags a,
.tags li,
.tags ul
{
	display: flex; 
}

.tags ul
{
	flex-flow: row wrap;
	align-items: center;
	list-style: none;
	grid-gap: 10px;
	margin: 0;
	padding: 0;  
}


.tags h2
{
	margin-bottom: .7em;
	font-weight: 400;
	font-size: 15px;
}

@media (max-width: 990px)
{
	.tags h2
	{
		text-align: center;
	}
	.tags ul
	{
		justify-content: center;
	}
}

.tags a
{
	font-size: 14px;
	padding: 0.25em 0.75em;
	border: 1px solid var(--ast-global-color-8);
	text-decoration: none !important;
}

.tags a:hover
{
	background-color: var(--ast-global-color-2);
	border-color: var(--ast-global-color-2);
	color: var(--ast-global-color-5);
}

/*
 * - CATS
 */

.cats ul,
.cats li a
{
	display: flex; 
}

.cats ul
{
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	grid-gap: 20px;
	margin: 0;
	padding: 0;  
}

@media (max-width: 544px)
{
	.cats ul
	{
		display: none;
	}
}

.cats li a
{
	line-height: 16px;
	padding: 13px 0;
	border: 2px solid transparent;
}

.cats li.active a
{
	padding-left: 30px;
	padding-right: 30px;
	border-radius: 25px;
	border-color: var(--ast-global-color-2);
}


.cats select
{
	padding: 13px 30px;
	padding-right: 50px;
	border-radius: 25px;
	border-color: var(--ast-global-color-2);
	background-position: 90% 50%;
	background-color: transparent;
	color: var(--ast-global-color-3);
}

@media (min-width: 545px)
{
	.cats select
	{
		display: none;
	}
}

/*
 * - ATTRIBUTES
 */

.attributes
{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

/*
 * - RECOMMEND
 */

.irecommendthis::before
{
	width: 2em;
	height: 2em;
	filter: brightness(0) saturate(100%) invert(56%) sepia(10%) saturate(697%) hue-rotate(246deg) brightness(90%) contrast(90%);
}

.irecommendthis.active::before
{
	transform: scale(1) translateY(-50%);
	filter: brightness(0) saturate(100%) invert(56%) sepia(10%) saturate(697%) hue-rotate(246deg) brightness(90%) contrast(90%);
}

.irecommendthis:hover::before
{
	transform: scale(1.2) translateY(-50%);
	filter: brightness(0) saturate(100%) invert(32%) sepia(10%) saturate(755%) hue-rotate(239deg) brightness(88%) contrast(91%);
}

.irecommendthis,
.irecommendthis:hover,
.irecommendthis.active
{
	margin: 0;
	padding-left: 2.5em;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 20px;
	color: var(--ast-global-color-2) !important;
}

.irecommendthis path
{
	fill: var(--ast-global-color-2) !important;
}

/*
 * - CONTACT PERSON
 */

.contact-person,
.contact-person .col
{
	display: flex;
}

.contact-person .col
{
	flex-direction: column;
}

.contact-person .col img
{
	border-radius: 50%;
}

.contact-person
{
	flex-direction: row;
	align-items: center;
	grid-gap: 30px;
}

@media (max-width: 990px)
{
	.contact-person
	{
		flex-direction: column;
		grid-gap: 10px;
	}
}

@media (min-width: 768px) and (max-width: 990px)
{
	.contact-person
	{
		align-items: flex-start;
	}
}

/*
 * ----------------------------------------------------------
 *
 * ASTRA
 *
 * ----------------------------------------------------------
 *
 * - BUTTON
 */

.ast-builder-button-wrap
{
	text-align: center;
}

/*
 * - LOAD MORE
 */

.ast-load-more
{
	border: none;
	transition: all 0.2s linear;
	color: var(--ast-global-color-2);
}

.ast-load-more.no-more
{
	display: none !important;
}

/*
 * - PAGINATION
 */

.ast-pagination
{
	padding-top: 40px;
}

.ast-pagination .nav-links
{
	display: flex;
}

.ast-pagination .page-numbers
{
	width: 40px;
}

.ast-pagination .page-numbers,
.ast-pagination .prev.page-numbers,
.ast-pagination .next.page-numbers
{
	height: 40px;
}

.ast-pagination .prev.page-numbers,
.ast-pagination .next.page-numbers
{
	display: flex;
	flex-grow: 1;
	line-height: 1.2em;
	padding: 0;
	font-size: 2em;
}

.pagination .prev.page-numbers
{
	justify-content: flex-start;
}

.pagination .next.page-numbers
{
	justify-content: flex-end;
}

.ast-pagination .page-numbers.current
{
	border: 1px solid var(--ast-global-color-3);
	color: var(--ast-global-color-1);
}

/*
 * - SHARING
 */

@media (max-width: 990px)
{
	.ast-post-social-sharing
	{
		align-items: center;
		margin-top: 2em;
		padding-top: 2em;
		border-top: 1px solid var(--ast-global-color-8);
	}
}

@media (min-width: 991px)
{
	.ast-post-social-sharing
	{
		margin-top: -65px;
	}
}

.ast-post-social-sharing .ast-social-inner-wrap
{
	height: 30px;
	padding-top: 0;
}

.ast-post-social-sharing .ast-social-sharing-heading
{
	margin-bottom: .7em;
	font-weight: 400;
	font-size: 15px;
}

.ast-post-social-sharing .ast-social-element svg
{
	fill: var(--ast-global-color-3);
}

.ast-post-social-sharing .ast-social-icon-a:hover .ast-social-element svg
{
	fill: var(--ast-global-color-2);
}

/*
 * - MASONRY
 */

.masonry .attributes
{
	margin-left: 1em;
	margin-right: 1em;
	margin-bottom: 1em;
}

.masonry .ast-blog-featured-section.post-thumb
{
	margin-bottom: 1em;
}

.masonry .entry-title
{
	margin-left: 0.7em;
	margin-right: 0.7em;
	margin-bottom: 0.2em;
}

.masonry .entry-content a
{
	color: var(--ast-global-color-2);
}

.masonry .ast-article-inner
{
	background-color: var(--ast-global-color-5);
}

.masonry .ast-article-inner:hover
{
	background-color: var(--ast-global-color-2);
}

.masonry .ast-article-inner:hover .entry-content,
.masonry .ast-article-inner:hover .entry-content a
{
	color: var(--ast-global-color-3);
}

.masonry .ast-article-inner:hover .entry-title a,
.masonry .ast-article-inner:hover .entry-content a:hover
{
	color: var(--ast-global-color-5);
}

/*
 * ----------------------------------------------------------
 *
 * ELEMENTOR
 *
 * ----------------------------------------------------------
 *
 * - BUTTON
 */

.elementor-button-wrapper .elementor-button
{
	width: 100%;
}

/*
 * - WIDGET
 */

.elementor-widget-text-editor p:last-child
{
	margin-block-end: 0 !important;
}

/*
 * ----------------------------------------------------------
 *
 * ELEMENTOR
 *
 * ----------------------------------------------------------
 *
 * - BUTTON
 */

/*
 ************************************************************
 *
 * PLUGIN
 *
 ************************************************************
 *
 * ----------------------------------------------------------
 *
 * FILTER
 *
 * ----------------------------------------------------------
 *
 * - BASE
 */

#page .wpc-filter-header,
#page .wpc-edit-filter-set,
#page .wpc-instead-of-posts-found,
#page .wpc-filters-labels::after,
#page .wpc-filters-labels li.wpc-term-item input
{
	display: none;
}

@media screen and (max-width: 768px)
{
	#page .wpc-open-close-filters-button
	{
		margin-bottom: 0;
	}
}

/*
 * - WRAP
 */

#page .widget_wpc_filters_widget
{
	position: relative;
	margin-bottom: 40px;
}

#page  .wpc-filter-content
{
	width: 100%;
}

#page .wpc-filters-section,
#page .wpc-filters-section select
{
	margin: 0;
}

#page .wpc-filters-section select
{
	border: none;
	font-size: 15px;
}

#page .wpc-filters-section
{
	width: auto;
	max-width: none;
}

#page .wpc-filters-widget-wrapper
{
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

#page .wpc-filters-widget-containers-wrapper
{
	padding: 20px;
	background-color: var(--ast-global-color-8);
}

@media only screen and (max-width: 990px)
{

	#page .wpc-filters-widget-wrapper
	{
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 544px)
{

	#page .wpc-filters-widget-wrapper
	{
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

/*
 * - CONTAINER
 */

#page .wpc-filters-widget-top-container
{
	border: none;
}

#page .wpc-filters-widget-top-container,
#page .wpc-filters-widget-top-container::before
{
	background: none;
}

#page .wpc-filters-widget-top-container .wpc-inner-widget-chips-wrapper
{
	overflow-y: auto;
}

/*
 * - LIST: CHIPS
 */

#page .wpc-filter-chips-list
{
	display: flex;
	grid-gap: 10px;
}

#page .wpc-filter-chips-list li
{
	margin: 0;
	margin-bottom: 20px;
}

#page .wpc-filter-chips-list li:not(:first-child)
{
	display: none !important;
}

#page .wpc-filter-chips-list li a
{
	padding: 0;
	border-radius: 0;
	border: none;
	color: var(--ast-global-color-1);
}

#page .wpc-chip-content
{
	display: flex;
	grid-gap: 10px;
}

#page .wpc-filter-chip-name
{
	order: 1;
}

#page .wpc-chip-remove-icon
{
	font-family: "Font Awesome 5 Free";
	display: inline-block;
	font-size: 0;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
	order: 0;
}

#page .wpc-chip-remove-icon::before
{
	content: "\f01e";
	font-weight: 900;
	font-size: 16px;
	color: var(--ast-global-color-2);
}

#page .wpc-filter-chips-list li a:hover
{
	color: var(--ast-global-color-2);
}

#page .wpc-filter-chips-list li.wpc-chip-reset-all .wpc-filter-chip-name::before
{
	margin-right: 0.8em;
	font-size: 16px;
}