/**
 * Theme Name: Eating the World Toronto
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
	--theme-icon-size: 24px;
	--theme-content-spacing: 1.5rem;
}
body {
	--wp--preset--font-size--small: 0.833em;
  --wp--preset--font-size--medium: 1em;
  --wp--preset--font-size--large: 1.3em;
  --wp--preset--font-size--x-large: clamp(1.5rem, calc(1.5rem + (3 - 1.5) * ((100vw - 42rem) / (66 - 42))), 3rem);	
	/* --wp--style--block-gap: 0.5em; */
}
html { 
	font-size: var(--theme-font-size); 
	line-height: var(--theme-line-height); 
}

.ct-header .ct-sticky-container div[data-row], #search-modal {
	backdrop-filter: blur(7.5px); 
}


/* MENU */

body.single-country [data-menu*=type-3]>ul>li#menu-item-10>a, 
body.tax-region [data-menu*=type-3]>ul>li#menu-item-10>a {
    background-color: var(--menu-indicator-active-color, var(--menu-indicator-hover-color, var(--theme-palette-color-2)));
}
body.single-country nav[class*=menu] li#menu-item-10>.ct-menu-link, body.single-country nav[class*=menu] li#menu-item-10,
body.tax-region nav[class*=menu] li#menu-item-10>.ct-menu-link, body.single-country nav[class*=menu] li#menu-item-10  {
    color: var(--theme-link-active-color, var(--theme-link-hover-color));
}

body.single-country  nav[class*=menu] li#menu-item-10>.ct-menu-link, body.single-country nav[class*=menu] li#menu-item-10>.ct-sub-menu-parent,
body.tax-region  nav[class*=menu] li#menu-item-10>.ct-menu-link, body.tax-region nav[class*=menu] li#menu-item-10>.ct-sub-menu-parent {
    color: var(--theme-link-active-color, var(--theme-link-hover-color));
}
body.single-country nav[class*=menu] li#menu-item-10>.ct-menu-link svg, body.single-country nav[class*=menu] li#menu-item-10>.ct-sub-menu-parent svg,
body.tax-region nav[class*=menu] li#menu-item-10>.ct-menu-link svg, body.tax-region nav[class*=menu] li#menu-item-10>.ct-sub-menu-parent svg {
    fill: var(--theme-icon-active-color, var(--theme-icon-hover-color, var(--theme-link-active-color, var(--theme-link-hover-color))));
}


/* TYPOGRAPHY */

.has-large-font-size {
	line-height: 1.4;
}

.entry-content h1.wp-block-heading + h2.wp-block-heading {
	margin-top: calc(var(--has-theme-content-spacing, 1)*(.3em + 10px));
}
.entry-content h1 {
	margin-bottom: var(--has-theme-content-spacing);
}



.ct-breadcrumbs {
	font-family: Raleway;
	font-weight: 600;
}
.ct-comments, .wpforms-block, .wpforms-field-label {
	font-family: Raleway;
}
.ct-comment-content {
	font-size: 1rem;
}
.entry-button {
	font-family: Raleway;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
}

.wp-block-table { 
	font-family: Raleway;
}	

.post-navigation > a .item-label {
	font-family: Raleway;
	letter-spacing: 0.1em;
}
.post-navigation > a .item-title {
	font-size: 1rem;
}

/* OTHER */

.wp-block-separator:not(.is-style-dots) {
    height: 1px;
}

/* fix image gallery */

.wp-block-gallery.has-nested-images figure.wp-block-image {
	  flex-grow: inherit;
}


/* LINKS */

body[data-link='type-1'] .entry-content a,
body[data-link='type-1'] .entries a,
body[data-link='type-1'] .ct-footer a {
  background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-position: 0% 100%;
  background-repeat: no-repeat;
	transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); 
}
	body[data-link='type-1'] .entry-content a:hover,
	body[data-link='type-1'] .entries a:hover 	{
		background-size: 0% 1px;
	}

body[data-link='type-1'] .entry-content a.revert,
body[data-link='type-1'] .ct-footer a  {
	color: inherit;
	background-size: 0% 1px;
}
	body[data-link='type-1'] .entry-content a.revert:hover,
	body[data-link='type-1'] .ct-footer a:hover 	{
		color: var(--theme-link-initial-color);
		background-size: 100% 1px;
	}

