/*
Theme Name: MyDogSighs
Theme URI: http://sidigital.co
Author: Michael Watkins
Author URI: http://sidigital.co
Description: MyDogSighs theme using Bootstrap 3
Version: 1.0
*/

* {    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #000000;
    color: #ffffff;
}

body {
    font-family: 'source-sans-pro', arial, verdana, sans-serif;
}

a,
a:active,
a:focus {
    outline: none;
}

/* Heading styles */
h1, h2, h3, h4, strong.heading-esque {
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-weight: 400;
}

h1, strong.heading-esque {
    font-size: 48px;
    line-height: 48px;
}

h2 {
    margin-top: 25px;
    display: block;
    font-size: 48px;
    line-height: 48px;
}

h2.underline {
    line-height: 30px;
    display: inline-block;
}

h2.underline:after {
    padding: 0;
    margin: 5px 0 0 0;
    display: block;
    width: 169px;
    height: 10px;
    content: "";
    background: url('img/underlines_sprite.png');
    background-repeat: no-repeat;
    background-position: left top;
}

/* Paragraph styles */
p {
    padding: 0;
    margin: 30px 0;
    font-size: 16px;
    line-height: 26px;
    color: #161c27;
}

p.bold-intro {
    margin-top: 0;
}

p a {
    color: #fe0000;
}

p a:hover {
    color: #fe8888;
}

/* Link styles */
a, a:hover {
    text-decoration: none;
}

a.button {
    margin: 25px auto 65px auto;
    display: block;
    width: 137px;
    height: 51px;
    background: url('img/button.png') no-repeat;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    line-height: 51px;
    font-size: 24px;
    text-align: center;
    color: #161c27;
    font-weight: normal;
}

a.button:hover {
    margin-top: -2px;
    margin-bottom: 67px;
    color: #383e49;
}

a.button:active {
    margin-top: 0;
    margin-bottom: 65px;
}

a.button.send-another {
    margin-top: 40px;
    margin-bottom: 10px;
}

a.button.send-another:hover {
    margin-top: 38px;
    margin-bottom: 12px;
}

a.button.send-another:active {
    margin-top: 40px;
    margin-bottom: 10px;
}

a.button.back-to-news-button:hover {
    margin-top: 23px;
    margin-bottom: 67px;
}

a.button.back-to-news-button:active {
    margin-top: 25px;
    margin-bottom: 65px;
}

/* Page header */
div.header {
    height: 190px;
    background: url('img/nav_line.png') no-repeat;
    background-position: 45% 90px;
    position: relative;
}

/* Social links */
div.header div.social {
    padding: 0;
    margin: 0;
    display: block;
    height: 40px;
    width: 300px;
    position: absolute;
    bottom: 30px;
    right: 0;
}

div.header div.social ul {
    padding: 0;
    margin: 0;
    display: block;
    list-style: none;
}

div.header div.social ul li {
    margin: 0 15px;
    display: block;
    float: left;
    width: 40px;
    height: 40px;
}

div.header div.social ul li a {
    display: block;
    width: 40px;
    height: 40px;
    background: url('img/social_sprite.png') no-repeat;
    background-position: 0 5px;
    -webkit-transition:background-position 0.05s ease;
    -moz-transition:background-position 0.05s ease;
    -o-transition:background-position 0.05s ease;
    transition:background-position 0.05s ease;
}

div.header div.social ul li a.facebook {
    background-position: 5px -2px;
}

div.header div.social ul li a.facebook:hover {
    background-position: 5px -5px;
}

div.header div.social ul li a.twitter {
    background-position: 5px -45px;
}

div.header div.social ul li a.twitter:hover {
    background-position: 5px -48px;
}

div.header div.social ul li a.instagram {
    background-position: 5px -84px;
}

div.header div.social ul li a.instagram:hover {
    background-position: 5px -87px;
}

div.header div.social ul li a.flickr {
    width: 70px;
    background-position: 5px -125px
}

div.header div.social ul li a.flickr:hover {
    background-position: 5px -127px;
}

div.header div.social ul li a span {
    display: block;
    text-indent: -9999px;
}

/* Logo */
div.logo {
    margin-top: 40px;
    width: 100%;
}

