/*
Theme Name: Jeff's Reviews
Theme URI: https://reviews.jeffnyveen.com/
Description: Child theme of InReview with movie review customizations (posters, OMDB/TMDB, listing pages).
Author: Jeff Nyveen
Template: InReview
Version: 1.1.5
*/

/* Parent early-section overrides kept in the child so InReview can stay closer to stock.
   Child header uses #primary-menu; stock InReview CSS targets #secondary-menu. */

#bottom-header {
    background: #111;
    height: 46px;
}

ul#primary-menu {
    float: left;
}

ul#primary-menu a {
    font-size: 12px;
    font-family: 'Droid Sans', Arial, Verdana, sans-serif;
    color: #fff;
    text-decoration: none;
    padding: 14px 9px;
}

ul#primary-menu a:hover {
    color: #bebebe;
}

ul#primary-menu > li.current_page_item > a,
ul#primary-menu > li.current-menu-item > a {
    color: #bebebe !important;
    font-style: italic;
    font-family: Georgia, serif;
    font-weight: normal;
    text-shadow: 1px 1px 0px #ffffff;
    background: url(../InReview/images/current-bg.png) repeat-x 0px 5px;
}

ul#primary-menu li ul {
    width: 151px !important;
    padding: 7px 7px 10px 25px;
    background: #fff;
    top: 41px !important;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.1);
    border-color: 1px solid #323b44;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-top-left-radius: 0px;
    -moz-border-radius-topleft: 0px;
    border-top-right-radius: 0px;
    -webkit-border-top-left-radius: 0px;
    -moz-border-radius-topright: 0px;
    -webkit-border-top-right-radius: 0px;
    z-index: 9999px;
    display: none;
}

ul#primary-menu ul li {
    margin: 0 !important;
    padding: 0 !important;
}

ul#primary-menu ul li a {
    padding: 10px 0px !important;
    width: 160px;
    color: #000;
}

ul#primary-menu li:hover ul ul,
ul#primary-menu li.sfHover ul ul {
    top: -8px !important;
    left: 158px !important;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
}

#search-form #searchsubmit {
    float: left;
    margin-top: 5px;
    margin-right: 6px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url(images/search-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: pointer;
    text-shadow: none;
    filter: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

#search-form #searchsubmit:focus-visible {
    outline: 2px solid #c8c8c8;
    outline-offset: 2px;
}

.box-content {
    min-height: 375px;
}

/* CUSTOMIZATIONS */

body {
    font-family: 'Open Sans', sans-serif;
    text-shadow: none;
}

/* header */

#top-header #top-header-pattern {
    padding: 20px 0;
}

#top-header #top-header-pattern .container a {
    color: #ffffff;
    float: left;
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    line-height: normal;
    margin: 0;
    text-shadow: none;
}

#top-header #top-header-pattern .container a:hover {
    text-decoration: none;
}

#top-header #top-header-pattern .container p#slogan {
    color: #ffffff;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-style: normal;
    line-height: normal;
    margin: 24px 0 0 40px;
    padding: 0;
    text-shadow: none;
}

#top-header ul.nav {
    display: none;
}

ul#primary-menu > li.current_page_item > a,
ul#primary-menu > li.current-menu-item > a {
    background: #000000;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: normal;
    text-shadow: none;
}

#bottom-header input#searchinput {
    color: #c8c8c8 !important;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    padding: 2px 4px 2px 6px;
    text-shadow: none;
}

#bottom-header #search-form #searchsubmit {
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
}

/* home + search */

#left-area {
    margin: 0 106px 0 0;
    padding: 0;
    width: 572px;
}

#left-area h4 {
    display: none;
}

#left-area .post-box {
    background: transparent;
    border-bottom: 1px #cacaca solid;
    margin: 0 0 20px 0;
    padding: 0 0 20px 0;
    width: 100%;
}

#left-area .post-box .box-bottom,
#left-area .post-box .box-content-top,
#left-area .post-box .box-content {
    background: transparent;
    min-height: initial;
    padding: 0;
}

#left-area .post-box .box-content-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#left-area .post-box .box-content-top .box-thumbnail {
    float: none;
    flex: 0 0 auto;
    height: auto;
    margin: 0;
    width: auto;
}

#left-area .post-box .box-content-top .post-box-body {
    flex: 1 1 auto;
    min-width: 0;
}

#left-area .post-box .box-content-top .box-thumbnail a {
    display: block;
}

