/*  -----------------------------------------------------------------------------------------------
  Defaults - Classic & Guternberg
  @package v.1.0.0
--------------------------------------------------------------------------------------------------- */

/* Captions */

[class^="wp-block-"]:not(.wp-block-gallery) figcaption,
.wp-caption-text
{
	font-style: italic;
	text-align: left;
	font-size: 14px;
	opacity: .75;
	text-align: center;
}

/*--------------------------------------------------------------
2.0 Blocks - Common Blocks
--------------------------------------------------------------*/

/* Paragraph */

p.has-drop-cap:not(:focus)::first-letter 
{
	font-size: 100px;
	margin: 10px 12px 12px 0;
}

p.has-drop-cap:not(:focus):after
{
	display: none;
}

/* Image */

figure
{
	margin: 0;
}

.wp-block-image 
{
	margin-bottom: 24px;
	
	& + p
	{
		&:first-of-type
		{
			margin-top: -5px;
		}
	}
}

.wp-block-image figure 
{
	margin-bottom: 0;
	margin-top: 0;
}

.wp-block-image figure.alignleft 
{
	margin-right: 32px;
}

.wp-block-image figure.alignright 
{
	margin-left: 32px;
}

/* Gallery */

.wp-block-gallery {
	margin-bottom: 24px;
}

.wp-block-gallery figcaption 
{
	font-style: italic;
	font-size: 14px;
	opacity: .75;
	text-align: center;
}

.wp-block-gallery.aligncenter 
{
	display: flex;
	margin: 0 -8px;
}

.blocks-gallery-grid, .wp-block-gallery
{
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

// Jetpack SlideShow

.wp-block-jetpack-slideshow
{
	 .wp-block-jetpack-slideshow_slide
	 {
	 	background: none;
	 	
 		figure
 		{
 			img
 			{
 				width: 100%;
 				height: 100%;
 				object-fit: cover;
 			}
 		}
	 }
}

/* Quote */

.wp-block-quote 
{
	border: 1px solid $grey;
	border-left: 2px solid $accent_color;
	padding: 24px;
	font-size: 24px;
	
	p
	{
		margin: 0;
	}
}

.wp-block-quote.alignleft p:last-of-type,
.wp-block-quote.alignright p:last-of-type 
{
	margin-bottom: 0;
}

// .wp-block-quote cite 
// {
// 	color: inherit;
// 	font-size: inherit;
// }

/* Audio */

.wp-block-audio audio 
{
	display: block;
	width: 100%;
	margin-bottom: 24px;
}

/* Cover */

.wp-block-cover-image.alignright,
.wp-block-cover.alignright,
.wp-block-cover-image.alignleft,
.wp-block-cover.alignleft,
.wp-block-cover-image.aligncenter,
.wp-block-cover.aligncenter 
{
	display: flex;
}

/* File */

.wp-block-file .wp-block-file__button 
{
	@extend .bgblack;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	border-radius: 2px;
	box-shadow: none;
	@extend .white;
	display: inline-block;
	font-size: 16px;
	font-weight: 800;
	margin-top: 2em;
	padding: 0.7em 2em;
	transition: background-color 0.2s ease-in-out;
	white-space: nowrap;
}

.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus 
{
	@extend .bgaccent;
	box-shadow: none;
}

/*--------------------------------------------------------------
3.0 Blocks - Formatting
--------------------------------------------------------------*/

/* Code */

.wp-block-code 
{
	background: transparent;
	border: 0;
	padding: 0;
}

/* Pullquote */

.wp-block-pullquote 
{
	border: 0;
	padding: 24px 0;
}

.wp-block-pullquote__citation,
.wp-block-pullquote cite 
{
	font-size: inherit;
	text-transform: none;
}

.highlight
{
	background: $accent_color;
	padding: 2px;
}

/* Table */
table
{
	margin-bottom: 24px;
}

.wp-block-table thead th,
table th
{
	border-bottom: 2px solid #bbb;
	padding-bottom: 0.5em;
}

.wp-block-table tr,
table tr
{
	border-bottom: 1px solid #eee;
}

.wp-block-table th,
.wp-block-table td ,
table th,
table td
{
	border: 0;
}

/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/

/* Buttons */

.wp-block-button
{
	margin-bottom: 24px;
}

.wp-block-button .wp-block-button__link 
{
	box-shadow: none;
	display: inline-block;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
	margin-top: 24px;
	padding: 12px 24px;
	transition: background-color 0.2s ease-in-out;
	white-space: nowrap;
	@extend .white;
}

.entry-content .wp-block-button__link 
{
	@extend .bgaccent;
	@extend .white;
	text-transform: uppercase;
}

.entry-content .is-style-outline .wp-block-button__link:not(.has-background) 
{
	background-color: transparent;
}

.entry-content .is-style-outline .wp-block-button__link:not(.has-text-color) 
{
	@extend .black;
}

.colors-dark .wp-block-button__link 
{
	@extend .bgwhite;
	@extend .black;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus,
.entry-content .is-style-outline .wp-block-button__link:not(.has-background):hover,
.entry-content .is-style-outline .wp-block-button__link:not(.has-background):focus 
{
	box-shadow: none;
	@extend .bgblack;
	@extend .white;
}

.colors-dark .entry-content .wp-block-button__link:hover,
.colors-dark .entry-content .wp-block-button__link:focus,
.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-background):hover,
.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-background):focus 
{
	@extend .bgaccent;
	@extend .black;
}

