/* Stuff for image shortcode and wp-caption images. */

.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
}

.post .image {
    background: #F5F5F5;
    clear: both;
    display: inline-block;
    padding: 0.5em;
}

.post .image.align-left {
    float: left;
    margin-right: 20px;
}

.post .image.align-right {
    float: right;
    margin-left: 20px;
}

.post .image.align-center {
    left: 50%;
    position: relative;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
}

.post .image .alignright, .post .image .alignleft {
    clear: none;
}

.post .image.ingress {
    max-width: 50%;
}

.post .image img {
    display: block;
    height: auto;
    width: 100%;
}

.post .image > span {
    display: block;
    margin: 5px 0 0;
}

.post .image .imagecredit {
    margin: 4px 0 0;
    font-size: 13px;
    font-style: italic;
}

/* Fix for related articles / featured posts. */

#sidebar a {
    overflow: auto;
}

.featured-posts-list li a {
    overflow: auto;
    padding-left: 0.5em;
}

.widget_bellona-publications li a {
    margin-bottom: 0;
}

/* Fix for search form stuff */

.search-form #s { padding: 1px 4px; }

.search-form p.category, .search-form p.year, .search-form p.month {
    float: left;
    margin-right: 10px;
}

.search-form p.year, .search-form p.month {
}

.search-form p.year input {
    width: 40px;
}

/* Adjustments for the submenu "widget" */

.widget_submenus li:last-child a {
    border-bottom: 1px solid #ddd;
}

.widget_submenus .menu > li:last-child > a,
.widget_submenus .sub-menu > li:last-child > a {
    border-bottom: none;
}

.widget_submenus .menu li:last-child > a + ul {
    border-top: 1px solid #ddd;
}

.widget_submenus .sub-menu {
    border-bottom: 1px solid #ddd;
    padding-left: 25px;
}

.widget_submenus li:last-child .sub-menu { border: none; }

/* Fix for list views on mobile */
@media screen and (max-width: 700px) {
    .post-listing-wrap .hentry .article-in, .home .article-in, .archive .article-in {
        padding-left: 25%;
    }

    .home .post .featured-image, .archive .post .featured-image, .event-date {
        left: -34%;
    }
}
