/*
*Theme Name: sagablog
*
*Description: Used to style the content editor in posts and pages.
*/


/* =Body
----------------------------------------------- */
html .mceContentBody {
        max-width: 880px;
        max-width: 55rem;
}

body {
        color: #404040;
        color: hsl(0, 0%, 25%);
	font-family: 'Ek Mukta', sans-serif;
	font-size: 18px;
	font-size: 1.125rem;
	line-height: 1.5;
}

/* =Base elements
----------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

a {
        text-decoration: none;	
        color: royalblue;
}

a:visited {
        color: purple;
}

h1, h2, h3, h4, h5, h6 {
	clear: right;
        font-weight: 900;
        font-family: 'Roboto', sans-serif;
        color: #000;
        color: hsl(0, 0%, 0%);
        -ms-word-break: break-word;
        word-break: break-word;
}

h1 {
    font-size: 32px;
    font-size: 2rem;
}

h2 {
    font-size: 30px;
    font-size: 1.875rem;
}

h3 {
    font-size: 28px;
    font-size: 1.75rem;
}

h4 {
    font-size: 26px;
    font-size: 1.625rem;
}

h5 {
    font-size: 24px;
    font-size: 1.5rem;
}

h6 {
    font-size: 22px;
    font-size: 1.375rem;
}

p,
ul,
ol {
    font-size: 20px;
    font-size: 1.25rem;
    line-height: 1.6em;
}

/* =Blockquotes
----------------------------------------------- */
blockquote p {
        font-size: 28px;
        font-size: 1.75rem;
        line-height: 1.5em;
}

blockquote {
        padding: 1em 1.5em 0;
        margin-bottom: 1em;
        font-style: italic;
        border-top: solid 1px hsl(0, 0%, 80%);
        border-bottom: solid 1px hsl(0, 0%, 80%);
}

blockquote.alignleft {
    float: left;
    width: 50%;
    padding: 1em 0 0;
    margin-right: 1.5em;
}

blockquote em {
        font-style: normal;
}

blockquote cite {
    display: block;
    margin-top: 1em;
    margin-left: 40%;
    font-size: 18px;
    font-size: 1.8rem;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    line-height: 1.5em;
    text-align: right;
}

/* =Images
 ----------------------------------------------- */

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
        border: none;
        text-align: center;
        background-color: #fff;
        padding-top: 0;
        margin: 10px 0;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0 auto;
}
.wp-caption-text {
	text-align: center;
}

.gallery-caption,
.wp-caption .wp-caption-text,
.wp-caption-dd {
	padding: 0.8075em 1em;
        background: #e5e5e5;
        background: hsl(0, 0%, 90%);
        border-left: #fff solid 5px;
        border-right: #fff solid 5px;
        font-family: 'Lato', sans-serif;
        font-size: 14px;
}

/* Due to HTML5 galleries being activated defaul gallery styling does not apply.*/

.gallery {
        margin: auto 0;
        padding: 6px;
        width: 712px;
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
}

.gallery img {
        display: block;
}
.gallery a img {
	border: none;
        height: auto;
        max-width: 100%;
        display: block;
        margin: 0 auto;
}

.gallery-item {
        float: left;
        width: auto!important;
        margin-right: 3.333333333%!important;
        margin-bottom: 30px!important;
        padding: 0!important;
        background: #333;
        overflow: hidden;
        position: relative;
}

.gallery-caption {
	background-color: hsla(0, 0%, 0%, .8);
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	margin: 0!important;
        border: none;
	max-height: 50%;
	opacity: 0;
	padding: 6px 8px;
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: left;
	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-columns-6 .gallery-item .gallery-caption,
.gallery-columns-7 .gallery-item .gallery-caption,
.gallery-columns-8 .gallery-item .gallery-caption,
.gallery-columns-9 .gallery-item .gallery-caption{
	display: none;
}


/* =Alignment
----------------------------------------------- */

.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}