#home-nav > a {
    background-color: #D7E0E7;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.125) inset;
}

@font-face {
    font-family: prettyAmp;
    src: local(?), url(//clf.library.ubc.ca/fonts/goudystm-italic-webfont.woff) format(woff), url(//clf.library.ubc.ca/fonts/goudystm-italic-webfont.ttf) format(truetype), url(//clf.library.ubc.ca/fonts/goudystm-italic-webfont.svg#SortsMillGoudyItalic) format(svg);
    font-weight: 400;
    font-style: normal;
}

.smallest-size {
    display: none;
}

h1.smallest-size {
    position: relative;
    top: 20px;
}

select.smallest-size {
    margin-bottom: 14px;
    font-size: 16px;
    padding: 3px;
}

.message {
    margin: 20px 0;
}

.message p {
    margin: 5px 0;
}

.grid h1, .grid h2, .grid h3 {
    margin-top: 0;
    text-rendering: auto;
}

.grid h2 {
    color: #333;
    font-weight: 400;
    font-size: 24px;
}

.grid h3 {
    font-weight: 400;
    font-size: 20px;
}

.grid a:hover {
    text-decoration: underline;
}

.grid ul {
    list-style: none;
    margin: 0;
}

.grid .box {
    margin-bottom: 20px;
    border: 1px solid #DDD;
    border-radius: 4px;
    box-shadow: 0 1px 1px 0 #AAA;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=155, Color='#AAAAAA')";
}

.grid .button.dark {
    color: #fff;
    font-weight: 400;
    border-radius: 4px 4px 4px 4px;
    background: #333;
    filter: none;
    border-color: #333;
    margin: 0;
}

.grid .button.dark:hover {
    background-color: #555;
    box-shadow: none;
    border-color: #555;
}

.grid .button.dark.small {
    font-size: 12px !important;
    line-height: 1.5em !important;
}

.grid p.see-all {
    clear: both;
    text-align: right;
    margin: 0;
}

.grid .see-all a {
    color: #333;
    font-weight: 700;
}

#tagline-container {
    position: relative;
    z-index: 15;
}

#tagline {
    position: absolute;
    top: 24px;
    left: 10%;
    width: 500px;
}

#tagline #sources {
    display: none;
    width: 210px;
    padding-left: 11px;
    text-align: left;
}

#tagline h1, #tagline #sources ul {
    font-family: prettyAmp, Georgia, Times, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 110%;
    color: #fff;
    text-shadow: 2px 2px 3px #333, 0 0 6px #000;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=120, Color='#333333')";
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#333333');
    margin: 0 !important;
}

#tagline h1 {
    float: left;
    clear: both;
    margin-bottom: 2px !important;
}

#tagline #sources ul {
    color: #ffdb52;
}

#tagline #sources ul li {
    line-height: 110%;
}

#tabs-container {
    position: relative;
    z-index: 20;
}

#tabs-container #tabs {
    position: absolute;
    top: 140px;
    min-width: 540px;
}

#tabs .navig {
    overflow: hidden;
}

#tabs .navig li {
    float: left;
    width: auto;
    margin: 0 2px 0 0;
}

#tabs .navig li.last {
    float: right;
    margin-right: 0;
}

#tabs .navig li a {
    display: block;
    margin-top: 3px;
    color: #333;
    font-size: 13px;
    text-align: center;
    background: #fcf7c7;
    border: 1px solid #aaa;
    -webkit-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    padding: 5px 8px;
}

#tabs .navig li a:hover, #tabs .navig li a:focus {
    background: #feee95;
    text-decoration: none;
}

#tabs .navig li.last a {
    background-color: #d7d7d7;
}

#tabs .navig li.last a:hover {
    background-color: #bbb;
}

#tabs .navig li a.current, #tabs .navig li a.current:hover {
    margin-top: 0;
    padding-bottom: 9px;
    border-bottom: none;
    background-color: #fff !important;
    color: #333 !important;
    font-weight: 700;
}

#tabs .list-wrap {
    border: 1px solid #aaa;
    border-top: none;
    background: #fff;
    -webkit-box-shadow: 0 2px 8px 0 #333;
    box-shadow: 0 2px 8px 0 #333;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=120, Color='#333333')";
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#333333');
    margin: 0;
    padding: 20px 20px 10px;
}

.ie7 #tabs .list-wrap {
    padding-top: 0;
    height: 115px !important;
}

#tabs .list-wrap fieldset.focused {
    background-color: transparent !important;
    outline: none !important;
}

#tabs .list-wrap label {
    color: #333;
    font-size: 13px;
}

#tabs .list-wrap input[type=text] {
    height: inherit;
    font-size: 14px;
}

#tabs .list-wrap .span2 {
    text-align: right;
}

