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

/**
 * Table of Contents:
 *
 * 1.0 - Body
 * 2.0 - Typography
 * 3.0 - Alignment
 * 4.0 - Caption
 * 5.0 - Galleries
 * 6.0 - RTL
 */

/**
 * 1.0 Body
 */

body {
	line-height: 1.65;
	color: #565656;
	font-family: 'Source Sans Pro', sans-serif;
	margin: 20px 35px;
	vertical-align: baseline;
	-webkit-font-smoothing: subpixel-antialiased !important;
}

::selection {
	background: #ffcc0d;
	color: #565656;
}

::-moz-selection {
	background: #ffcc0d;
	color: #565656;
}

/**
 * 2.0 Typography
 */


h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
	margin-top: 42px;
	margin-bottom: 12px;
    color: #171C22;
    font-weight: bold;
}

h1 {
	font-size: 2.938em;
}

h2 {
	font-size: 2.375em;
}

h3 {
	font-size: 1.813em;
}

h4 {
	font-size: 1.438em;
}

h5 {
	font-size: 1.125em;
}

h6 {
	font-size: 0.875em;
}

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

a {
	color: #171C22;
	font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
a:active {
	text-decoration: none;
	color: #2980b9;
}

blockquote p { margin-top: 0; }
blockquote p:last-child { margin: 0; }

blockquote {
	position: relative;
	margin: 40px 0;
	font-size: 18px;
	line-height: 1.55;
	border: none;
	border-left: 30px solid #f1c40f;
	padding:20px 30px 20px 30px;
	color: #000;
	background: #faf9f7;
	letter-spacing: -0.03em;
    border-radius: 4px;
}

blockquote:before {
	content: "";
	position: absolute;
	top: 15px;
	bottom: 0;
	left: -28px;
	height: 100%;
	font-size: 18px;
	color: #fff;
}

blockquote cite {
	color: #696969;
}

pre:not(.line-pre) {
	position: relative;
	border: none;
	background: #f7fafc;
	padding: 20px 30px 20px 70px;
	word-wrap: normal;
    border-radius: 4px;
}

pre:before {
    content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	height: 100%;
	font-size: 18px;
	color: #fff;
	background: #c7d6de;
	padding: 0 13px;
    border-radius: 4px 0 0 4px;
}

p, ul, ol, dd, dl, address, pre,
.jetpack-video-wrapper,
.mejs-container,
.wp-playlist,
table, .table,
.tiled-gallery,
.slideshow-window {
	margin-bottom: 27px;
}

table {
  background-color: transparent;
}

th {
  text-align: left;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}

.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
  border-top: 0;
}

.table > tbody + tbody {
  border-top: 2px solid #ddd;
}

.table .table {
  background-color: #fff;
}

/**
 * 3.0 Alignment
 */
#tinymce .alignleft {
	display: inline;
	float: left;
	margin-right: 1.667em;
}

#tinymce .alignright {
	display: inline;
	float: right;
	margin-left: 1.667em;
}

#tinymce .aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/**
 * 4.0 Caption
 */
 .wp-caption {
	max-width: 800px;
	margin-bottom: 30px;
	max-width: 100%;
	background: #f5f6f7;
	border: 1px solid #e2e3e4;
	border-radius: 4px;
	padding: 4px 4px 1px;
	-moz-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.05);
	-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.05);
	box-shadow: 0 1px 1px 0 rgba(0,0,0,0.05);
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0 auto;
}

.wp-caption-text,
.wp-caption-dd {
	text-align: center;
	font-size: 0.778em;
	color: #565656;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

/**
 * 5.0 Galleries
 */
#tinymce .gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: auto;
}

#tinymce .gallery {
	margin-bottom: 30px;
	overflow: hidden;
}

#tinymce .gallery-item {
	float: left;
	margin: 0 1px 1px 0;
	padding: 0;
	overflow: hidden;
	position: relative;
    display: inline-block;
}

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

#tinymce .gallery-columns-2 .gallery-item {
	max-width: 49.5%;
	max-width: -webkit-calc(50% - 1px);
	max-width: calc(50% - 1px);
}

