/*
Theme Name: Tome
Theme URI: http://typefold.com/
Description: Typefold Tome theme for the tome.press site.
Version: 1.8 (WP 4.1)
Author: Agustin M. Sevilla III
Author URI: http://typefold.com/
*/
.content-area {
    padding-top:1em;
}

.content-area ul,.content-area ol, .content-area p, .works-cited span {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

.entry-title {
    text-align: center;
}

.author {
    text-align: center;
}

.author small {
    font-weight: 100;
    font-style: italic;
    text-align: center;
}


/* Admin bar is so annoying... */
body.logged-in.admin-bar > .fixed {
    top:28px;
}

@media screen and (max-width:782px) {
    body.logged-in.admin-bar > .fixed {
        top:46px;
    }   
}

.wrapper {
    border: 20px solid #212121;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100%;
    min-height: 100vh;
    z-index: 500;
}
@media screen and (min-width: 160px) {
    .wrapper {
        height: 100%;
        height: 100vh;
        overflow: hidden;
        position: fixed;
    }
}

.viewer,
.sidebar {
    background: #fff;
    height: 50%;
    height: 50vh;
}
.viewer .viewer-inner .portrait,
.viewer .viewer-inner .portrait img {
    width: auto;
    margin: 0 auto;
    /*max-height: 50%;*/
}


.viewer .viewer-inner  {
    padding: 0;
    max-height: 50vh;
}
@media screen and (min-width: 960px) {
    .viewer,
    .sidebar {
        position: absolute;
        height: 100%;
    }
}

@media screen and (min-width: 960px) {
    .viewer {
        top: 0;
        bottom: 0;
        left: 0;
        right: 320px;
    }
}

@media screen and (min-width: 960px) {
    .viewer .viewer-inner {
        left: 0;
        width: 100%;
        /*height: 100%;*/
        max-height: 100%;
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }
}
@media screen and (min-width: 960px) {
    .viewer .viewer-inner .portrait {
        position: relative;
        left: auto;
        top: auto;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
        height: 100%;
    }
    .viewer .viewer-inner .portrait img {
        height: 100%;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-height: 100%;
    }
}
.viewer img {
    display: block;
    height: auto;
    width: 100%;
    position: relative;
}

@media screen and (max-width: 960px) {
    .tome-slider-slide {
        height: 50%;
        height: 50vh;
        max-height: 50%;
        max-height: 50vh;
    }
}

.sidebar {
    bottom: 0;
    padding: 40px 20px 20px 30px;
    right: 0;
    top: 0;
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    overflow-y: scroll;
    max-width: 100%;

}
@media screen and (min-width: 960px) {
    .sidebar {
        max-width: 320px;
        overflow-y: hidden;
        /*display: block;*/
    }
}
.sidebar .title {
    -webkit-box-ordinal-group: 1;
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    font-size: 18px;
    margin-top: 15px;
    font-weight: bold;
}
.sidebar .caption {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    color: #333333;
    font-style: italic;
    font-size: 1.0rem !important;
    overflow-y: visible;
    margin-bottom: 20px;
}
.sidebar .description {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -webkit-box-ordinal-group: 3;
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    position: relative;
    overflow-y: visible;
    font-size: 1.0rem !important;
    font-style: normal;
    margin-bottom: 20px;
}

@media screen and (min-width: 960px) {


    .sidebar .description {
        overflow-y: auto;
    }
    .sidebar .caption {
        overflow-y: auto;
    }
}

.sidebar .tags {
    -webkit-align-self: flex-end;
    -ms-flex-item-align: end;
    align-self: flex-end;
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
    -ms-flex-order: 3;
    order: 3;
    -webkit-box-flex: 100;
    -webkit-flex-grow: 100;
    -ms-flex-positive: 100;
    flex-grow: 100;
    width: 100%;
    font-size: 0.6125rem;
    list-style: none;
    margin: 0;
    padding: 0 0 20px;
    text-transform: uppercase;
}
.sidebar .tags li {
    display: inline-block;
    margin-bottom: 3px;
    margin-right: 3px;
}

.controls {
    -webkit-align-self: flex-end;
    -ms-flex-item-align: end;
    align-self: flex-end;
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
    -ms-flex-order: -1;
    order: -1;
    width: 100%;
}
@media screen and (min-width: 960px) {
    .controls {
        -webkit-box-ordinal-group: 5;
        -webkit-order: 4;
        -ms-flex-order: 4;
        order: 4;
        padding: 10px 0 0;
    }
}
.controls button {
    display: block;
    float: right;
    padding: 0.5em;
    width: 60px;
    font-weight: normal;
}
.controls button:focus { outline: none; }
.controls button:first-child {
    border-right: none;
}

button.viewer-close {
    border: none;
    color: white;
    position: absolute;
    outline: none;
    top: 0px;
    right: 0;
    font-size: 30px;
    font-weight: bold;
    line-height: 0.5;
    padding: 15px;
    -webkit-transition: background-color 0.15s, -webkit-transform 0.15s;
    transition: background-color 0.15s, transform 0.15s;
    background: #39b27d;
    box-shadow: none;
}

button.viewer-close:hover {
    background-color: #2d8b62;
}
button.viewer-close:active {
    -webkit-transform-origin: center center;
    -ms-transform-origin: center center;
    transform-origin: center center;
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.sidebar .tags li a, .controls button {
    border-width: 1px;
    border-style: solid;
    color: #808080;
    padding: 10px 0;
    text-decoration: none;
    line-height: 1;
    box-shadow: none;
    text-indent: -9999px;
    border: 0;
    margin: 0;
}

.controls button.ctrl-previous {
    border-right: 1px solid #656567;
    background: url('img/arrow_left.png') no-repeat center center;
    background-color: #808080;
}

.controls button.ctrl-next {
    background: url('img/arrow_right.png') no-repeat center center;
    background-color: #808080;
}

.sidebar .tags li a:hover, .controls button:hover {
    background-color: #656567;
}
.sidebar .tags li a:visited, .controls button:visited {
    color: #0d7373;
}

button[data-clone] {
    background: #0d730d;
}

button[data-delete] {
    background: #e61919;
}

button[data-clone],
button[data-delete] {
    font-weight: 700;
    border: none;
    color: white;
    font-size: 0.85rem;
}
