/** 
 * CSS Style: Singular, .theme-post-content
 * 
 * @since 1.0
 */

.theme-post-header {
    padding-top: calc( var(--theme-padding) *2 ) !important;
    padding-bottom: calc(var(--theme-padding) *2) !important;
}

@media only screen and (max-width: 768px) {
    .theme-post-header {
        padding-top: var(--theme-padding) !important;
        padding-bottom: var(--theme-padding) !important;
    }
}

/** 
 * Theme page content
 * 
 * @since 1.0
 */

.theme-post {
    overflow: hidden;
}

.theme-post-description {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: var(--theme-margin);
}

.theme-post-description a, .theme-post-content a, .theme-post-tags a {
    text-decoration: underline;
}

.theme-post-title {
    font-size: 50px;
    font-weight: 500;
    line-height: 1.2;
}

@media only screen and (max-width: 1000px) {
    .theme-post-title {
        font-size: 32px;
    }
}

@media only screen and (max-width: 768px) {
    .theme-post-title {
        font-size: 28px;
    }
}

/** 
 * Theme post image
 * 
 * @since 1.0
 */
.theme-post-image {
    width: 100%;
    overflow: hidden;
    height: auto;
    margin: 0 auto var(--theme-margin);
}

.theme-post-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.theme-post-image-description {
    font-size: 12px;
    padding: 0 10px;
    margin-top: 5px;
}

.theme-post-content {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
}

.theme-post-content .fotorama {
    background-color: #f8f8f8;
}

/** 
 * Theme post content
 * 
 * @since 1.0
 */

.theme-post-content:after, 
.theme-post-content ol:before, 
.theme-post-content ol:after, 
.theme-post-content ul:before, 
.theme-post-content ul:after,
.theme-post-content blockquote:after { 
  content: ''; 
  clear: both;
  display: block;
}

.theme-post-content p:not(:last-child), 
.theme-post-content ul:not(:last-child), 
.theme-post-content ol:not(:last-child),
.theme-post-content > div:not(:last-child),
.theme-post-content blockquote:not(:last-child) {
  margin-bottom: 20px;
}

.theme-post-content h2:not(:first-child),
.theme-post-content h3:not(:first-child),
.theme-post-content h4:not(:first-child),
.theme-post-content h5:not(:first-child),
.theme-post-content h6:not(:first-child) {
  margin-top: 30px;
}

.theme-post-content h2:not(:last-child),
.theme-post-content h3:not(:last-child),
.theme-post-content h4:not(:last-child),
.theme-post-content h5:not(:last-child),
.theme-post-content h6:not(:last-child) {
  margin-bottom: 30px;
}

/**
 * H2 - H6
 *
 * @since 1.0.0
 */
.theme-post-content h2,
.theme-post-content h3,
.theme-post-content h4,
.theme-post-content h5,
.theme-post-content h6 {
  font-weight: 500;
  line-height: 1.2;
}

.theme-post-content h2 {
  font-size: 38px;
}

.theme-post-content h3 {
  font-size: 36px;
}

.theme-post-content h4 {
  font-size: 30px;
}

.theme-post-content h5 {
  font-size: 26px;
}

.theme-post-content h6 {
  font-size: 20px;
}

@media only screen and (max-width: 768px) {
  .theme-post-content h2 {
    font-size: 28px;
  }

  .theme-post-content h3 {
    font-size: 26px;
  }

  .theme-post-content h4 {
    font-size: 24px;
  }

  .theme-post-content h5 {
    font-size: 22px;
  }

  .theme-post-content h6 {
    font-size: 20px;
  }
}

/**
 * Blockquote
 *
 * @since 1.0.0
 */
.theme-post-content blockquote {
    font-size: 18px;
    padding: calc(var(--theme-padding) *  1.5 ) calc( var(--theme-padding) * 2 );
    position: relative;
    line-height: 1.5;
}

/*.theme-post-content blockquote p {
    padding: var(--theme-padding);
    background-color: var( --theme-color );
}*/

.theme-post-content blockquote:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../images/icons/icon-quote-left.svg');
    color: #ffffff;
}

.theme-post-content blockquote:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../images/icons/icon-quote-right.svg');
}

/**
 * UL, OL
 *
 * @since 1.0.0
 */
.theme-post-content ul {
  padding: 0 var( --theme-padding );
}

.theme-post-content ul li {
  list-style: none;
	padding-left: 25px;
	position: relative;
	margin-bottom: 10px;
  min-height: 32px;
}

.theme-post-content ul li ul {
  margin-top: 10px;
}

.theme-post-content ul li:before {
  content: '';
  background-color: var( --theme-color );
  position: absolute;
	top: 10px;
	left: 0;
  width: 7px;
  height: 7px;
	border-radius: 2px;
}

.theme-post-content .spoiler-body ul li:before {
    background-color: var(--theme-color-background);
}

