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


/**
 * Table of Contents:
 *
 * 1.0 - Body
 * 2.0 - Typography
 * 3.0 - Elements
 * 4.0 - Alignment
 * 5.0 - Caption
 * 6.0 - Galleries
 * 7.0 - Audio / Video
 * 8.0 - RTL
 * 9.0 - Media Queries
 */


/**
 * 1.0 Body
 */

body {
	background: #1a1a1a;
	color: #fff;
	font-family: Lato, sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.6;
	margin: 20px 40px;
	max-width: 704px;
	vertical-align: baseline;
}

/**
 * 2.0 Typography
 */

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: 700;
	-webkit-font-variant-ligatures: common-ligatures;
	font-variant-ligatures: common-ligatures;
	margin: 64px 0 32px;
	text-rendering: optimizeLegibility;
}

h1 {
	font-size: 41px;
	line-height: 1.170731707;
}

h2 {
	font-size: 35px;
	line-height: 1.142857143;
}

h3 {
	font-size: 29px;
	line-height: 1.24137931;
}

h4 {
	font-size: 24px;
	letter-spacing: 0.13333em;
	line-height: 1.166666667;
}

h5,
h6 {
	font-size: 20px;
	line-height: 1.2;
}

h6 {
	font-style: italic;
	font-weight: 400;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

p {
	margin: 0 0 32px;
}

b,
strong {
	font-weight: 700;
}

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

blockquote {
	border-left: 1px solid currentColor;
	font-family: "Playfair Display", serif;
	font-size: 24px;
	-moz-osx-font-smoothing: auto;
	-webkit-font-smoothing: subpixel-antialiased;
	font-style: italic;
	line-height: 1.5;
	margin: 0 0 32px -32px;
	padding-left: 31px;
}

blockquote > blockquote {
	margin-left: 0;
}

blockquote p {
	margin-bottom: 36px;
}

blockquote > p:last-child {
	margin-bottom: 0;
}

blockquote cite,
blockquote small {
	font-size: 20px;
	line-height: 1.6;
}

blockquote em,
blockquote i,
blockquote cite {
	font-style: normal;
}

blockquote strong,
blockquote b {
	font-weight: 400;
}

address {
	font-style: italic;
	margin: 0 0 32px;
}

code,
kbd,
tt,
var,
samp,
pre {
	font-family: Inconsolata, monospace;
}

pre {
	border: 1px solid currentColor;
	line-height: 1.2;
	margin-bottom: 32px;
	max-width: 100%;
	overflow: auto;
	padding: 16px;
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

abbr[title] {
	border-bottom: 1px solid currentColor;
	cursor: help;
}

mark,
ins {
	background: #fff;
	color: #1a1a1a;
	text-decoration: none;
}

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

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

small {
	font-size: 75%;
}

big {
	font-size: 125%;
}


/**
 * 3.0 Elements
 */

hr {
	background-color: #fff;
	border: 0;
	height: 1px;
	margin-bottom: 32px;
}

ul,
ol {
	margin: 0 0 32px 0;
	padding: 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin: 0 0 0 24px;
}

dl {
	margin: 0 0 32px;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 0 32px;
}

table,
th,
td,
.mce-item-table,
.mce-item-table th,
.mce-item-table td {
	border: 1px solid #fff;
}

table a {
	color: #fff;
}

table,
.mce-item-table {
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px 0 0 1px;
	margin: 0 0 32px;
	width: 100%;
}

table th,
.mce-item-table th,
table caption {
	border-width: 0 1px 1px 0;
	font-size: 20px;
	font-weight: 700;
	padding: 8px;
	text-align: left;
	vertical-align: baseline;
}

table td,
.mce-item-table td {
	border-width: 0 1px 1px 0;
	font-size: 20px;
	padding: 8px;
	vertical-align: baseline;
}

img {
	border: 0;
	height: auto;
	max-width: 704px;
	vertical-align: middle;
}

a img {
	display: block;
}

figure {
	margin: 0;
}

del {
	opacity: 0.8;
}

a {
	color: #fff;
	background-image: linear-gradient(to right, currentColor 0%, currentColor 100%);
	background-position: 0 100%;
	background-repeat: repeat-x;
	background-size: 100% 1px;
	text-decoration: none;
}


/**
 * 4.0 Alignment
 */

.alignleft {
	float: left;
	margin: 10px 32px 22px 0;
}

.alignright {
	float: right;
	margin: 10px 0 22px 32px;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto 32px;
}

blockquote.alignleft,
blockquote.alignright {
	border-color: currentColor;
	border-style: solid;
	border-width: 1px 0 1px 0;
	padding: 16px 0;
	width: -webkit-calc(50% - 32px);
	width: calc(50% - 32px);
}


/**
 * 5.0 Caption
 */

.wp-caption,
.html5-captions .wp-caption {
	background: transparent;
	border: none;
	font-family: "Playfair Display", serif;
	font-size: 17px;
	-moz-osx-font-smoothing: auto;
	-webkit-font-smoothing: subpixel-antialiased;
	line-height: 1.411764706;
	margin: 0 0 32px 0;
	max-width: 704px;
	padding: 0;
	text-align: inherit;
}

.wp-caption.alignleft {
	margin: 10px 32px 22px 0;
}

.wp-caption.alignright {
	margin: 10px 0 22px 32px;
}

.wp-caption.aligncenter {
	margin: 0 auto 32px;
}

.wp-caption .wp-caption-text,
.wp-caption-dd {
	font-size: 17px;
	line-height: 1.411764706;
	padding: 12px 0 13px;
	position: relative;
}

.wp-caption .wp-caption-text:before,
.wp-caption-dd:before {
	background-color: currentColor;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	bottom: 0;
	width: 32px;
}


/**
 * 6.0 Galleries
 */

.gallery-item {
	display: inline-block;
	padding: 1.79104477%;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

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

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

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

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

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

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

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

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

.gallery .gallery-caption {
	display: block;
	font-family: "Playfair Display", serif;
	font-size: 17px;
	-moz-osx-font-smoothing: auto;
	-webkit-font-smoothing: subpixel-antialiased;
	line-height: 1.411764706;
	padding: 8px 0 0;
}

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


/**
 * 7.0 Audio / Video
 */

.mce-content-body .wpview-wrap {
	margin-bottom: 32px;
}

.mce-content-body .wp-audio-playlist {
	margin: 0;
}


/**
 * 8.0 RTL
 */

body.rtl {
	font-family: Arial, Tahoma, sans-serif;
}

.rtl blockquote {
	border-left: none;
	border-right: 1px solid currentColor;
	margin: 0 -32px 32px 0;
	padding-left: 0;
	padding-right: 31px;
}

.rtl blockquote > blockquote {
	margin-left: auto;
	margin-right: 0;
}

.rtl li > ul,
.rtl li > ol {
	margin: 0 24px 0 0;
}

.rtl table th,
.rtl table caption {
	text-align: right;
}


/**
 * 9.0 Media Queries
 */

@media screen and (max-width: 784px) {
	body, img, .wp-caption {
		max-width: 100%;
	}

	img, .wp-caption {
		width: auto !important;
	}
}