.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-text-color) 
{
	@extend .white;
}

.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-text-color):hover,
.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-text-color):focus 
{
	@extend .black;
}

.colors-custom .entry-content .wp-block-button__link,
.colors-custom .entry-content .wp-block-button__link:hover,
.colors-custom .entry-content .wp-block-button__link:focus,
.colors-dark .entry-content .wp-block-button__link,
.colors-dark .entry-content .wp-block-button__link:hover,
.colors-dark .entry-content .wp-block-button__link:focus 
{
	box-shadow: none;
}

.colors-custom .entry-content .wp-block-button__link:hover,
.colors-custom .entry-content .wp-block-button__link:focus 
{
	@extend .white;
}

/* Separator */

.wp-block-separator 
{
	// border: 0;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) 
{
	max-width: 100px;
}

/* Media & Text */

.wp-block-media-text {
	margin-bottom: 24px;
}

.wp-block-media-text *:last-child 
{
	margin-bottom: 0;
}

.wp-block-media-text
{
	@include media('<=tablet')
	{
		grid-template-columns: 100%;
	}

	.wp-block-media-text__content
	{
		@include media('<=tablet')
		{
			grid-column: 1;
			grid-row: 2;
			padding: 0;
		}

		.has-large-font-size
		{
			@include media('<=tablet')
			{
				font-size: 18px;
			}
		}
	}
}

.wp-block-columns
{
	align-items: center;
	
	.wp-block-column
	{
		p
		{
			@include media('<=tablet')
			{
				font-size: 18px !important;	
			}
		}
		figure
		{
			display: flex;
			margin-bottom: 0;
		}
	}
}

/*--------------------------------------------------------------
5.0 Blocks - Widgets
--------------------------------------------------------------*/

/* Archives, Categories & Latest Posts */

.wp-block-archives.aligncenter,
.wp-block-categories.aligncenter,
.wp-block-latest-posts.aligncenter 
{
	list-style-position: inside;
	text-align: center;
}

/* Comments */

.wp-block-latest-comments
{
	margin: 24px 0;
}


.blog:not(.has-sidebar) #primary .wp-block-latest-comments article,
.archive:not(.page-one-column):not(.has-sidebar) #primary .wp-block-latest-comments article,
.search:not(.has-sidebar) #primary .wp-block-latest-comments article 
{
	float: none;
	width: 100%;
}

.wp-block-latest-comments .avatar,
.wp-block-latest-comments__comment-avatar 
{
	border-radius: 0;
}

.wp-block-latest-comments a 
{
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);

}

.wp-block-latest-comments__comment-meta
{
	font-size: 16px;
	font-size: 1rem;
	margin-bottom: 0.4em;
}

.wp-block-latest-comments__comment-author,
.wp-block-latest-comments__comment-link 
{
	font-weight: 700;
	text-decoration: none;
}

.wp-block-latest-comments__comment-date 
{
	font-size: 10px;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.1818em;
	margin-top: 0.4em;
	text-transform: uppercase;
}

.editor-block-list__block .wp-block-latest-comments__comment-excerpt p 
{
	font-size: 14px;
	font-size: 0.875rem;
}

/*--------------------------------------------------------------
6.0 Blocks - Colors
--------------------------------------------------------------*/

.entry-content .has-pale-pink-color 
{
	color: #f78da7;
}

.entry-content .has-pale-pink-background-color,
.wp-block-button.is-style-outline .has-pale-pink-background-color:link
{
	background-color: #f78da7;
}

.entry-content .has-vivid-red-color 
{
	color: #cf2e2e;
}

.entry-content .has-vivid-red-background-color,
.wp-block-button.is-style-outline .has-vivid-red-background-color:link 
{
	background-color: #cf2e2e;
}

.entry-content .has-luminous-vivid-orange-color 
{
	color: #ff6900;
}

.entry-content .has-luminous-vivid-orange-background-color,
.wp-block-button.is-style-outline .has-luminous-vivid-orange-background-color:link 
{
	background-color: #ff6900;
}

.entry-content .has-luminous-vivid-amber-color 
{
	color: #fcb900;
}

.entry-content .has-luminous-vivid-amber-background-color,
.wp-block-button.is-style-outline .has-luminous-vivid-amber-background-color:link 
{
	background-color: #fcb900;
}