#tabs .list-wrap .button.medium {
    margin-top: 25px;
    -ms-filter: none;
    filter: none;
}

#tabs .list-wrap ul.hide {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

#tabs div.list-wrap p {
    line-height: 100%;
    margin: 0;
}

#tabs .tooltip-top {
    position: absolute;
    display: none;
    margin-top: -20px;
    margin-left: 10px;
    width: 200px;
    height: 14px;
    background: url(//clf.library.ubc.ca/img/tooltip-top.png) top center no-repeat;
}

.ie7 #tabs .tooltip-top {
    display: none !important;
}

#tabs .tooltip-inside {
    display: none;
    margin-top: -7px;
    margin-left: 0;
    width: 220px;
    border: 1px solid #ccc;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: #fcf7c7;
    background: -moz-linear-gradient(top, #fcf7c7 0%, #feee95 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fcf7c7), color-stop(100%, #feee95));
    background: -webkit-linear-gradient(top, #fcf7c7 0%, #feee95 100%);
    background: -o-linear-gradient(top, #fcf7c7 0%, #feee95 100%);
    background: -ms-linear-gradient(top, #fcf7c7 0%, #feee95 100%);
    background: linear-gradient(to bottom, #fcf7c7 0%, #feee95 100%);
    -webkit-box-shadow: 0 1px 6px #aaa;
    -moz-box-shadow: 0 1px 6px #aaa;
    box-shadow: 0 1px 6px #aaa;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=155, Color='#AAAAAA')";
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcf7c7', endColorstr='#feee95', GradientType=0);
    -o-box-shadow: 0 1px 6px #aaa;
}

#tabs .tooltip-inside p {
    color: #000;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 9px 0;
}

.ie7 #tabs .tooltip-inside p {
    padding-left: 10px;
    text-align: left;
}

.grid .gsc-control-cse, .grid .gsc-search-box-tools .gsc-search-box .gsc-input {
    padding: 0 !important;
}

.grid input.gsc-input, .grid .gsc-input-box, .grid .gsc-input-box-hover, .grid .gsc-input-box-focus {
    border-color: #ccc;
}

.grid input.gsc-search-button, .grid input.gsc-search-button:hover, .grid input.gsc-search-button:focus {
    background-color: #aaa;
    background-image: none;
    filter: none;
    border-color: #aaa;
}

.ie7 #site {
    padding-top: 35px;
}

#site #gsc-i-id1, .results #gsc-i-id1 {
    background: none !important;
    box-shadow: none;
}

#site input.gsc-search-button-v2 {
    margin-top: 0;
}

#site #cse-search-form {
    padding-bottom: 15px;
}

#site input:focus, #search-results input:focus {
    box-shadow: none !important;
}

#search-results img.header {
    padding: 20px 0;
}

#search-results .gsc-results .gsc-cursor-box .gsc-cursor-page {
    margin-right: 12px;
    border: 1px solid #ddd;
    background-color: #eee;
    color: #444;
    padding: 2px 4px;
}

#search-results .gsc-results .gsc-cursor-box .gsc-cursor-page:hover {
    background-color: #DDF;
    text-decoration: none !important;
    border-color: #999;
}

#search-results .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
    color: #444;
    font-weight: 700;
    border-color: #999;
}

#search-results .gsc-results .gsc-cursor-box {
    text-align: center;
    margin: 20px 0;
}

#slideshow-container {
    position: relative;
    margin-bottom: 20px;
    font-size: 75%;
}

#slideshow-container #slideshow {
    position: relative;
    z-index: 5;
    overflow: scroll;
    max-width: 980px;
    height: 335px;
    margin: 0 auto;
}

#slideshow #slides {
    margin: 0;
}

#slideshow #slides li {
    margin: 0 0 20px;
}

#slideshow #slides, #slideshow #slides li, #slideshow #slides div {
    width: 100% !important;
    height: 100%;
}

.bg-img{
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
/*
.bg-img{
    margin: 0px;
    xheight: 100vh;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
*/
.box.link {
    background-color: #fafafa;
    text-align: center;
}

.ie7 .box.link {
    width: 268px;
}

.box.link h2 {
    margin-bottom: 12px;
    padding-bottom: 22px;
    background: url(//clf.library.ubc.ca/img/decorative-line.png) no-repeat center bottom;
    white-space: nowrap;
    font-family: prettyAmp, Georgia, Times, "Times New Roman", serif;
}

.box.link ul {
    width: 100%;
}

.box.link ul li {
    border-bottom: 1px solid #ddd;
    background-color: #f2f2f2;
    padding: 8px 0;
}

.box.link ul li:last-child {
    border: none;
}

.box.link ul li:hover {
    background-color: #ddd;
}

.box.link ul li a {
    display: inline-block;
    width: 100%;
    color: #333;
}

.side.box {
    background: #fff;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #DDD;
    box-shadow: 0 1px 1px 0 #AAA;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=155, Color='#AAAAAA')";
}

.side.box h3 a {
    font-family: prettyAmp, Georgia, Times, "Times New Roman", serif;
    color: #333;
}

#hours {
    padding: 15px 20px 20px;
}

.ie7 #hours {
    margin-top: 20px;
}