.theme-post-content ul[style*="list-style-type: disc;"] li:before, .theme-post-content ul[style*="list-style-type: disc"] li:before {
  border-radius: 50%;
}

.theme-post-content ul[style*="list-style-type: circle;"] li:before, 
.theme-post-content ul[style*="list-style-type: circle"] li:before {
  border-radius: 50%;
  border: 1px solid var( --theme-color );
  background-color: transparent;
}

.theme-post-content .spoiler-body ul[style*="list-style-type: circle;"] li:before,
.theme-post-content .spoiler-body ul[style*="list-style-type: circle"] li:before {
    border: 1px solid var(--theme-color-background);
}

.theme-post-content ul li[style*="list-style-type: none;"]:before, .theme-post-content ul li[style*="list-style-type: none"]:before {
  display: none;
}

.theme-post-content ol {
  counter-reset: themeCounter;
	padding: 0 var( --theme-padding );
}

@media only screen and (max-width: 768px) {
  .theme-post-content ul,
  .theme-post-content ol {
 	  padding: 0;
  }
}

.theme-post-content ol li {
  list-style: none;
	padding-left: 40px;
  padding-top: 0;
	position: relative;
	margin-bottom: 10px;
  min-height: 32px;
}

.theme-post-content ol li:before {
  counter-increment: themeCounter;
  content: counter( themeCounter ); 
  color: #000000;
  background-color: var( --theme-color );
  position: absolute;
	top: -2px;
	left: 0;
  text-align: center;
  line-height: 26px;
  width: 26px;
  height: 26px;
	border-radius: 3px;
  font-size: 12px;
}

.theme-post-content .spoiler-body ol li:before {
    background-color: var(--theme-color-background);
}

.theme-post-content ol[style="list-style-type: lower-alpha;"] li:before {
  content: counter( themeCounter, lower-alpha );
}

.theme-post-content ol[style="list-style-type: lower-greek;"] li:before {
  content: counter( themeCounter, lower-greek );
}

.theme-post-content ol[style="list-style-type: lower-roman;"] li:before {
  content: counter( themeCounter, lower-roman );
}

.theme-post-content ol[style="list-style-type: upper-roman;"] li:before {
  content: counter( themeCounter, upper-roman );
}

.theme-post-content ol[style="list-style-type: upper-alpha;"] li:before {
  content: counter( themeCounter, upper-alpha );
}

/**
 * Images
 *
 * @since 1.0.0
 */
.theme-post-content img {
  max-width: 100%;
  height: auto;
}

.theme-post-content .wp-caption-text {
  font-size: 12px;
  padding: 0 10px;
  margin: 0 auto;
  margin-top: 0;
}

.theme-post-content figure {
  max-width: 100%!important;
  margin: 0;
}

.theme-post-content .alignnone,
.theme-post-content .alignright,
.theme-post-content .alignleft,
.theme-post-content .aligncenter {
  margin-bottom: var( --theme-padding );
}

.theme-post-content .aligncenter {
  margin: 0 auto var( --theme-padding );
  display: block;
}

.theme-post-content .alignright {
  float: right;
  margin: 0 0 var( --theme-padding ) var( --theme-padding );
}

.theme-post-content .alignleft {
  float: left;
  margin: 0 var( --theme-padding ) var( --theme-padding ) 0;
}

@media only screen and (max-width: 768px) {
  .theme-post-content .alignnone, 
  .theme-post-content .alignright, 
  .theme-post-content .alignleft,
  .theme-post-content .aligncenter {
    margin: 0 auto;
    float: none;
    margin-bottom: 20px;
  }
}

/**
 * Full width and response iframe
 *
 * @since 1.0.0
 */

.theme-iframe-video { 
	position: relative; 
	padding-bottom: 56.25%;
	height: 0; 
	overflow: hidden;
	margin-bottom:15px;
}

.theme-iframe-content { 
	overflow-x: auto;
	margin-bottom: var( --theme-padding );
}

.theme-iframe-content iframe {
  max-width: 100%;
}

.theme-iframe-video iframe, 
.theme-iframe-video object, 
.theme-iframe-video embed, 
.theme-iframe-video video { 
	position: absolute; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%;
}

.theme-post-content iframe {
  display: block;
  margin: 0 auto;
}

.theme-post-content .fb-post.fb_iframe_widget {
  display: block;
  margin: 0 auto;
  max-width: 500px;
}

.theme-post-content .twitter-tweet.twitter-tweet-rendered, 
.theme-post-content .instagram-media.instagram-media-rendered {
  margin: 0 auto!important;
}

/**
 * Table 
 *
 * @since 1.0.0
 */
.theme-table-container {
  overflow-x: auto;
  margin-bottom: 20px
}

.theme-post-content table {
  width: 100%!important;
  border: 1px solid #222222;
  border-collapse: collapse;
  min-width: 500px;
}

.theme-post-content table td {
  border: 1px solid #222222;
  font-size: 16px;
  padding: 5px 10px;
}