#tinymce .gallery-columns-3 .gallery-item {
	max-width: 33%;
	max-width: -webkit-calc(33.3% - 1px);
	max-width: calc(33.3% - 1px);
}

#tinymce .gallery-columns-4 .gallery-item {
	max-width: 24.5%;
	max-width: -webkit-calc(25% - 1px);
	max-width: calc(25% - 1px);
}

#tinymce .gallery-columns-5 .gallery-item {
	max-width: 19.5%;
	max-width: -webkit-calc(20% - 1px);
	max-width: calc(20% - 1px);
}

#tinymce .gallery-columns-6 .gallery-item {
	max-width: 16%;
	max-width: -webkit-calc(16.66% - 1px);
	max-width: calc(16.66% - 1px);
}

#tinymce .gallery-columns-7 .gallery-item {
	max-width: 13.5%;
	max-width: -webkit-calc(14.285% - 1px);
	max-width: calc(14.285% - 1px);
}

#tinymce .gallery-columns-8 .gallery-item {
	max-width: 12%;
	max-width: -webkit-calc(12.5% - 1px);
	max-width: calc(12.5% - 1px);
}

#tinymce .gallery-columns-9 .gallery-item {
	max-width: 10%;
	max-width: -webkit-calc(11.11% - 1px);
	max-width: calc(11.11% - 1px);
}

#tinymce .gallery-columns-1 figure.gallery-item:nth-of-type(1n),
#tinymce .gallery-columns-2 figure.gallery-item:nth-of-type(2n),
#tinymce .gallery-columns-3 figure.gallery-item:nth-of-type(3n),
#tinymce .gallery-columns-4 figure.gallery-item:nth-of-type(4n),
#tinymce .gallery-columns-5 figure.gallery-item:nth-of-type(5n),
#tinymce .gallery-columns-6 figure.gallery-item:nth-of-type(6n),
#tinymce .gallery-columns-7 figure.gallery-item:nth-of-type(7n),
#tinymce .gallery-columns-8 figure.gallery-item:nth-of-type(8n),
#tinymce .gallery-columns-9 figure.gallery-item:nth-of-type(9n) {
	margin-right: 0;
}

#tinymce .gallery-columns-1 figure.gallery-item:nth-of-type(1n+1),
#tinymce .gallery-columns-1 figure.gallery-item:nth-of-type(1n+1),
#tinymce .gallery-columns-2 figure.gallery-item:nth-of-type(2n+1),
#tinymce .gallery-columns-3 figure.gallery-item:nth-of-type(3n+1),
#tinymce .gallery-columns-4 figure.gallery-item:nth-of-type(4n+1),
#tinymce .gallery-columns-5 figure.gallery-item:nth-of-type(5n+1),
#tinymce .gallery-columns-6 figure.gallery-item:nth-of-type(6n+1),
#tinymce .gallery-columns-7 figure.gallery-item:nth-of-type(7n+1),
#tinymce .gallery-columns-8 figure.gallery-item:nth-of-type(8n+1),
#tinymce .gallery-columns-9 figure.gallery-item:nth-of-type(9n+1) {
	clear: left;
}

#tinymce .gallery-caption {
	background: rgba(0, 0, 0, 0.4);
	background: -moz-linear-gradient(top,  rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.59) 59%, rgba(0,0,0,0.65) 69%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.26)), color-stop(59%,rgba(0,0,0,0.59)), color-stop(69%,rgba(0,0,0,0.65)));
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	background: -o-linear-gradient(top,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	background: -ms-linear-gradient(top,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	background: linear-gradient(to bottom,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#42000000', endColorstr='#a6000000',GradientType=0 );

	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0;
	padding: 10px;
	margin: 0;
	visibility:hidden;
	opacity: 0;
}

#tinymce .gallery-item:hover .gallery-caption {
	visibility:visible;
	opacity: 1;
	height: 30%;
}

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

/**
 * 6.0 RTL
 */

.rtl th {
  text-align: right;
}