#locations-table {
    border-radius: 5px 5px 0 0;
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    z-index: 60;
}

#locations-table .slide-out {
    display: block;
    min-height: 45px;
    cursor: pointer;
    white-space: nowrap;
    border-right: 1px solid #CCC;
    border-color: #CCC;
    border-style: none solid solid;
    border-width: medium 1px 1px;
}

#locations-table dt {
    color: #000;
    float: left;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    width: 75%;
}

#locations-table .xwi7xwa dt {
    font-family: 'Arial Unicode MS' !important;
}

#locations-table .slide-out dt {
    padding: 15px 0 15px 12px;
}

#locations-table dd {
    color: #000;
    font-size: 11px;
    padding-top: 5px;
    text-align: center;
}

#locations-table .headers dt, #locations-table .headers dd {
    background-color: #666;
    color: #FFF;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 7px 0 7px 12px;
}

#locations-table .headers dt {
    border-radius: 5px 0 0 0;
    letter-spacing: .5px;
    line-height: 20px;
}

#locations-table .headers dd {
    border-radius: 5px 5px 0 0;
}

#locations-table a:visited, #locations-table a:hover {
    color: #000;
    text-decoration: none;
}

#locations-table .alt {
    background-color: #EEE;
}

#locations-table .slide-out:hover, #locations-table .selected, #locations-table .hover {
    background: none repeat scroll 0 0 #DDF;
    border-right-color: #DDF;
}

#locations-table .slide-out:hover dt, #locations-table .selected dt, #locations-table .hover dt {
    border-right-color: #DDF;
}

#locations-table .open, #locations-table .closed {
    color: #060;
    display: block;
    font-size: 18px;
    text-align: center;
}

#locations-table .closed {
    color: #900;
}

.ie7 #locations-table .headers {
    display: block;
}

.ie7 #locations-table .headers dt {
    padding-left: 11px;
}

#workshops .event {
    clear: both;
    margin-top: 20px;
    min-height: 68px;
}

#workshops .event h4 {
    margin-bottom: 0;
    line-height: 150%;
}

#workshops .event h4 a {
    color: #333;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
}

#workshops p {
    line-height: 130%;
    margin: 10px 0 10px 68px;
}

#workshops .event .calendar {
    float: left;
    clear: both;
    width: 53px;
    border: 1px solid #666;
    border-radius: 3px 3px 3px 3px;
    -webkit-box-shadow: 0 1px 1px #AAA;
    -moz-box-shadow: 0 1px 1px #AAA;
    box-shadow: 0 1px 1px #AAA;
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=155, Color='#AAAAAA')";
    -o-box-shadow: 0 1px 1px #AAA;
    margin: 0 10px 2px 0;
}

#workshops .event .calendar a {
    color: inherit;
}

#workshops .event .calendar span {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
}

#workshops .event .calendar span.month {
    border-bottom: 1px solid #666;
    background-color: #ca3300;
    color: #fff;
    letter-spacing: 1px;
    padding: 2px 0;
}

#workshops .event .calendar span.date {
    background-color: #fff;
    font-size: 24px;
    padding: 2px 0;
}

#about li {
    line-height: 20px;
}

.blog-mobile {
    display: none;
}

.blog h2, .blog-mobile h2 {
    font-family: prettyAmp, Georgia, Times, "Times New Roman", serif;
}

.ie7 .blog h2 {
    margin: 10px 0;
}

.blog-post .blog-image {
    margin-bottom: -45px;
    width: 100%;
}

.blog-post .blog-content {
    margin-left: 5%;
    width: 88%;
    border: 1px solid #eee;
    background-color: #fff;
    opacity: .92;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    filter: alpha(opacity=92);
    padding: 10px;
}

.blog-post .blog-content.featured {
    border: none;
    opacity: 0;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    filter: alpha(opacity=100);
    margin: 0 0 20px;
}

.blog-content h3 a {
    display: inline-block;
    color: #333;
    font-weight: 400;
    font-size: 22px;
    font-family: prettyAmp, Georgia, Times, "Times New Roman", serif;
    line-height: 120%;
    padding: 10px 10px 0;
}

.blog-content p {
    line-height: 1.4em;
    margin: 1.5em 0;
    padding: 0 10px;
}

.blog-content span.posted {
    float: right;
    margin-top: 12px;
    font-size: 11px;
}

.ie7 .blog-post .blog-content span.posted {
    margin-top: -32px;
    margin-right: 10px;
}