div.logo a {
    display: block;
    width: 380px;
    height: 98px;
    background: url('img/logo.png') center left no-repeat;
}

div.logo a strong {
    display: block;
    text-indent: -9999px;
}

/* Main Menu */
ul#menu-primary-menu {
    padding: 0;
    margin: 25px 0 0 0;
    display: block;
    float: right;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-weight: 400;
    text-transform: lowercase;
}

ul#menu-primary-menu li {
    padding: 0;
    margin: 0;
    display: block;
    float: left;
    font-size: 24px;
    letter-spacing: 1px;
    line-height: 70px;
    width: 130px;
    text-align: center;
}

ul#menu-primary-menu li a {
    padding: 0;
    color: #161c27;
}

ul#menu-primary-menu li a:hover {
    opacity: 0.8;
}

ul#menu-primary-menu li.current-menu-item {
    display: block;    
    background: url('img/nav_active_sprite.png') no-repeat;
    background-position: center -85px;
}

ul#menu-primary-menu li.current-menu-item a {
    color: #ffffff;
}

ul#menu-primary-menu li#menu-item-17.current-menu-item {
    background-position: center -5px;
}

ul#menu-primary-menu li#menu-item-23.current-menu-item {
    background-position: center -85px;
}

ul#menu-primary-menu li#menu-item-18.current-menu-item {
    background-position: center -165px;
}

ul#menu-primary-menu li#menu-item-19.current-menu-item {
    background-position: center -245px;
}

/* Page footer */
div.end-of-page {
    margin-top: 40px;
    height: 43px;
    background: url('img/end.png') center center no-repeat;
}

a.back-to-top {
    margin-top: 0;
}

div.footer {
    margin: 40px 0 30px 0;
    background: url('img/footer_line.png') top center no-repeat;
}

div.footer a {
    color: #161c27;
}

div.footer a:hover {
    color: #5a5f6b;
}

div.footer a.footer-logo {
    padding: 0;
    margin: 20px 0 0 0;
    display: block;
    width: 171px;
    height: 45px;
    float: left;
    background: url('img/footer_logo.png') top center no-repeat;
}

div.footer a.footer-logo strong {
    display: block;
    text-indent: -9999px;
}

div.footer div.contact-link {
    float: left;
}

div.footer div.contact-link a {
    padding: 5px 0 5px 55px;
    margin: 25px 0 0 40px;
    background: url('img/social_sprite.png') left bottom no-repeat;
    display: block;
    font-size: 24px;
    line-height: 28px;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    -webkit-transition:margin 0.05s ease;
    -moz-transition:margin 0.05s ease;
    -o-transition:margin 0.05s ease;
    transition:margin 0.05s ease;
}

div.footer div.contact-link a:hover {
    margin-top: 23px;
}

p.copyright {
    padding: 0;
    margin: 35px 0 0 0;
    text-align: right;
    font-size: 24px;
    line-height: 28px;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    color: #161c27;
}

/* About page */
.row.about_main {
    margin-top: 70px;
}

h2.underline.publications:after {
    background-position: left top;
}

h2.underline.exhibitions:after {
    background-position: 10px -10px;
}

h2.underline.center.films:after {
    background-position: 40px -20px;
}

/* Publications list */
ul.pubs-list {
    padding: 0;
    margin: 40px 0 0 0;
    display: block;
    list-style: none;
}

ul.pubs-list li {
    padding: 0;
    margin: 0 0 30px 0;
    display: block;
    font-size: 16px;
}

ul.pubs-list li strong {
    display: block;
    font-size: 24px;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-weight: normal;
    color: #161c27;
}

ul.pubs-list li a {
    color: #fe0000;
}

ul.pubs-list li a:hover {
    color: #fe8888;
}

/* Exhibitions list */
div.exhibs {
    margin-top: 20px
}

div.exhibs p.description {
    margin: 20px 0;
    font-style: italic;
}

div.exhibs ul.exhibs-list,
div.exhibs ul.exhibs-list li ul,
div.exhibs ul.exhibs-list li ul li ul {
    padding: 0;
    margin: 0;
    display: block;
    list-style: none;
    font-size: 16px;
}