#left-area .post-box .box-content-top .box-thumbnail img {
    background: #f7f7f7;
    border: 1px #ffffff solid;
    -webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    height: initial;
    padding: 8px;
    width: 150px;
}

#left-area .post-box .box-content-top .box-thumbnail .box-overlay {
    display: none;
}

#left-area .post-box .box-content-top h2.title {
    color: #666666;
    line-height: 22px;
    margin: 0 0 5px 0;
    padding: 0;
}

#left-area .post-box .box-content-top h2.title span.year {
    font-size: 14px;
}

#left-area .post-box .box-content-top p {
    color: #666666;
    line-height: 22px;
    margin: 0;
}

#left-area .post-box .box-content-top p.featured-meta {
    color: #aaaaaa;
    line-height: 11px;
    margin: 0 0 10px 0;
    padding: 0;
}

#left-area .post-box .box-content-top .rating-container {
    display: inline-block;
    float: none;
    width: auto;
    max-width: 98px;
    margin: 0 0 10px 0;
    position: relative;
    vertical-align: top;
}

#left-area .post-box .box-content-top a.readmore {
    background: #ccc;
    border-radius: 8px;
    bottom: auto;
    color: white;
    display: inline-block;
    float: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    left: auto;
    line-height: 20px;
    margin: 0;
    padding: 0 10px;
    position: relative;
    text-shadow: none;
    text-transform: uppercase;
    transition: 0.2s all ease;
    width: auto;
}

#left-area .post-box .box-content-top a.readmore span {
    background: none;
    display: inline;
    float: none;
    height: auto;
    padding: 0;
}

#left-area .post-box .box-content-top a.readmore:hover {
    background: #aaa;
}

#left-area .post-box .box-content-top a.readmore span {
    background: transparent;
    height: initial;
    padding: 0;
}

#left-area .pagination {
    clear: both;
    display: block;
    padding: 20px 0 0 0;
    width: 572px;
}

#left-area .pagination a {
    color: #666666;
}

#left-area .pagination a:hover {
    text-decoration: none;
}

/*
body.home #left-area .post-box:first-of-type {
	margin-right: 0;
	width: 576px;
}

body.home #left-area .post-box:first-of-type .box-content {
	min-height: 0;
}

body.home #left-area .post-box:first-of-type .box-content .box-thumbnail {
	float: left;
	margin-right: 10px;
}
*/

/* article */

#breadcrumbs {
    display: none;
}

.entry {
    margin: 0 0 20px 0;
    padding: 0;
}

.entry .post-description {
    display: block;
    float: none;
    width: auto;
}

.entry .post-description h1 {
    margin: 0 0 8px 0;
    padding: 0;
}

.entry .post-description h1 span.year {
    font-size: 17px;
}

.entry .post-description h2.directors,
.entry .post-description h2.actors {
    border-top: none;
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 14px;
}

.entry p.featured-meta,
.entry p.featured-meta a {
    color: #aaaaaa;
}

.entry .post-description .rating-row {
    height: 27px;
    margin: 0 0 25px 0;
}

.entry .post-description .rating-container:nth-of-type(1) .rating-inner span {
    display: none;
}

.entry .post-description .rating-container:nth-of-type(2) {
    margin-left: 10px;
}

.entry .post-thumbnail {
    display: none; /* hiding to use JSON posters */
    float: right;
    margin: 0 0 0 10px;
    position: relative;
}

.entry .entry-content {
    float: none;
    margin-top: 20px;
    padding: 0;
}

.entry ol,
.entry ul {
    margin: 0 50px 25px 50px !important;
    padding: 0 !important;
}

.entry ol li {
    margin: 0;
    padding: 0;
}

.entry ol li ol {
    list-style-type: lower-alpha !important;
    margin: 0 !important;
}

.entry ol li ol li {
    margin: 0;
    padding: 0;
}

.entry p {
    color: #666666;
    line-height: 22px;
    padding: 0 0 22px 0;
}

.entry p {
    color: #666666;
    line-height: 22px;
    padding: 0 0 22px 0;
}

.entry p a {
    color: #666666;
    text-decoration: underline;
}

.entry .entry-content a.a2a_dd {
    margin: 0;
    padding: 0;
}

.entry h2 {
    border-top: 1px #dddddd solid;
    font-size: 18px;
    line-height: normal;
    margin: 20px 0 10px 0;
    padding: 5px 0 0 0;
}

.entry table {
    border-collapse: separate;
    margin: 10px 0;
}

