/*
Theme Name: Counter
Description: Used to style the TinyMCE editor.
*/

/**
 * Normalize. Editor modifications.
 */

*,
*:before,
*:after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 18px;

	-webkit-text-size-adjust: 100%;
	    -ms-text-size-adjust: 100%;
}

body {
	max-width: 612px;
	margin: 3em 5%;
	color: #555;
	background: #fff;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.5;
}

@media screen and (min-width: 768px) {
	body {
		margin: 3em auto;
	}
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden],
template {
	display: none;
}

abbr[title],
acronym {
	border-bottom: 1px dotted;
	cursor: help;
}

b,
strong {
	font-weight: bold;
}

dfn,
em,
i {
	font-style: italic;
}

mark,
ins {
	color: #555;
	background: rgba(85, 85, 85, 0.15);
	text-decoration: none;
}

small {
	font-size: 13.5px;
	font-size: 0.75rem;
}

sub,
sup {
	position: relative;
	font-size: 75%;
	line-height: 0;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0 0 1.5em 0;
}

textarea {
	margin: 0;
	color: inherit;
	font: inherit;
}

textarea {
	overflow: auto;
}

optgroup {
	font-weight: bold;
}

table {
	border-spacing: 0;
}

td,
th {
	padding: 0;
}

/**
 * Typography
 */

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	margin: 0 0 13.5px 0;
	margin: 0 0 0.75rem 0;
	color: #1e1e1e;
	font-family: 'Lato', Helvetica, Arial, sans-serif;
	font-weight: 400;
}

h1 {
	font-size: 1.5em;
	line-height: 1.25;
	letter-spacing: 3px;
	text-transform: uppercase;
}

h2 {
	font-size: 1.5em;
	line-height: 1.1;
}

h3 {
	font-size: 1.2em;
	line-height: 1.25;
	letter-spacing: 2px;
	text-transform: uppercase;
}

h4 {
	font-size: 1.35em;
	line-height: 1.125;
}

h5 {
	font-size: 1em;
	line-height: 1.25;
	letter-spacing: 2px;
	text-transform: uppercase;
}