div.exhibs ul.exhibs-list li {
    margin: 30px 0 0 0;
    display: block;
}

div.exhibs ul.exhibs-list li span {
    display: block;
}

div.exhibs ul.exhibs-list li span.heading {
    display: block;
    font-size: 24px;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-weight: normal;
    color: #161c27;
}

div.exhibs ul.exhibs-list li span.subheading {
    font-style: italic;
}

div.exhibs ul.exhibs-list li span.event-heading {
    font-weight: bold;
}


div.exhibs ul.exhibs-list li a {
    color: #161c27;
    font-size: 16px;
}

div.exhibs ul.exhibs-list li a strong {
    display: block;
    line-height: 24px;
}


/* Films list */
div.films-heading {
    margin: 80px 0 0 0;
}

div.film-list {
    margin-top: 50px;
}

div.film {
    padding-bottom: 56.4%;
    margin: 0 auto 20px auto;
    width: auto;
    position: relative;
}

div.film iframe,
div.film object, 
div.film embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact page */
div.contact-form div.row {
    margin-top: 20px;
}

h2.underline.connect:after {
    background-position: 20px -10px;
}

div.contact-form-message {
    display: none;
}

div.contact-form form input,
div.contact-form form textarea {
    width: 100%;
    border: 0;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-size: 24px;
    -webkit-appearance: none;
}

div.contact-form form input[type="text"],
div.contact-form form input[type="email"] {
    padding: 6px;
    line-height: 40px;    
    height: 52px;
    background-image: none;
    border: 1px solid #acafba;
    border-radius: 3px;
    margin-bottom: 10px;
}

div.contact-form form input[type="text"]:focus,
div.contact-form form input[type="email"]:focus {
    border-color: #797d87;
    outline: none;
}

div.contact-form form input[type="text"].wpcf7-not-valid,
div.contact-form form input[type="email"].wpcf7-not-valid {
    border-color: #dc383e;
}

div.contact-form form textarea {
    padding: 6px;
    height: 183px;
    background-image: none;
    border: 1px solid #acafba;
    border-radius: 3px;
    margin-bottom: 10px;
    resize: none !important;
}

div.contact-form form textarea:focus {
    border-color: #797d87;
    outline: none;
}

div.contact-form form textarea.wpcf7-not-valid {
    border-color: #dc383e;
}

div.contact-form form input[type="submit"] {
    width: 137px;
    height: 51px;
    background: url('img/button.png') no-repeat;
    background-position: top center;
    outline: none;
}

div.contact-form form input[type="submit"]:hover {
    margin-top: -2px;
    margin-bottom: 2px;
}

div.contact-form form input[type="submit"]:active {
    margin-top: 0;
    margin-bottom: 0;
}

div.contact-form span.wpcf7-not-valid-tip,
div.contact-form div.wpcf7-validation-errors {
    color: #dc383e;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-size: 24px;
}

div.contact-form div.wpcf7-validation-errors {
    padding: 0;
    margin: 30px 0;
    border: 0;
}

div.contact-form div.wpcf7-mail-sent-ok {
    padding: 0;
    margin: 30px 0;
    border: 0;
    color: #64ac30;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-size: 24px;
}

div.contact-form-message div.man {
    margin-top: 35px;
    height: 340px;
    width: 281px;
    background: url('img/jigsaw_man.png') center center no-repeat;
}

div.social-links ul {
    padding: 0;
    margin: 0;
    display: block;
    list-style: none;
}

div.social-links ul li {
    display: block;
}

div.social-links ul li a {
    margin: 8px auto;
    display: block;
    height: 80px;
    width: 90px;
    background: url('img/news_contact_social_sprite.png');
    background-position: center -10px;
    background-repeat: no-repeat;
    -webkit-transition:background-position 0.05s ease;
    -moz-transition:background-position 0.05s ease;
    -o-transition:background-position 0.05s ease;
    transition:background-position 0.05s ease;
}

div.social-links ul li a.facebook:hover {
    background-position: center -12px;
}

div.social-links ul li a.twitter {
    background-position: center -110px;
}

div.social-links ul li a.twitter:hover {
    background-position: center -112px;
}

