/*
Theme Name: Twenty Seventeen
Description: Used to style blocks.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General Block Styles
2.0 Blocks - Common Blocks
3.0 Blocks - Formatting
4.0 Blocks - Layout Elements
5.0 Blocks - Widgets
6.0 Blocks - Colors
--------------------------------------------------------------*/



/*
COLOR
#4D6B6B
#96B8B8
#244747

#EEEEEE
#DCDCDC
#666666
#333333
*/

/* Variables */
:root {
  --primary-1: #4D6B6B;
  --secondary-1: #96B8B8;
  --secondary-2: #244747;
  --grey-1: #EEEEEE;
  --grey-2: #DCDCDC;
  --grey-3: #666666;
  --grey-4: #333333;
}

/*--------------------------------------------------------------
1.0 General Block Styles
--------------------------------------------------------------*/

/* Captions */

[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
	font-style: italic;
	margin-bottom: 1.5em;
	text-align: left;
}

.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
	text-align: right;
}

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

/* Paragraph */

p.has-drop-cap:not(:focus)::first-letter {
	font-size: 5em;
	margin-top: 0.075em;
}

/* Image */

.wp-block-image {
	margin-bottom: 1.5em;
}

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

.wp-block-image figure.alignleft {
	margin-right: 1.5em;
}

.wp-block-image figure.alignright {
	margin-left: 1.5em;
}

/* Gallery */

.wp-block-gallery {
	margin-bottom: 1.5em;
}

.wp-block-gallery figcaption {
	font-style: italic;
}

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


.blocks-gallery-item img  {
	-webkit-box-shadow: 0 0 0 1px #fff !important;
	box-shadow: 0 0 0 1px #fff !important;
}
.blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item, .wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item {
	margin: 0 !important;
}

/* Quote */

.wp-block-quote:not(.is-large):not(.is-style-large) {
	border: 0;
	padding: 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%;
}

/* 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 {
	background-color: var(--primary-1);
	-webkit-border-radius: 0;
	border-radius: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	color: #fff;
	display: inline-block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: 800;
	margin-top: 2em;
	padding: 0.7em 2em;
	-webkit-transition: background-color 0.2s ease-in-out;
	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 {
	background-color: #767676;
	-webkit-box-shadow: none;
	box-shadow: none;
}

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

/* Code */

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

.wp-block-code code {
	font-size: inherit;
}

/* Pullquote */

.wp-block-pullquote {
	border: 0;
}

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

/* Table */

.wp-block-table table {
	border-collapse: collapse;
	margin: 0 0 1.5em;
}

.wp-block-table thead {
	border-bottom: 2px solid #666;
}
.wp-block-table thead th {
	background-color: var(--primary-1;
	color: #fff;
	border-color: var(--primary-1);
}

.wp-block-table tr:nth-child(2n+1) td {
	background-color: #f7f7f7;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid #eee;
	padding: 0.5em !important;
}

.wp-block-table tfoot {
	border-top: 2px solid #666;
}
.wp-block-table tfoot td {
	background-color: #eee !important;
}


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

/* Buttons */

.wp-block-button .wp-block-button__link {
	-webkit-box-shadow: none;
	box-shadow: none;
	display: inline-block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.66;
	padding: 0.7em 2em;
	-webkit-transition: background-color 0.2s ease-in-out;
	transition: background-color 0.2s ease-in-out;
	white-space: nowrap;
}

.entry-content .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--primary-1);
	color: var(--primary-1);
	border-radius: 0;
	text-decoration: none;
}

.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) {
	color: var(--primary-blue);
}

.colors-dark .wp-block-button__link {
	background-color: #fff;
	color: #000;
}

.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 {
	background-color: transparent;
	border: 2px solid var(--primary-b1);
	color: var(--primary-1);
	box-shadow: none;
}

.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 {
	background-color: #bbb;
	color: #000;
}

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

.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 {
	color: #222;
}

.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 {
	-webkit-box-shadow: none;
	box-shadow: none;
}

.colors-custom .entry-content .wp-block-button__link:hover,
.colors-custom .entry-content .wp-block-button__link:focus {
	color: #fff;
}

/* Separator */

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


/* Media & Text */

.wp-block-media-text {
	margin-bottom: 1.5em;
}

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