.entry table th {
    font-weight: bold;
    line-height: 18px;
    padding: 5px;
    text-align: left;
    vertical-align: bottom;
}

.entry table td {
    border-top: 1px #cccccc solid;
    font-size: 12px;
    line-height: 18px;
    padding: 5px;
    text-align: left;
    vertical-align: top;
}

.entry table td.center {
    text-align: center;
}

.entry div.table {
    margin: 10px 0;
}

.entry div.table div {
    float: left;
    width: 266px;
}

.entry div.table div:nth-child(2n) {
    margin-left: 40px;
}

.entry div.table div.clear {
    clear: both;
    float: none;
}

.entry a.imdb {
    margin-left: 10px;
}

.entry a.imdb img {
    vertical-align: middle;
    width: 30px;
}

.entry .poster {
    background: #f7f7f7;
    border: 1px #ffffff solid;
    -webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    float: right;
    margin: 0 0 5px 20px;
    padding: 8px;
}

.entry .poster img {
    width: 200px;
}

.entry ol,
.entry ul {
    margin: 0 0 15px 0;
    padding: 0 63px;
}

.entry li {
    line-height: 22px;
    list-style-position: outside;
    margin: 0;
    padding: 0;
}

.entry .stars {
    background: url("/wp-content/themes/InReview/images/stars-sprite.png") 0 -16px repeat-x;
    float: right;
    height: 16px;
}

.entry .stars.rating-50 {
    width: 80px;
}

.entry .stars.rating-45 {
    margin-right: 8px;
    width: 72px;
}

.entry .stars.rating-40 {
    margin-right: 16px;
    width: 64px;
}

.entry .stars.rating-35 {
    margin-right: 24px;
    width: 56px;
}

.entry .stars.rating-30 {
    margin-right: 32px;
    width: 48px;
}

.entry .stars.rating-25 {
    margin-right: 40px;
    width: 40px;
}

.entry .stars.rating-20 {
    margin-right: 48px;
    width: 32px;
}

.entry .stars.rating-15 {
    margin-right: 56px;
    width: 24px;
}

.entry .stars.rating-10 {
    margin-right: 64px;
    width: 16px;
}

.entry .stars.rating-5 {
    margin-right: 72px;
    width: 8px;
}

.entry .stars.rating-0 {
    margin-right: 80px;
    width: 0;
}

.entry blockquote {
    margin-top: 0;
}

.entry blockquote p {
    padding: 0;
}

/* sidebar */

#sidebar {
    width: 282px;
}

#sidebar .widget {
    font-size: 12px;
    line-height: 20px;
    padding: 0;
    width: 282px;
}

#sidebar .widget a {
    color: #666666;
    text-decoration: underline;
}

#sidebar #text-2 img {
    background: #f7f7f7;
    border: 1px #ffffff solid;
    -webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    display: block;
    float: right;
    margin: 0 0 10px 10px;
}

#sidebar .widget_recent_entries span.post-date {
    color: #999999;
    display: block;
    font-size: 11px;
    font-style: italic;
    line-height: normal;
}

/* comments */

body.home #comment-wrap {
    margin-top: 40px;
}

body.home #comment-wrap #et-rating {
    display: none;
}

#comment-wrap .comment-bottom {
    width: 568px;
}

#comment-wrap #respond {
    width: 568px;
}

#comment-wrap #respond textarea#comment {
    width: 545px;
}

/* footer */

#footer #footer-bottom {
    display: none;
}

/* tables */

.entry table {
    width: 100%;
}

.entry table.yearBox,
.entry table.directorBox,
.entry table.actorBox {
    display: none;
    padding-left: 50px;
}

.entry table tr th {
    color: #000000;
}

.entry table tr th span {
    font-size: 11px;
    font-weight: normal;
}

.entry table tr.spacer > td {
    border-top: none;
}

.entry table.directorBox tr:first-child td {
    border-top: none;
    padding-top: 0;
}

.entry table.actorBox tr:first-child td {
    border-top: none;
    padding-top: 0;
}

.entry table tr.highlight td {
    background-color: rgba(255, 255, 0, 0.1);
}

.entry table tr td.right {
    text-align: right;
}

/* posters */

.box-thumbnail img {
    height: 131px;
    width: 246px;
}

table.list td.thumb {
    width: 52px;
}

table.list td.thumb a {
    background: #f7f7f7;
    border: 1px #ffffff solid;
    -webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.25);
    display: block;
    width: 50px;
}

table.list td.thumb a img {
    border: none;
    display: block;
    height: 50px;
    outline: none;
    width: 50px;
}

