/*
Theme Name: Decree
Description: Used to style Gutenberg Blocks.
*/

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

/*--------------------------------------------------------------
1.0 Blocks - General Styles
--------------------------------------------------------------*/

/* Captions */
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
	border: 1px solid;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
	padding: 8px;
	text-align: center;
}

.no-sidebar .alignfull {
	margin-left  : calc( -100vw / 2 + 100% / 2 );
    margin-right : calc( -100vw / 2 + 100% / 2 );
    max-width    : 100vw;
}

.no-sidebar .alignwide {
	margin-left  : calc( -96vw / 2 + 100% / 2 );
    margin-right : calc( -96vw / 2 + 100% / 2 );
	max-width: 96vw;
}

.alignfull.wp-block-cover,
.alignwide.wp-block-cover {
	width: auto;
}

@media screen and (min-width: 1200px) {
	.no-sidebar:not(.full-width-layout) .alignwide {
	    margin-left: -70px;
	    margin-right: -70px;
	    max-width: 1050px;
	}
}


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

/* Paragraph */

p.has-drop-cap:not(:focus):first-letter {
	float: left;
	font-size: 96px;
	line-height: 0.6;
	margin: 7px 16px 6px -3px;
}

/* Image */
.wp-block-image,
.wp-block-embed,
.wp-block-cover,
.wp-block-cover-image {
	margin-bottom: 30px;
}

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

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

.wp-block-image figure.alignright {
	margin-left: 30px;
	margin-bottom: 20px;
}

/* Gallery */

.wp-block-gallery {
	margin-left: 0;
}

.entry-content .wp-block-gallery {
	margin-left: 0;
}

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

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

/* Quote */
.wp-block-quote,
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
	margin: 30px 40px;
	padding: 0;
}

.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
	font-style: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.wp-block-quote:not(.is-large):not(.is-style-large) {
	margin-left: 0;
	margin-right: 0;
	padding: 0 0 0 30px;
}

.rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
	padding: 0 30px 0 0;
}

.wp-block-quote:not(.is-large):not(.is-style-large):before {
	content: none;
}

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

.wp-block-quote cite,
.wp-block-quote.is-large cite,
.wp-block-quote.is-large footer,
.wp-block-quote.is-style-large cite,
.wp-block-quote.is-style-large footer {
	color: inherit;
	display: block;
	font-size: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: 1.75;
	text-align: left;
}

.rtl .wp-block-quote cite,
.rtl .wp-block-quote.is-large cite,
.rtl .wp-block-quote.is-large footer,
.rtl .wp-block-quote.is-style-large cite,
.rtl .wp-block-quote.is-style-large footer {
	text-align: right;
}

/* Audio */
.wp-block-audio {
	margin-bottom: 30px;
}

.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 {
	border-bottom: 3px solid;
	-webkit-border-radius: 0;
	border-radius: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	margin-top: 2em;
	padding: 10px 20px;
	-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 {
	-webkit-box-shadow: none;
	box-shadow: none;
}


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

/* Editor Font Size */
.has-huge-font-size {
	font-size: 32px;
	line-height: 1.2;
}

.has-large-font-size {
	font-size: 28px;
	line-height: 1.2;
}

.has-normal-font-size {
	font-size: 16px;
	line-height: 1.75;
}

.has-small-font-size {
	font-size: 13px;
	line-height: 1.75;
}

@media screen and (min-width: 900px) {
	.has-huge-font-size {
		font-size: 40px;
	}

	.has-large-font-size {
		font-size: 36px;
	}
}

@media screen and (min-width: 1200px) {
	.has-huge-font-size {
		font-size: 44px;
	}

	.has-large-font-size {
		font-size: 38px;
	}
}

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

.wp-block-code cite:before,
.wp-block-code small:before {
	content: "\2014\00a0";
}

.wp-block-quote__citation {
	font-size: 16px;
}

/* Pullquote */
.wp-block-pullquote {
    border-top: 4px solid;
    border-bottom: 4px solid;
    color: inherit;
    padding: 30px 0;
    margin: 30px 0;
}

.wp-block-pullquote blockquote {
    border: none;
    padding: 0;
    margin: 0;
}

.wp-block-pullquote blockquote:before {
	content: none;
}

.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
    max-width: none;
    width: calc(50% - 0.736842105em);
    padding-left: 0;
    text-align: left;
}