h6 {
	font-size: 1em;
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.comment-content h1,
.comment-content h2,
.comment-content h3,
.panel-content h1,
.panel-content h2,
.panel-content h3 {
	margin-top: 54px;
	margin-top: 3rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6,
.comment-content h4,
.comment-content h5,
.comment-content h6,
.panel-content h4,
.panel-content h5,
.panel-content h6 {
	margin-top: 36px;
	margin-top: 2rem;
	margin-bottom: 13.5px;
	margin-bottom: 0.75rem;
}

.entry-content > h1:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.comment-content > h1:first-child,
.comment-content > h2:first-child,
.comment-content > h3:first-child,
.panel-content > h1:first-child,
.panel-content > h2:first-child,
.panel-content > h3:first-child {
	margin-top: 0;
}

.mce-content-body h1,
.mce-content-body h2,
.mce-content-body h3,
.mce-content-body h4,
.mce-content-body h5,
.mce-content-body h6 {
	margin-top: 54px;
	margin-top: 3rem;
}

.mce-content-body h4,
.mce-content-body h5,
.mce-content-body h6 {
	margin-bottom: 13.5px;
	margin-bottom: 0.75rem;
}

/* Copy */

p {
	margin: 0 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

big {
	font-size: 20.25px;
	font-size: 1.125rem;
	line-height: 18px;
	line-height: 1rem;
}

/* Links */

a {
	color: #d17d38;
	background-color: transparent;
	text-decoration: none;
}

a:hover,
a:active {
	outline: 0;
	color: #d17d38;
	text-decoration: underline;
}

a:focus {
	outline: thin dotted;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
	color: #d17d38;
	text-decoration: underline;
}

/* Blockquotes */

blockquote,
q {
	margin: 1.125em;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 24px;
	font-size: 1.3333333333rem;
	font-style: italic;
	line-height: 27px;
	line-height: 1.5rem;
	quotes: '' '';
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
}

blockquote p,
q p {
	margin: 0;
}

@media screen and (min-width: 768px) {
	blockquote,
	q {
		margin: 2.25em;
	}
}

cite {
	display: block;
	margin: 0;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 11.25px;
	font-size: 0.625rem;
	font-style: normal;
	line-height: 27px;
	line-height: 1.5rem;
	letter-spacing: 0.0625em;
	text-transform: uppercase;
}

/* Lists */

ul,
ol {
	margin: 0 0 1.5em 1.5em;
	padding-left: 1.5em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 0.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 0 1.5em;
}

/* Tables. Editor modifications */

.mce-item-table,
.mce-item-table td,
.mce-item-table th,
.mce-item-table caption {
	border: none;
	border-spacing: 0;
}

.mce-item-table td,
.mce-item-table th {
	border-bottom: 1px solid rgba(85, 85, 85, 0.15);
}

.mce-item-table thead th {
	border-bottom: 2px solid #555;
}

/* Tables */

table {
	width: 100%;
	margin-bottom: 1.4444444444em;
	padding: 0;

	cellspacing: 0;
}

td,
th {
	padding: 0.75em;
	border-bottom: 1px solid rgba(85, 85, 85, 0.15);
	text-align: left;
}

thead th {
	padding: 1em 1em 0.9259259259em;
	background-color: rgba(85, 85, 85, 0.15);
	font-size: 0.75em;
	font-weight: 400;
	line-height: 2;
	text-transform: uppercase;
}

/* Code */

pre {
	overflow: auto;
	max-width: 100%;
	margin-bottom: 1.5em;
	padding: 1.5em;
	color: #fff;
	background: #1e1e1e;
	font-family: 'Courier New', Courier, monospace;
	font-weight: bold;
	word-wrap: initial;
}

code,
kbd,
pre,
samp,
tt,
var {
	font-family: 'Courier New', Courier, monospace;
}

code {
	display: inline-block;
	padding: 0 0.375em;
	background-color: rgba(85, 85, 85, 0.15);
	font-weight: bold;
}

/**
 * Components
 */

/* Images */

img {
	max-width: 100%;
	height: auto;
}

img[class*='wp-image-'] {
	display: block;
}

/* Lines */

hr {
	box-sizing: content-box;
	height: 2px;
	margin-top: -2px;
	margin-bottom: 1.5em;
	border: 0;
	background-color: rgba(85, 85, 85, 0.15);
}

/* Media. Editor modifications */

.wpview-wrap .toolbar .dashicons {
	box-sizing: content-box;
}

.wp-smiley {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	border: none;
}

embed,
iframe,
object,
video {
	max-width: 100%;
	margin-bottom: 1.5em;
	vertical-align: middle;
}

p > embed,
p > iframe,
p > object,
p > video {
	margin-bottom: 0;
}

.mejs-container {
	margin: 0;
}

.wpview-wrap[data-wpview-type='playlist'],
.wpview-wrap[data-wpview-type='audio'],
.wpview-wrap[data-wpview-type='video'],
.wpview-wrap[data-wpview-type='embedURL'] {
	margin-bottom: 1.5em;
	padding: 2px 2px 2px 2px;
}

.wpview-wrap[data-wpview-type='playlist'] iframe,
.wpview-wrap[data-wpview-type='audio'] iframe,
.wpview-wrap[data-wpview-type='video'] iframe,
.wpview-wrap[data-wpview-type='embedURL'] iframe {
	margin-bottom: 0;
}

.mce-content-body .mejs-time-current {
	background-color: #d17d38;
}

.mce-content-body .wp-playlist {
	max-width: 100%;
	margin: 0 0 1.5em;
	padding: 0;
	border: none;
	font-size: 18px;
	font-size: 1rem;
	line-height: 27px;
	line-height: 1.5rem;
}

.mce-content-body .wp-playlist-tracks {
	margin-top: 1.5em;
}

.mce-content-body .wp-playlist-light {
	background-color: transparent;
}

.mce-content-body .wp-playlist-current-item {
	height: 4.5em;
	margin-bottom: 1.5em;
}

.mce-content-body .wp-playlist-current-item img {
	max-width: 4.5em;
	margin-right: 1.5em;
}

.mce-content-body .wp-playlist-item,
.mce-content-body .wp-playlist-item-length {
	padding: 0.75em 0.75em 0.75em;
}

.mce-content-body .wp-playlist-tracks {
	border-top: 1px solid rgba(85, 85, 85, 0.15);
}

.mce-content-body .wp-playlist-item {
	border-bottom: 1px solid rgba(85, 85, 85, 0.15);
}

.mce-content-body .wp-playlist-caption,
.mce-content-body [class*='wp-playlist-item-'] {
	font-size: 18px;
	font-size: 1rem;
	font-style: normal;
	line-height: 27px;
	line-height: 1.5rem;
	text-transform: none;
}

.mce-content-body .wp-playlist-playing {
	background-color: rgba(85, 85, 85, 0.15);
	font-weight: normal;
}

/* Captions. Editor modifications */

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption img[class*='wp-image-'] {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption .wp-caption-dt {
	display: block;
	margin-right: auto;
	margin-bottom: 0.375em;
	margin-left: auto;
}

.wp-caption .wp-caption-dd {
	display: block;
	padding: 0;
	color: #555;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 13.5px;
	font-size: 0.75rem;
	font-weight: normal;
	font-style: normal;
	line-height: 1.5em;
	text-align: left;
}

/* Alignments */

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

@media screen and (min-width: 1008px) {
	.single.no-sidebar .entry-content .outset,
	.page-template-centered .entry-content .outset,
	.page-template-default.no-sidebar .entry-content .outset {
		max-width: 936px;
		margin-right: -162px;
		margin-left: -162px;
	}
}

@media screen and (min-width: 1008px) {
	.single.no-sidebar .entry-content .outset-left,
	.page-template-centered .entry-content .outset-left,
	.page-template-default.no-sidebar .entry-content .outset-left {
		max-width: 450px;
		margin-right: 36px;
		margin-left: -162px;
	}
}

@media screen and (min-width: 1008px) {
	.single.no-sidebar .entry-content .outset-right,
	.page-template-centered .entry-content .outset-right,
	.page-template-default.no-sidebar .entry-content .outset-right {
		max-width: 450px;
		margin-right: -162px;
		margin-left: 36px;
	}
}

img.alignleft {
	max-width: 50%;
	margin: 0 1.5em 1.5em 0;
}

img.alignright {
	max-width: 50%;
	margin: 0 0 1.5em 1.5em;
}

.wp-caption.alignleft {
	max-width: 50%;
	margin: 0 1.5em 1.125em 0;
}

.wp-caption.alignright {
	max-width: 50%;
	margin: 0 0 1.125em 1.5em;
}

img.alignnone,
img.aligncenter {
	margin-top: 2em;
	margin-bottom: 2em;
}

.wp-caption.alignnone,
.wp-caption.aligncenter {
	margin-top: 2em;
}

blockquote.alignleft {
	width: 50%;
	margin: 1.125em 1.125em 1.125em 0;
}

@media screen and (min-width: 768px) {
	blockquote.alignleft {
		margin: 2.25em 2.25em 2.25em 0;
	}
}

blockquote.alignright {
	width: 50%;
	margin: 1.125em 0 1.125em 1.125em;
}

@media screen and (min-width: 768px) {
	blockquote.alignright {
		margin: 2.25em 0 2.25em 2.25em;
	}
}

/* Clearings */

.clear:after,
.gallery:after {
	display: table;
	clear: both;
	content: '';
}

/**
 * Content
 */

.mce-content-body {
	word-wrap: break-word;
	-webkit-hyphens: auto;
	    -ms-hyphens: auto;
	        hyphens: auto;
}

/* Galleries */

.gallery,
#content .tiled-gallery {
	margin: 0 -2px 27px;
	margin: 0 -2px 1.5rem;
}

@media screen and (min-width: 768px) {
	.gallery,
	#content .tiled-gallery {
		margin: 40.5px -2px 40.5px;
		margin: 2.25rem -2px 2.25rem;
	}
}

.gallery {
	font-size: 0;
}

.gallery-item {
	display: inline-block;
	overflow: hidden;
	margin: 0;
	border: 2px solid transparent;
	font-size: 18px;
	vertical-align: top;
}

.gallery-item img,
.gallery-item a {
	display: block;
}

.gallery-columns-1 .gallery-item {
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	width: 50%;
}

.gallery-columns-3 .gallery-item {
	width: 33.3333333333%;
}

.gallery-columns-4 .gallery-item {
	width: 25%;
}

.gallery-columns-5 .gallery-item {
	width: 20%;
}

.gallery-columns-6 .gallery-item {
	width: 16.6666666667%;
}

.gallery-columns-7 .gallery-item {
	width: 14.2857142857%;
}

.gallery-columns-8 .gallery-item {
	width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	width: 11.1111111111%;
}

.gallery-columns-10 .gallery-item {
	width: 10%;
}

.gallery-caption {
	display: block;
	margin: 0.5em 0;
	font-size: 0.75em;
}

.gallery-columns-1 figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-2 figure.gallery-item:nth-of-type(2n+1),
.gallery-columns-3 figure.gallery-item:nth-of-type(3n+1) {
	clear: left;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption,
.gallery-columns-10 .gallery-caption {
	display: none;
}

/* Galleries. Editor modification */

.wpview-wrap[data-wpview-type='gallery'] {
	display: inline-block;
	width: auto;
	margin: 0 -2px 1.5em;
}

@media screen and (min-width: 768px) {
	.wpview-wrap[data-wpview-type='gallery'] {
		margin: 0.75em -2px 2.25em;
	}
}

.gallery {
	margin: 0;
	padding: 0;
}

.gallery .gallery-item {
	padding: 0;
	text-align: left;
}

.gallery .gallery-caption {
	display: block;
	box-sizing: border-box;
	margin: 0;
	margin: 0.5em 0 0.3518518519em;
	font-size: 0.75em;
	font-weight: normal;
	line-height: 20.25px;
	line-height: 1.125rem;
}

.gallery:after:before,
.gallery:after:after {
	display: table;
	clear: both;
	content: '';
}