body[data-link='type-1'] a.ct-image-container, body[data-link='type-1'] a.wp-block-button__link, body[data-link='type-1'] .entry-content a.icon,
body[data-link='type-1'] .ctf-context a, body[data-link='type-1'] .ctf-author-box a,
body[data-link='type-1'] .entry-content :is(h1,h2,h3,h4,h5,h6) > a, body[data-link='type-1'] .entries :is(h1,h2,h3,h4,h5,h6) > a   {
	background-image: none;
	background-size: 0% 0px;
}

body[data-link='type-1'] .entry-content a.icon:hover svg{
	fill: var(--theme-palette-color-1);
}


/* SEARCH */

.ct-search-item img {
	border-radius: 50%;
}
.search-results .ct-dynamic-filter {
	display: none;
}

/* LISTS */


ul.nobullet, ul.is-style-nobullet {
	--theme-list-indent: 0;
  --theme-list-style-type: none;
  --theme-content-spacing: 0;
}
	ul.nobullet li {
		margin-bottom: 0;
	}
	


/* COUNTRY */

.single-country .hero-section {
	position: relative;
}
.single-country .hero-section h2 {
	margin-top: 0;
	font-weight: 400;
}

.ct-media-container.map {
    opacity: .1;
    max-width: 100%;
    position: relative;
    height: 100%;
		width: auto;
    position: absolute;
		z-index: -1;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
		margin: 0 !important;
}


.ct-media-container.flag {
	height: 50px;
  width: 100%;
	margin-top: 0 !important;
}
	.ct-media-container.map img {
			object-fit: contain; 
			width: auto;
	}
	.ct-media-container.flag img {
		object-fit: initial; 
		width: auto;
		margin: 0 auto;
		border: solid 1px #ccc;
	}

.hentry .ct-share-box {
  flex-direction: row;
  align-items: center;
}
.hentry .ct-share-box .ct-module-title:is(p,span):not(:empty) {
	margin-bottom: 0;
	padding-right: 10px;
}
.hentry .ct-share-box[data-type=type-2] .ct-icon-container {
    padding: 10px ;
}

.countries-list {
	padding: 1rem 0;
}

@media (min-width: 690px) {
	.countries-list {
		column-count: 2;
		column-gap: 1.5rem;
	}
}
.countries-list h3, .countries-list h3 > a {
	text-transform: uppercase;
	font-size: 1rem;
}
.countries-list h3 {	
	border-bottom: solid 1px var(--theme-palette-color-4);
	padding-bottom: 1rem;
	break-after: avoid; 
	break-inside: avoid;
}
.countries-list h3 > a {
	color: inherit; 
} 
	.countries-list h3 > a:hover {
		color: var(--theme-palette-color-2); 
	} 

ul.countries { 
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	column-count: 2;
	column-gap: 1rem;	
	font-family: Raleway;
	font-size: 0.85em;
	break-inside: avoid;
}
@media (min-width: 690px) {
	column-count: 3;
}
ul.countries > li {
	display: block;
	font-size: 1em;
	margin-bottom: 9px;
}
ul.countries > li > a {
	text-transform: none;
}

body .mobile-menu[data-submenu-dots=no] [class*=children]>ul {
    padding-inline-start: 0;
}


/* RESTAURANT INFO */

.wp-block-table.restaurant {
	border-top: solid 1px var(--theme-palette-color-4, #edeee6);
}

		
.wp-block-table.restaurant table {
	border-width: 0;
}
.wp-block-table.restaurant table:not(.has-border-color) thead, .wp-block-table.restaurant table:not(.has-border-color) tfoot, .wp-block-table.restaurant table:not(.has-border-color) td, .wp-block-table.restaurant table:not(.has-border-color) th {
	border-color: #8c0e03;
	border-width: 0;
}

.wp-block-table.restaurant td, .wp-block-table.restaurant th {
    border: 0px solid;
    padding: 0.5em;
		vertical-align: top;
}
.wp-block-table.restaurant td:first-child { font-weight: 600; }

.wp-block-table.restaurant a[href*="google"] {
	background-size: 0;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 0.1em;
	font-weight: 600;	
}
.wp-block-table.restaurant a[href*="google"]:after {
	content: " →";
}