.grid, .blog-post, .ie7 .blog-content span.button.dark {
    margin-bottom: 20px;
}

.grid a, .grid h2 a:hover, .grid h3 a:hover, .box.link ul li a:hover, #workshops .event .calendar a:hover {
    text-decoration: none;
}

.ie7 #tagline h1, .ie7 #tagline #sources ul, .ie7 .box.link h2, .ie7 .blog h2, .ie7 .blog-post .blog-content h3 a, .ie7 .side.box h3 a, x:-o-prefocus, #tagline-container .smallest-size, #tagline h1, #tagline #sources ul, .box.link h2, .blog h2 a, .blog-post .blog-content h3 a, .side.box h3 a {
    font-family: Georgia, Times, "Times New Roman", serif;
}

#tabs .list-wrap form, .blog-post .blog-image.featured {
    margin-bottom: 0;
}

.grid .gsc-table-result, .grid .gsc-thumbnail-inside, .grid .gsc-url-top, .grid .gsc-result-info {
    padding-left: 0;
}

#site label, #locations-table .sublevel dt {
    font-weight: 400;
}

#site .gsib_a, .ie7 #locations-table .headers dt, .ie7 #locations-table .headers dd {
    padding: 0;
}

.box.link h2 a, #locations-table a, #about li a, .blog h2 a {
    color: #333;
}

#workshops .event h4 a:hover, .blog-content h3 a:hover {
    text-decoration: underline !important;
}

@media (min-width: 75em) {
    #slideshow-container {
        background-color: #222;
    }

    #slideshow-container #slideshow {
        /*max-width: 940px;*/
        max-width: 1170px;
    }


}

@media (max-width: 47.95em) {
    .blog-mobile {
        display: block;
    }

    .blog {
        display: none !important;
    }

    .grid .see-all a {
        font-size: 15px;
    }

    .grid .button.dark.small {
        padding: 6px 9px;
    }

    #tagline {
        left: 2%;
    }

    #tagline h1, #tagline #sources ul {
        text-shadow: 1px 1px 1px #333;
        -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=120, Color='#333333')";
        filter: progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=120, Color='#333333');
    }

    .ie9 #tagline-container h1, .ie9 #tagline h1, .ie9 #tagline #sources ul {
        filter: none;
    }

    #tagline h1 {
        color: #002145;
    }

    #tabs .list-wrap {
        -webkit-box-shadow: 0 1px 4px 0 #333;
        box-shadow: 0 1px 4px 0 #333;
    }

    .ie9 #tabs .list-wrap {
        box-shadow: 0 0 1px 1px #AAA;
    }

    #tabs .list-wrap .row-fluid [class*=span] {
        min-height: 0;
    }

    #tabs .list-wrap .span5 {
        display: none;
    }

    #tabs .list-wrap .button.medium {
        margin-top: 0;
        margin-bottom: 10px;
        padding: 10px;
    }

    .blog-post .blog-image {
        text-align: center;
    }
}

@media (max-width: 36.875em) {
    .blog-mobile {
        display: block;
    }

    .blog {
        display: none;
    }

    .smallest-size {
        display: block;
    }

    #tagline-container h1 {
        text-shadow: 1px 1px 1px #333;
        font-weight: 400;
        font-size: 42px;
        font-family: prettyAmp, Georgia, Times, "Times New Roman", serif;
        -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=120, Color='#333333')";
        filter: progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#333333');
    }

    #tabs-container #tabs {
        top: 45px;
        min-width: 0;
    }

    #tabs .list-wrap {
        margin-top: 34px;
        min-height: 115px;
        border-top: 1px solid #aaa;
        background: #fcf7c7;
    }

    #tabs .list-wrap .span2 {
        text-align: center;
    }

    #slideshow-container #slideshow {
        margin-bottom: 260px;
        height: auto;
    }

    #tagline, #tabs .navig {
        display: none;
    }
}

@media (max-width: 26.25em) {
    #tagline-container h1.smallest-size {
        font-size: 34px;
    }

    #slideshow-container {
        margin-bottom: 280px;
    }

    #workshops p {
        margin: 10px 0;
    }

    #locations-table {
        border-top: 1px solid #ccc;
        border-radius: 0;
    }

    #locations-table dt, #locations-table dd {
        font-size: 14px;
    }

    #locations-table .headers dt, #locations-table .headers dd {
        display: none;
    }

    #locations-table .slide-out dt {
        float: none;
        padding-right: 12px;
        padding-bottom: 2px;
        width: 90%;
        white-space: normal;
    }

    #locations-table .slide-out dd {
        padding-bottom: 15px;
        text-align: center;
        font-size: 15px;
    }

    #locations-table .sublevel dt {
        text-indent: -16px;
    }

    #locations-table .open, #locations-table .closed {
        text-align: center;
    }
}