/*
Theme Name: VGKE Site Theme
Author: Igor Platunov
*/

*
{
    box-sizing: border-box;
}

/* Responsibility */

@font-face {
    font-family: "Bahnschrift";
    src: url("assets/fonts/bahnschrift.ttf") format("truetype");
}

@media (width <= 960px)
{
	.hide-on-mobile
	{
		display: none !important;
	}
}

@media (width > 960px)
{
	.hide-on-desktop
	{
		display: none !important;
	}
}

.entry-content
{
	width: 100%;
}

/* Tables */

:is(.wp-block-table > table, table.theme-style) { width: 100%; }

:is(.wp-block-table > table, table.theme-style) > thead { border-bottom: 0; }
:is(.wp-block-table > table, table.theme-style) > tfoot { border-top: 0; }

:is(.wp-block-table > table, table.theme-style) :is(td, th)
{
	border: 1px solid black;
	padding: 1em;
	margin: 1px;
	text-align: center;
}

:is(.wp-block-table > table, table.theme-style) th
{
	font-weight: 600;
}

:is(.wp-block-table > table, table.theme-style) > thead
{
	color: var(--wp--preset--color--secondary-text);
	background-color: var(--wp--preset--color--primary);
}

:root :is(.wp-block-table > table, table.theme-style) > tbody > tr.theme-style-row,
:is(.wp-block-table > table, table.theme-style) > tbody > tr:nth-child(odd)
{
	background-color: rgba(255, 255, 255, 1);
}

:root :is(.wp-block-table > table, table.theme-style) > tbody > tr.theme-style-row2,
:is(.wp-block-table > table, table.theme-style) > tbody > tr:nth-child(even),
:is(.wp-block-table > table, table.theme-style) > tfoot > tr
{
	background-color: rgba(230, 230, 230, 1);
}

/* Block extended styles */

.wp-block-post-featured-image :where(img)
{
	width: 10000px !important;
	object-fit: contain !important;
	max-height: 35em;
}

/* Navigation block */

.has-modal-open .wp-block-navigation-submenu
{
	row-gap: 0.5em !important;
}
.has-modal-open .wp-block-navigation__submenu-container
{
	border-left: 1px dashed var(--wp--preset--color--secondary-text) !important;
	padding-left: 0.5em !important;
	row-gap: 0.5em !important;
}

.wp-block-site-logo
{
	height: 100%;
}

@media (width <= 1280px) and (width > 960px)
{
	body
	{
		font-size: 12px;
	}

	:root
	{
		--wp--style--global--content-size: 960px;
		--wp--style--global--wide-size: 960px;
	}
}

@media (width < 900px)
{
	.main-page-slider.wp-block-kadence-advancedgallery .kb-gallery-image-ratio-land31
	{
		padding-bottom: 50% !important;
	}
}

.main-page-slider .kadence-blocks-gallery-item__caption
{
	text-shadow: black 2px 2px 4px;
}

.wp-block-column
{
	word-break: inherit;
	overflow-wrap: inherit;
}

p /* p, h1, h2, h3, h4, h5, h6, .wp-block-list li */
{
	text-align: justify;
}

.wp-block-list li
{
	margin-bottom: 0.5em;
}

wp-block-list li:last-child
{
	margin-bottom: 0;
}

.wp-block-image img
{
	vertical-align: unset;
}

.wp-block-accordion-heading__toggle
{
	padding: 0.5em;
	gap: 0.5em;
}
.wp-block-accordion-heading__toggle-icon
{
	width: 0.5em;
	height: 0.5em;
	font-size: 1.5em;
}

/* Plugins */

/* GTranslate */

.hide-on-mobile .gglobe { width: 2em; height: 2em; }
.hide-on-desktop .gglobe { width: 1.5em; height: 1.5em; }

/* BVI */ 

.hide-on-mobile .bvi-shortcode { width: 2em; padding: 0; }
.hide-on-desktop .bvi-shortcode { width: 1.5em; padding: 0; }

div.bvi-shortcode .bvi-svg-eye
{
	width: unset;
	height: unset;
}

/* Kadence */

.wp-block-kadence-navigation .navigation,
.wp-block-kadence-navigation .menu-container
{ display: block; }

.wp-block-kadence-navigation .menu { justify-content: space-between; }

.loop-entry .post-thumbnail img
{
	object-fit: contain !important;
}