.wp-block-pullquote.alignleft {
	margin: 0.5em 1.5em 1em 0;
}

.wp-block-pullquote.alignright  {
	margin: 0.5em 0 1em 1.5em;
}

.wp-block-pullquote__citation,
.wp-block-pullquote cite {
	color: inherit;
	display: block;
	font-size: 16px;
	font-style: italic;
	line-height: 1.75;
	text-transform: none;
}

.wp-block-pullquote p,
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
	font-size: inherit;
}

/* Table */
.wp-block-table {
    border-collapse: separate;
    border-spacing: 0;
}

.wp-block-table th,
.wp-block-table td {
	border-width: 0 1px 1px 0;
	padding: 8px;
}


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

/* Buttons */
.wp-block-button {
	margin-top: 30px;
	margin-bottom: 30px;
}

.wp-block-button.alignleft,
.wp-block-button.alignright {
	margin-top: 7px;
}

.wp-block-button .wp-block-button__link {
	border-bottom: 3px solid;
	-webkit-border-radius: 0;
	border-radius: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.75;
	outline: 0;
	padding: 10px 20px;
	text-transform: uppercase;
	white-space: nowrap;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
}

/* Separator */
.wp-block-separator {
	border: 0;
	margin: 30px auto;
}

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

/* Media & Text */
.wp-block-media-text {
	margin-bottom: 1.555555555555556em;
}

.wp-block-media-text *:last-child {
	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;
}

.wp-block-latest-posts li {
	margin-bottom: 7px;
}

.rtl .wp-block-latest-posts.is-grid li {
	margin: 0 16px 0 0;
}

.wp-block-latest-posts__post-date {
	color: inherit;
	display: block;
	font-size: 13px;
	line-height: 1.615384615;
	margin-bottom: 0.538461538em;
}

/* Comments */
.wp-block-latest-comments__comment {
	border-top: 1px solid #e8e6e6;
	font-size: inherit;
	margin: 0;
	padding: 1.75em 0;
}

.wp-block-latest-comments article {
	margin-bottom: 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 a {
	-webkit-box-shadow: none;
	box-shadow: none;
}

.wp-block-latest-comments__comment-meta {
	font-size: inherit;
	margin-bottom: 14px;
}

.wp-block-latest-comments__comment-excerpt p {
	font-size: inherit;
}

.wp-block-latest-comments__comment-excerpt >:last-child {
	margin-bottom: 0;
}

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

.wp-block-latest-comments__comment-date {
	color: inherit;
	display: block;
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0;
	margin: 7px 0 0;
	text-transform: capitalize;
}


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

.wp-block-file .wp-block-file__button,
.wp-block-button .wp-block-button__link {
	background-color: #b00f14;
	border-color: #8f1014;
	color: #fff;
}

.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
	background-color: #8f1014;
	border-color: #8f1014;
	color: #fff;
}

.wp-block-quote:not(.is-large):not(.is-style-large) {
	border-color: #b00f14;
}

.wp-block-pullquote {
	border-color: #1a1a1a;
}

.wp-block-table th,
.wp-block-table td {
	border-color: #eee;
}

/* Captions */
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
	background-color: #f3f3f3;
	border-color: #ddd;
}

.has-white-color {
	color: #fff;
}

.has-white-background-color {
	background-color: #fff;
}

.has-black-color {
	color: #000;
}

.has-black-background-color {
	background-color: #000;
}

.has-medium-black-color {
	color: #1a1a1a;
}

.has-medium-black-background-color {
	background-color: #1a1a1a;
}

.has-gray-color {
	color: #5e5e5e;
}

.has-gray-background-color {
	background-color: #5e5e5e;
}

.has-medium-gray-color {
	color: #eee;
}

.has-medium-gray-background-color {
	background-color: #eee;
}

.has-red-color {
	color: #b00f14;
}

.has-red-background-color {
	background-color: #b00f14;
}

.has-dark-red-color {
	color: #8f1014;
}

.has-dark-red-background-color {
	background-color: #8f1014;
}