.entry-content .has-light-green-cyan-color 
{
	color: #7bdcb5;
}

.entry-content .has-light-green-cyan-background-color,
.wp-block-button.is-style-outline .has-light-green-cyan-background-color:link 
{
	background-color: #7bdcb5;
}

.entry-content .has-vivid-green-cyan-color 
{
	color: #00d084;
}

.entry-content .has-vivid-green-cyan-background-color,
.wp-block-button.is-style-outline .has-vivid-green-cyan-background-color:link 
{
	background-color: #00d084;
}

.entry-content .has-pale-cyan-blue-color 
{
	color: #8ed1fc;
}

.entry-content .has-pale-cyan-blue-background-color,
.wp-block-button.is-style-outline .has-pale-cyan-blue-background-color:link 
{
	background-color: #8ed1fc;
}

.entry-content .has-vivid-cyan-blue-color 
{
	color: #0693e3;
}

.entry-content .has-vivid-cyan-blue-background-color,
.wp-block-button.is-style-outline .has-vivid-cyan-blue-background-color:link {
	background-color: #0693e3;
}

.entry-content .has-very-light-gray-color 
{
	color: #eee;
}

.entry-content .has-very-light-gray-background-color,
.wp-block-button.is-style-outline .has-very-light-gray-background-color:link 
{
	background-color: #eee;
}

.entry-content .has-cyan-bluish-gray-color
{
	color: #abb8c3;
}

.entry-content .has-cyan-bluish-gray-background-color,
.wp-block-button.is-style-outline .has-cyan-bluish-gray-background-color:link 
{
	background-color: #abb8c3;
}

.entry-content .has-very-dark-gray-color 
{
	color: #313131;
}

.entry-content .has-very-dark-gray-background-color,
.wp-block-button.is-style-outline .has-very-dark-gray-background-color:link 
{
	background-color: #313131;
}


table 
{
    position: relative;
    z-index: 1;
    width: 100%;
    border-top: 0;
	text-transform: uppercase;
    table-layout: fixed;

    th 
    {
        text-align: left;
    }

    tr 
    {
        border-bottom: 1px solid $grey;
    }

    th, td 
    {
        padding: 6px;
        vertical-align: middle;
        font: 
        {
            family: inherit;
            size: inherit;
        }
    }
}

code
{
	background: $grey;
}


//  Jetpack Contact Info

.wp-block-jetpack-contact-info
{
	border: 3px solid $grey;
	padding: 24px;
	margin-bottom: 24px;
	font-size: 16px;
	
	.wp-block-jetpack-address
	{
		text-transform: uppercase;
	}
}



/*--------------------------------------------------------------
8.0 Editor Styles
--------------------------------------------------------------*/

.alignnone,
.aligncenter,
.alignleft,
.alignright,
.alignwide 
{
	margin-right: auto;
	margin-left: auto;
}

[class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) 
{
	margin-left: auto;
	margin-right: auto;
}

/* Full */

.alignfull 
{
	margin-top: 24px;
	margin-right: auto;
	margin-bottom: 24px;
	margin-left: auto;
	max-width: 100vw;
	position: relative;
	width: 100%;
}

[class*="__inner-container"] > .alignfull 
{
	max-width: 100%;
}

/* Wide */

.alignwide 
{
	max-width: 100%;
	width: 100%;
	position: relative;
}

[class*="__inner-container"] > .alignwide 
{
	width: 100%;
}

/* Center */

.aligncenter,
.aligncenter img 
{
	margin-left: auto;
	margin-right: auto;
}

/* Left and right */

.alignleft,
.alignright 
{
	max-width: 50%;
}

.alignleft 
{
	float: left;
	margin-right: 24px;
}

.alignright 
{
	float: right;
	margin-left: 24px;
}

[class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft,
[class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft,
[class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft 
{
	margin-left: 24px;
}

[class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright,
[class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright,
[class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright 
{
	margin-right: 24px;
}

/* Entry Media ------------------------------- */

.gallery
{
	display: flex;
	flex-wrap: wrap;
	$min_col : 1;
	$max_col: 9;
	
	@for $i from $min_col through $max_col 
	{
		&.gallery-columns-#{$i}
		{
			.gallery-item
			{
				width: calc(100% / #{$i});
			    position: relative;
			    padding: 0px;
			    border-right: 6px solid white;
			    border-bottom: 6px solid white;
				
				.gallery-icon
				{
					height: 100%;
					
					a
					{
						height: 100%;
						flex: 1;
						 object-fit: cover;
					}

					img
					{
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
				}

				.wp-caption-text
				{
					position: absolute;
				    bottom: 0;
				    width: 100%;
				    max-height: 100%;
				    overflow: auto;
				    padding: 40px 10px 9px;
				    color: #fff;
				    text-align: center;
				    font-size: 13px;
				    background: linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);
				}
			}
		}
	}
}

