/*
 Theme Name:   Origin Child Theme
 Description:  Child theme for Origin, customized for VUL Exhibits
 Author:       Vanderbilt University Libraries (Jodie Gambill)
 Template:     Origin
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Child theme definition */
@import url("../Origin/style.css");

/* Divi Builder tweak */
.et_pb_pagebuilder_layout.single-item #page-container .et_pb_row { width: 100%; }
.et_pb_pagebuilder_layout.single-item #page-container .et_pb_with_background .et_pb_row { width: 80%; }

/* Overwrite Customize colors values */
/* Gold = #d4ab4e, Almost-gray background = #28271d, Border black = #000000, Text/links off-white = #fcfdfa */
#info-bg, #main-wrap:before { background: #28271d !important; }
#top-menu a:hover .link_text, .current-menu-item > a, #top-menu .current-menu-item > a:hover, #top-menu .current-menu-item > a:hover .link_bg, .et_active_dropdown > li a, #top-menu .et_clicked, #mobile-nav { color: #28271d !important; }
 @media only screen and (max-width: 1023px){ #info-area { background: #28271d !important; } }
.widget, #top-menu a, #mobile-nav, #info-area, #info-bg, #top-menu { border-color: #000000 !important; }
.current-menu-item > a, .et_active_dropdown > li a, #top-menu .et_clicked, #mobile-nav, #top-menu a:hover .link_bg, #top-menu .current-menu-item > a:hover, #top-menu .current-menu-item > a:hover .link_bg { background: #d4ab4e !important; }
#top-menu ul ul a:hover .link_bg { background: #28271d !important; }
#sidebar, #sidebar h4 { color: #fcfdfa !important; }
body.custom-background { background-color: #fcfdfa !important; }

/* Homepage gallery grid of items: Change hover to gold (from orange) */
.image-info {
    background: #d8ba4c;
    background: rgba(216, 186, 76, 0.95);
    /* No way to do color only for the box shadow stuff, so had to include entire declaration for each */
    -moz-box-shadow: inset 0 0 0 1px #e5c759, 0 0 20px rgba(0,0,0,0.6);
    -webkit-box-shadow: inset 0 0 0 1px #e5c759, 0 0 20px rgba(0,0,0,0.6);
    box-shadow: inset 0 0 0 1px #e5c759, 0 0 20px rgba(0,0,0,0.6);
}

/* Homepage gallery grid of items: Change image of magnifying glass to gold (from orange) */
.entry-image .readmore span { background: url(images/zoom.png) no-repeat; }

/* Sidebar contents */
#vul-sitetitle {
    padding: 0 20px 30px;
    text-align: center;
}
#vul-sitetitle a {
    text-decoration: none;
}
#logo-area {
    margin-bottom: 50px;
}

/* All of the following values are supposedly able to be set in Appearance > Customize for this theme, but changing those values has no effect on the front end. I had to put the desired color values here with !important because the styles from Customize are embedded on the page, not in the css. */
.et_active_dropdown > li a { background-color: #28271d !important; }
.et_active_dropdown > li a .link_text { color: #fcfdfa !important; }
.et_active_dropdown > li a:hover .link_text { color: #28271d !important; }
#top-menu a:hover .link_bg,
#top-menu .current-menu-item > a:hover,
#top-menu .current-menu-item > a:hover .link_bg {
    background-color: #d4ab4e !important;
}


/* Section page */
.section-intro {
    background-color: #fcfdfa;
    color: #28271d;
    line-height: 2em;
    padding: 30px;
}

.section-intro h2, .section-intro h4 { color: #28271d; }

/* Item display page */
.main-title h1 {
    font-size: 35px;
}

.post-thumbnail:before { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }

#player_video {
    margin-bottom: 30px;
}

.vul-custom-fields {
    margin-bottom: 50px;
}
.vul-custom-field label {
    display: inline-block;
    font-weight: bold;
    width: 175px;
}

.vul-custom-field {
    padding: 4px 0;
}

.vul-prev-next {
    font-weight: bold;
    margin: 20px 0;
}
.vul-next { float: right; }

/* Adding some spice: using a subtle pattern for the background. */
#info-bg, #info-area {
    background-color: #222222 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23444444' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E") !important;
  }

/* Improving poor size contrast b/t header and text. */
.section-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5em;
}

/* Aligning page title with VU logo. */
.section-intro {
    padding-top: 64px;
}

/* Accessibility fixes. */
.image-info .title h2,
.image-info .description {
    color: #4D410F;
}

/* Quick and dirty way of removing navigation toggle. */
#mobile-nav {
    display: none;
}

#top-menu {
    display: block;
}

/* Fix title from being dragged off-screen by parent theme. */
body.page .main-title {
    top: 0;
}

/* Grid template. Provides space b/t grid items and moves away from floats and other assorted outdated (and painful) trickery for layout. */
.entry-image {
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding: 30px;
}

@media screen and (min-width: 768px) and (max-width: 1570px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Media queries used by Origin for the various screen sizes */
@media screen and (max-width: 1570px) {
}

@media screen and (min-width: 1024px) {
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
}

@media screen and (min-width: 1150px) and (max-width: 1279px) {
}

@media screen and (max-width: 960px) {
}

@media screen and (max-width: 1023px) {
}

@media screen and (min-width: 930px) and (max-width: 1023px) {
    #vul-sitetitle h3 {
        font-size: 2em;
    }
}

@media screen and (min-width: 768px) and (max-width: 960px) {
    #vul-sitetitle h3 {
        font-size: 2em;
    }
}

@media screen and (max-width: 767px) {
    .vul-custom-fields {
        margin-bottom: 40px;
    }
    .vul-custom-field {
        margin-bottom: 10px;
    }
    .vul-custom-field label {
        display: block;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 650px) and (max-width: 767px) {
    #vul-sitetitle h3 {
        font-size: 2em;
    }
}

@media screen and (max-width: 479px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 400px) and (max-width: 479px) {
}