div.social-links ul li a.instagram {
    background-position: center -210px;
}

div.social-links ul li a.instagram:hover {
    background-position: center -212px;
}

div.social-links ul li a.flickr {
    background-position: center -310px;
}

div.social-links ul li a.flickr:hover {
    background-position: center -312px;
}

div.social-links ul li a.email {
    background-position: center -410px;
}

div.social-links ul li a.email:hover {
    background-position: center -412px;
}

img.contact-img.img-responsive {
    margin-left: auto;
    margin-right: auto;
}

div.large-monster {
    margin-top: 20px;
    width: 101px;
    height: 179px;
    background: url('img/monster_one.png') center center no-repeat;
}

div.small-monster {
    margin-top: 80px;
    width: 80px;
    height: 95px;
    background: url('img/monster_two.png') center center no-repeat;
    float: right;
}

/* News page */
div.news-post div.featured-image {
    margin: 0 0 30px 0;
    text-align: center;
}

div.news-post div.featured-image img {
	margin: 0 auto;
	max-width: 640px;
	max-height: 420px;
	height: auto;
	width: auto;
}

div.news-post img.aligncenter {
    margin: 30px auto;
    display: block;
    max-width: 640px;
    height: auto;
}

div.news-post strong.title {
    display: block;
    text-align: center;
}

div.news-post strong.title a {
    color: #161c27;
}

div.news-post strong.title a:hover {
    color: #383e49;
}

div.news-post p a {
    color: #9b9fa9;
}

div.news-post p a:hover {
    color: #797d87;
}

div.news-post div.content p a {
    color: #fe0000;
}

div.news-post div.content p a:hover {
    color: #fe8888;
}

div.news-post span.date {
    margin: 5px 0;
    display: block;
    text-align: center;
    color: #9b9fa9;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-size: 24px;
    font-weight: 400 !important;
}

div.news-post span.divider {
    margin: 0 auto 50px auto;
    display: block;
    width: 201px;
    height: 3px;
    background: url('img/news_divider.png') center center no-repeat;
}

h2.recent-news {
    margin-top: 60px;
    margin-bottom: 60px;
}

div.news-post span.icon {
    margin: 20px auto;
    display: block;
    height: 80px;
    width: 90px;
    background: url('img/news_contact_social_sprite.png');
    background-position: center -10px;
    background-repeat: no-repeat;
}

/* News tweets and instagram posts */
div.news-post.tweet span.icon {
    background-position: center -110px;
}

div.news-post.tweet p,
div.news-post.instagram p {
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-size: 24px;
    line-height: 26px;
    text-align: center;
}

div.news-post.tweet span.date,
div.news-post.instagram span.date {
    margin-bottom: 40px;
}

/* Instagram tweet post */
div.news-post.instagram span.icon {
    background-position: center -210px;
}

div.news-post.instagram div.image {
    margin: 30px 0;
}

div.news-post.instagram div.image img {
    margin: 0 auto;
    display: block;
    height: 420px;
    width: 420px;
}


/* Art page */
ul.art-categories {
    padding: 0;
    margin: -40px 0 30px 0;
    display: block;
    list-style: none;
    text-align: center;
}

ul.art-categories li {
    display: inline;
}

ul.art-categories li a {
    width: 130px;
    height: 80px;
    display: inline-block;
    background: url('img/inside_outside_sprite_active.png') no-repeat;
}

ul.art-categories li a.inside {
    background-position: left top !important;
}

ul.art-categories li a.outside {
    margin-left: 20px;
    background-position: left bottom !important;
}

ul.art-categories li a.active {
    background: url('img/inside_outside_sprite.png') no-repeat;
}

ul.art-categories li a span {
    display: block;
    text-indent: -9999px;
}

div.art {
    min-height: 64px;
}

div.art div.no-photos {
    text-align: center;
    color: #9b9fa9;
    font-family: 'alternate-gothic-no-2-d', arial, verdana, sans-serif;
    font-size: 28px;
    font-weight: 400;
}

/* Image gallery grid */
.grid {
    list-style: none;
    margin: 30px auto;
    padding: 0;
}

.grid li {
    display: block;
    float: left;
    padding: 10px;
    width: 50%;
    opacity: 0;
}