/*------------------------------------------------*/
/*-----------------[RESPONSIVE]-------------------*/
/*------------------------------------------------*/

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.bottom-header-bar {
    display: block;
}

.menu-toggle {
    display: none;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    cursor: pointer;
    line-height: 0;
}

.menu-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: #fff;
}

.entry,
#left-area .entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media screen and (max-width: 980px) {
    .container {
        box-sizing: border-box;
        width: 100%;
        max-width: 960px;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Stock theme paints the content/sidebar gutter as a fixed-position
       background image (~580px). Drop it when the layout stacks. */
    #main-content,
    #main-content-wrap,
    .fullwidth #main-content-wrap {
        background-image: none;
    }

    #main-content-wrap,
    #left-area,
    #sidebar,
    #left-area .pagination,
    body.home #left-area .post-box:first-of-type,
    .fullwidth #left-area {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    #left-area {
        float: none;
        margin: 0 0 30px 0;
        padding: 0;
    }

    #sidebar {
        float: none;
        clear: both;
    }

    #sidebar .widget {
        width: 100%;
        box-sizing: border-box;
    }

    body.home #left-area .post-box:first-of-type .box-content .box-thumbnail {
        max-width: 100%;
    }

    .box-thumbnail img {
        height: auto;
        max-width: 100%;
        width: auto;
    }

    #comment-wrap .comment-bottom,
    #comment-wrap #respond,
    #comment-wrap #respond textarea#comment {
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 768px) {
    #top-header #top-header-pattern {
        padding: 16px 0;
    }

    #top-header #top-header-pattern .container a {
        float: none;
        display: block;
        font-size: 28px;
    }

    #top-header #top-header-pattern .container p#slogan {
        float: none;
        margin: 8px 0 0 0;
    }

    #bottom-header {
        height: auto;
        min-height: 46px;
    }

    #bottom-header .container {
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }

    .bottom-header-bar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        box-sizing: border-box;
        min-height: 46px;
        padding: 8px 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    #search-form {
        float: none !important;
        grid-column: 3;
        grid-row: 1;
        margin: 0;
    }

    ul#primary-menu {
        display: block;
        float: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-height: 0;
        margin: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background: #0a0a0a;
        transition:
            max-height 0.28s ease,
            opacity 0.2s ease,
            margin 0.28s ease,
            visibility 0.28s;
    }

    body.nav-open ul#primary-menu {
        max-height: 420px;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
    }

    @media (prefers-reduced-motion: reduce) {
        ul#primary-menu {
            transition: none;
        }
    }

    ul#primary-menu > li {
        float: none;
        display: block;
        border-top: 1px solid #222;
    }

    ul#primary-menu a {
        display: block;
        float: none;
        padding: 12px 14px;
    }

    ul#primary-menu > li.current_page_item > a,
    ul#primary-menu > li.current-menu-item > a {
        background: #000;
    }

    ul#primary-menu li ul {
        position: static !important;
        display: block !important;
        width: 100% !important;
        padding: 0 0 0 14px !important;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        top: auto !important;
    }

    ul#primary-menu ul li a {
        width: auto;
        color: #ccc;
        padding: 10px 14px !important;
    }

    #left-area .post-box .box-content-top {
        gap: 14px;
    }

    #left-area .post-box .box-content-top .box-thumbnail img {
        width: 100px;
        height: auto;
    }

    #left-area .post-box .box-content-top a.readmore {
        display: inline-block;
        width: auto;
        margin-top: 4px;
    }

    .entry .poster {
        float: right;
        margin: 0 0 12px 16px;
        max-width: 140px;
    }

    .entry .poster img {
        width: 100%;
    }

    .entry table,
    table.list {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry table.yearBox,
    .entry table.directorBox,
    .entry table.actorBox {
        padding-left: 0;
    }

    #footer-widgets .footer-widget {
        width: 100%;
        margin: 0 0 24px 0;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #top-header #top-header-pattern .container a {
        font-size: 24px;
    }

    #left-area .post-box .box-content-top h2.title {
        font-size: 18px;
        letter-spacing: 0;
    }

    #left-area .post-box .box-content-top {
        gap: 12px;
    }

    #left-area .post-box .box-content-top .box-thumbnail img {
        width: 84px;
    }

    .entry .stars {
        float: none;
        display: block;
        margin: 8px 0;
    }

    .entry .stars[class*="rating-"] {
        margin-right: 0;
    }
}