.grid li.three {
	width: 33.3333333%;
}

.grid li.shown,
.no-js .grid li,
.no-cssanimations .grid li {
    opacity: 1;
}

.grid li a {
    background: #eee;
}

.grid li a,
.grid li img {
    outline: none;
    border: none;
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.grid li.animate {
    -webkit-animation: fadeIn 0.65s ease forwards;
    -moz-animation: fadeIn 0.65s ease forwards;
    animation: fadeIn 0.65s ease forwards;
}

@-webkit-keyframes fadeIn {
    to { opacity: 1; }
}

@-moz-keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.grid li.group {
    padding: 0;
    display: block;
}

.grid li.group div {
    padding: 10px;
    width: 50%;
    float: left;
}

div.ajax-loader {
    margin-top: 100px;
    height: 64px;
    background: url('img/loader.gif') center center no-repeat;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 992px) {

    p {
        font-size: 18px;
        line-height: 30px;
    }

    h1, strong.heading-esque {
        font-size: 55px;
        line-height: 55px;
    }

    div.news-post.instagram div.image img {
        width: auto;
        height: auto;
        max-width: 420px;
    }

    .grid {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Mobile devices */
@media (max-width: 991px) {

    p.bold-intro {
        margin-top: 30px;
    }

    h2.mobile-centered {
        text-align: center;
    }

    h2.underline.centered {
        margin-left: auto;
        margin-right: auto;
        width: 180px;
        display: block;
    }

    strong.heading-esque.mobile-padding {
        display: block;
        padding-top: 30px;
    }

    div.header {
        margin-top: 5px;
        height: auto;
        background-image: url('img/tablet_nav_line.png');
        background-position: center 170px;
    }

    div.logo {
        margin-top: 10px;
    }

    div.logo a {
        margin: 0 auto;
    }

    div.header div.social {
        margin: 40px auto 0 auto;
        position: relative;
    }

    ul#menu-primary-menu {
        margin: 0;
        float: none;
        text-align: center;
        display: block;
    }

    ul#menu-primary-menu li {
        margin: 0 20px;
        width: auto;
        float: none;
        display: inline;
    }

    ul#menu-primary-menu li.current-menu-item {
        display: inline;
        background: none;
    }

    ul#menu-primary-menu li.current-menu-item a {
        color: #9b9fa9;
    }

    div.footer {
        margin-top: 0;
    }

    div.footer a.footer-logo {
        margin: 40px auto;
        float: none;
    }

    div.footer p {
        text-align: center;
    }

    div.footer div.contact-link {
        float: none;
    }

    div.footer div.contact-link a {
        margin: 0 auto;
        width: 120px;
    }

    div.footer span.break {
        display: inline-block;
    }

    h2.underline.publications {
        margin-bottom: 40px;
    }
    
    div.news-post div.featured-image img {
    	max-width: 100%;
    	max-height: none;
    	width: auto;
    	height: auto;
    }

    div.news-post img.aligncenter {
        max-width: 100%;
        height: auto;
    }

    div.films-heading {
        margin-top: 40px;
    }

    ul.pubs-list {
        margin-top: 0;
    }

    ul.pubs-list li {
        text-align: center;
    }

    div.exhibs {
        text-align: center;
    }

    div.end-of-page {
        margin-bottom: 30px;
    }

    ul.art-categories {
        margin-top: 0;
    }

    ul.art-categories li a {
        width: 65px;
        height: 40px;
        display: inline-block;
        background: url('img/inside_outside_sprite_active_small.png') no-repeat;
    }

    ul.art-categories li a.active {
        background: url('img/inside_outside_sprite_small.png') no-repeat;
    }

    div.ajax-loader {
        margin-top: 30px;
    }

    .grid {
        margin-top: -30px;
    }

    .grid li {
        opacity: 1;
    }

    .grid li,
    .grid li.three {
        width: 50%;
    }
    
    .grid li.group {
    	float: none;
    	width: 100%;
    }

    .grid li.group div {
        width: 50%;
    }

    div.responsive-image img {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
    }

    div.contact-form form input[type="submit"] {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    div.contact-form-message div.man {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    div.social-links ul {
        margin: 20px auto;
        width: auto;
    }

    div.social-links ul li {
        margin-right: 20px;
        display: inline;
    }

    div.social-links ul li a {
        display: inline-block;
    }

    div.contact-form div.row.no-margin {
        margin-top: 0;
    }

    div.large-monster,
    div.small-monster {
        margin: 20px auto;
        float: none;
    }

    div.connect-section {
        clear: both;
    }
}

/* Medium devices @screen-md-min (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1319px) {

    ul#menu-primary-menu li {
        width: 90px;
    }

    div.about-img {
        margin-bottom: 30px;
    }

    div.about-img img {
        margin-left: auto;
        margin-right: auto;
    }

    div.contact-form form input[type="text"],
    div.contact-form form input[type="email"],
    div.contact-form form textarea {
        background-image: none;
        border: 1px solid #acafba;
        border-radius: 3px;
        margin-bottom: 10px;
    }

    ul.art-categories {
        margin-top: 0;
    }

    div.contact-form div.row.no-margin {
        margin-top: 0;
    }
}

/* Large devices (large desktops, 1320px and up) */
@media (min-width: 1320px) {

    div.about-content p {
        padding-right: 10px;
    }

    div.about-content p a {
        display: inline-block;
    }

    div.contact-form form input[type="text"],
    div.contact-form form input[type="email"] {
        border: 0;
        background: url('img/input.png') no-repeat;
        background-position: top center;
    }

    div.contact-form form input[type="text"]:focus,
    div.contact-form form input[type="email"]:focus {
        background-position: center center;
    }

    div.contact-form form input[type="text"].wpcf7-not-valid,
    div.contact-form form input[type="email"].wpcf7-not-valid {
        background-position: bottom center;
    }

    div.contact-form form textarea {
        border: 0;
        background: url('img/input_mesg.png') no-repeat;
        background-position: top center;
    }

    div.contact-form form textarea:focus {
        background-position: center center;
    }

    div.contact-form form textarea.wpcf7-not-valid {
        background-position: bottom center;
    }

    div.small-monster {
        position: relative;
        -webkit-animation: bounce 1.5s ease-in-out alternate infinite;
        -moz-animation: bounce 1.5s ease-in-out alternate infinite;
        animation: bounce 1.5s ease-in-out alternate infinite;
    }

    div.large-monster {
        position: relative;
        -webkit-animation: glide 30s ease-in-out alternate infinite;
        -moz-animation: glide 30s ease-in-out alternate infinite;
        animation: glide 30s ease-in-out alternate infinite;
    }

    @-webkit-keyframes glide {
        from { left:0px; top:0px; }
        to { left:1100px; top:0px; }
    }

    @-moz-keyframes glide {
        from { left:0px; top:0px; }
        to { left:1100px; top:0px; }
    }

    @keyframes glide {
        from { left:0px; top:0px; }
        to { left:1100px; top:0px; }
    }

    div.wrap {
        position: relative;
        -webkit-animation: bounce 2s ease-in-out alternate infinite;
        -moz-animation: bounce 2s ease-in-out alternate infinite;
        animation: bounce 2s ease-in-out alternate infinite;
    }

    @-webkit-keyframes bounce {
        from { left: 0px;top: 0px; }
        to { left: 0px;top: 30px; }
    }

    @-moz-keyframes bounce {
        from { left: 0px;top: 0px; }
        to { left: 0px;top: 30px; }
    }

    @keyframes bounce {
        from { left: 0px;top: 0px; }
        to { left: 0px;top: 30px; }
    }
}

/* Small-ish devices (portrait tablets and mobiles) */
@media (max-width: 767px) {
    h1, strong.heading-esque {
        font-size: 36px;
        line-height: 36px;
    }

    ul.link-list {
        text-align: center;
    }

    div.social-links ul li {
        margin-left: 5px;
        margin-right: 5px;
    }

    div.social-links ul li a {
        width: 40px;
        height: 40px;
        background: url('img/social_sprite.png') no-repeat;
        background-position: 0 5px;
    }

    div.social-links ul li a.facebook {
        background-position: 5px -2px;
    }

    div.social-links ul li a.facebook:hover {
        background-position: 5px -5px;
    }

    div.social-links ul li a.twitter {
        background-position: 5px -45px;
    }

    div.social-links ul li a.twitter:hover {
        background-position: 5px -48px;
    }

    div.social-links ul li a.instagram {
        background-position: 5px -84px;
    }

    div.social-links ul li a.instagram:hover {
        background-position: 5px -87px;
    }

    div.social-links ul li a.flickr {
        width: 70px;
        background-position: 5px -125px
    }

    div.social-links ul li a.flickr:hover {
        background-position: 5px -127px;
    }

    div.social-links ul li a.email {
        width: 55px;
        background-position: 5px -166px;
    }

    div.social-links ul li a.email:hover {
        background-position: 5px -169px;
    }
}

/* Very small devices (e.g. phones in landscape) */
@media (max-width: 450px) {
    div.header {
        background-image: url('img/mobile_nav_line.png');
        background-position: center top 170px;
    }

    div.logo a {
        width: 100%;
        max-width: 380px;
        background-size: 100% auto;
    }

    ul#menu-primary-menu li {
        margin: 0 8px;
    }

    .grid li,
    .grid li.three {
        width: 100%;
    }
    
    .grid li.group div {
    	width: 100%;
    }

    .row.about_main {
        margin-top: 20px;
    }

    div.films-heading {
        margin-top: 10px;
    }
}

/* Retina image replacement - for mobile and desktop */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    a.button,
    div.contact-form form input[type="submit"] {
        background: url('img/button@2x.png') no-repeat;
        background-size: 137px 51px;
    }

    h2.underline:after {
        background: url('img/underlines_sprite@2x.png');
        background-size: 169px 30px;
    }

    div.header {
        background-image: url('img/nav_line@2x.png');
        background-size: 1300px 12px;
    }

    div.logo a {
        background: url('img/logo@2x.png') center left no-repeat;
        background-size: 100% auto;
    }

    div.header div.social ul li a {
        background: url('img/social_sprite@2x.png') no-repeat;
        background-size: 60px 210px;
    }

    ul.art-categories li a {
        background: url('img/inside_outside_sprite_active.png') no-repeat;
        background-size: 70px 80px;
    }

    ul.art-categories li a.active {
        background: url('img/inside_outside_sprite.png') no-repeat;
        background-size: 70px 80px;
    }

    div.ajax-loader {
        background: url('img/loader@2x.gif') center center no-repeat;
        background-size: 64px 64px;
    }

    div.contact-form-message div.man {
        background: url('img/jigsaw_man@2x.png') center center no-repeat;
        background-size: 281px 340px;
    }

    div.social-links ul li a {
        background: url('img/news_contact_social_sprite@2x.png');
        background-size: 118px 500px;
        background-position: center -10px;
    }

    div.large-monster {
        background: url('img/monster_one@2x.png') center center no-repeat;
        background-size: 101px 179px;
    }

    div.small-monster {
        background: url('img/monster_two@2x.png') center center no-repeat;
        background-size: 80px 95px;
    }

    div.footer {
        background: url('img/footer_line@2x.png') top center no-repeat;
        background-size: 1300px 12px;
    }

    div.footer a.footer-logo {
        background: url('img/footer_logo@2x.png') top center no-repeat;
        background-size: 171px 45px;
    }

    div.footer div.contact-link a {
        background: url('img/social_sprite@2x.png') left bottom no-repeat;
        background-size: 60px 210px;
    }

    div.news-post span.icon {
        background: url('img/news_contact_social_sprite@2x.png');
        background-size: 118px 500px;
    }

    div.end-of-page {
        background: url('img/end@2x.png') center center no-repeat;
        background-size: 57px 43px;
    }
}

@media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    div.social-links ul li a {
        background: url('img/social_sprite@2x.png') left bottom no-repeat;
        background-size: 60px 210px;
    }
}

@media (max-width: 991px) and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    div.header {
        background-image: url('img/tablet_nav_line@2x.png');
        background-size: 380px 11px;
    }
}

@media (max-width: 450px) and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    div.header {
        background-image: url('img/mobile_nav_line@2x.png');
        background-size: 300px 11px;
    }
}