.template-manage-portlets .portlets-manager {
    padding: 20px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.template-manage-portlets .portletHeader {
    height: 2em;
}

.template-manage-portlets .portletAssignments .managedPortletActions button {
    color: white;
}

/* Box View */
.template-box_view .doormat {}

.template-box_view .doormat img {
    max-width: 100%;
    max-height: none;
    padding: 0;
}

.template-box_view #content .doormat a {
    background-color: #F3F3F3;
    border: .5em solid #fff;
}

.template-box_view #content .doormat h2 {
    line-height: 1em;
    margin: 0 0 .25em 0;
}

.template-box_view #content .doormat-content {
    font-size: 85%;
    padding: .75em;
    position: static;
    text-align: left;
    line-height: 1em;
}

.template-box_view #content .doormat-content p {
    color: #2a2a2a;
    margin-bottom: .5em;
}

.doormat-content .read-more {
    color: inherit !important;
    position: absolute;
    right: 8px;
    bottom: 0;
    text-transform: uppercase;
}

@media screen and (min-width: 500px) {

    .template-box_view .doormat>a,
    .template-box_view .doormat>div {
        padding-top: 89.3333%;
        /*width: 50%;*/
    }
}

@media screen and (min-width: 600px) {

    .template-box_view .doormat>a,
    .template-box_view .doormat>div {
        padding-top: 58.3333%;
        width: 50%;
    }
}

@media screen and (min-width: 900px) {

    .template-box_view .doormat>a,
    .template-box_view .doormat>div {
        padding-top: 48.3333%;
        width: 50%;
    }
}

@media screen and (min-width: 1024px) {

    .template-box_view .doormat>a,
    .template-box_view .doormat>div {
        padding-top: 40.33333%;
        width: 33.33333%;
    }
}

/* Fonts */

.carousel h3.carousel-subtitle,
h4.portlet-subheading {
    font-family: "Trebuchet MS", sans-serif;
    font-weight: 400;
}

#portal-footer a.mainTabContent,
.carousel .carousel-title,
div.pullquote {
    font-family: EgyptienneURWNar-Med, Verdana, sans-serif;
    font-style: normal !important;
    font-weight: normal !important;
}

.carousel .carousel-title,
div.pullquote {
    border-bottom: none;
    color: #E9A82B;
    margin: 0.75em 0 0.25em 0;
    letter-spacing: 0;
}

div.pullquote a {
    color: #E9A82B;
    text-decoration: none !important;
}

.carousel-title:hover {
    color: var(--wta-green);
}

/* Portlets */

dl.portlet {
    background-color: #F3F3F3;
    margin-bottom: 6px;
    border-radius: 8px 8px 0 0;
}

div.portletAssignments div.portletHeader {
    padding: 0.42em 1em;
    line-height: normal;
}

dl.portlet dt a,
#content dl.portlet dt a {
    color: white !important;
    text-decoration: none !important;
}

dl.portlet dt a:hover,
#content dl.portlet dt a:hover {
    color: white !important;
}

dl.portlet dt .more {
    float: right;
    font-size: 0.8em;
    line-height: 1.7;
    margin: 0 0 0 1em;
    text-transform: lowercase;
}

dd.portletFooterLinks {
    color: #E9A82B;
    padding-top: 0 !important;
    text-align: center;
}

dd.portletFooterLinks a {
    white-space: nowrap;
}

dd.portletFooterLinks a {
    text-decoration: none !important;
}

h4.portlet-subheading {
    font-weight: bold !important;
    line-height: 1.2em;
}

h4.portlet-subheading a {
    color: #006191 !important;
}

#content dl.portlet {
    font-size: 1em;
    margin-bottom: 6px !important;
}

#content dl.portlet dt {
    font-weight: normal;
}

#content dl.portlet dd {
    margin: 0;
}

dl.portlet-rightalign dt {
    text-align: right;
}

dl.portlet-rightalign dt .portletTopRight {
    left: auto;
    right: 1em;
}

.portletItemDetails {
    margin: 0;
    padding-top: 0;
}

dl.portlet select {
    max-width: 100%;
}

#portal-column-two>div {
    border-bottom: 1px solid #E9A82B;
    margin-bottom: 6px;
}

#portal-column-two>div:first-child,
#portal-column-two>div:last-child {
    border-bottom: 0 none transparent;
    margin-bottom: 0;
}

#portal-column-two>div:last-child dl.portlet {
    margin-bottom: 0 !important;
}

/* Portlet colors */

dl.portlet.portlet-blue dt,
dl.portlet-blue .portletColor,
dl.portlet-blue-reverse .portletColor {
    background-color: #006191;
}

dl.portlet-blue dt .portletTopRight,
dl.portlet-blue-reverse dt .portletTopRight {
    background-position: center top;
}

dl.portlet.portlet-green dt,
dl.portlet-green .portletColor,
dl.portlet-green-reverse .portletColor {
    background-color: var(--wta-green);
}

dl.portlet-green dt .portletTopRight,
dl.portlet-green-reverse dt .portletTopRight {
    background-position: center -20px;
}

dl.portlet.portlet-orange dt,
dl.portlet-orange .portletColor,
dl.portlet-orange-reverse .portletColor {
    background-color: #E9A82B;
}

dl.portlet-orange dt .portletTopRight,
dl.portlet-orange-reverse dt .portletTopRight {
    background-position: center bottom;
}

dl.portlet.portlet-blue-reverse dt,
dl.portlet.portlet-green-reverse dt,
dl.portlet.portlet-orange-reverse dt {
    background-color: transparent;
    padding-bottom: 0;
}

dl.portlet.portlet-blue-reverse dt,
dl.portlet.portlet-blue-reverse dt a,
dl.portlet.portlet-blue-reverse dt a:hover,
#content dl.portlet.portlet-blue-reverse dt,
#content dl.portlet.portlet-blue-reverse dt a,
#content dl.portlet.portlet-blue-reverse dt a:hover {
    color: #006191 !important;
}

dl.portlet.portlet-green-reverse dt,
dl.portlet.portlet-green-reverse dt a,
dl.portlet.portlet-green-reverse dt a:hover,
#content dl.portlet.portlet-green-reverse dt,
#content dl.portlet.portlet-green-reverse dt a,
#content dl.portlet.portlet-green-reverse dt a:hover {
    color: var(--wta-green) !important;
}

dl.portlet.portlet-orange-reverse dt,
dl.portlet.portlet-orange-reverse dt a,
dl.portlet.portlet-orange-reverse dt a:hover,
#content dl.portlet.portlet-orange-reverse dt,
#content dl.portlet.portlet-orange-reverse dt a,
#content dl.portlet.portlet-orange-reverse dt a:hover {
    color: #E9A82B !important;
}

/**
 * CSS3 Tooltips
 * Created by Martin Ivanov
 * http://wemakesites.net
 */

/* the tooltip will be applied to any element, containing data-title attribute */
[data-title] {
    position: relative;
    padding: 0;
}

[data-title]::before,
[data-title]::after {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    background: #006191;
}

[data-title]:hover::before,
[data-title]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* the tooltip */
[data-title]::after {
    content: attr(data-title);
    min-width: 50px;
    max-width: 140px;
    padding: 7px 9px;
    margin: 38px 0 0 -36px;
    color: #fff;
    cursor: default;
    font-size: 90%;
    line-height: 1.2em;
    text-align: center;
    z-index: 2
}

/* the pointer */
[data-title]::before {
    content: "";
    width: 16px;
    height: 16px;
    margin: 30px 0 0 -9px;

    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: 1;
}

/* Carousel */

.carousel {
    background-color: #F3F3F3;
    margin-bottom: 6px;
}

.carousel .carousel-banners,
.carousel .carousel-banner {
    height: 250px !important;
    width: 100% !important;
}

.carousel .carousel-image {
    float: left;
    margin-right: 3%;
}

.carousel .carousel-image img {
    height: 250px !important;
    width: 370px !important;
}

.carousel .carousel-text {
    background-color: transparent;
    padding: 1.5%;
    position: static;
    width: auto;
}

.carousel .carousel-subtitle {
    color: var(--wta-green);
    font-size: 0.9em;
    font-weight: bold !important;
    margin: 0 0 1em 0;
    text-transform: lowercase;
}

.carousel .carousel-title {
    display: block;
    font-size: 1.6em;
    line-height: 1.05;
    margin: 0 0 11px 0;
}

.carousel .carousel-body {
    font-size: 0.85em;
    line-height: 1.5em;
    margin-bottom: 1em;
}

.carousel .carousel-readmore a {
    font-size: 0.85em;
    text-transform: lowercase;
}

.carousel .carousel-readmore a .arrow {
    color: #E9A82B;
}

.carousel .carousel-pager {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.65);
    bottom: 0;
    left: 0;
    line-height: 8px;
    margin: 0;
    padding: 0.4em 2% 0.5em;
    position: absolute;
    text-align: right;
    width: 96%;
}

.carousel .carousel-pager a {
    background-color: #999999;
    display: inline-block;
    height: 1px;
    line-height: 20px;
    padding: 7px 0 0 0;
    overflow: hidden;
    width: 8px;
    border-radius: 4px;
}

.carousel .carousel-pager a.carousel-pager-item-active {
    background-color: white !important;
}

.tileItem {
    border-bottom: 1px solid #F3F3F3;
    margin: 1em 0 2em;
    padding-bottom: 1em;
}

.tileBody {
    margin-top: 0.5em;
}

table.invisible td,
table.invisible th,
table.plain td,
table.plain th,
table.listing td,
table.listing th {
    padding: 2px;
}

/*  Lists */

ul.caret-list,
#content ul.caret-list,
dl.portlet ul.caret-list {
    list-style-image: url(../images/bullet-caret.png);
    list-style-position: outside;
}

/* Image styles */

img {
    border: 0 !important;
}

#content div.newsImageContainer p.discreet {
    background-color: transparent;
    background-image: none;
    color: #999999;
    font-weight: normal;
    line-height: 17px;
    position: static;
    padding: 0;
}

#content div.newsImageContainer p.discreet,
#content dd.image-caption {
    color: #4A7628;
    font-size: 0.9em;
    line-height: 1.3;
    margin-bottom: 0;
    margin-left: 0;
    margin-top: 5px;
    padding: 0;
}

.image-right {
    margin: 0 0 10px 15px !important;
}

.image-left {
    margin: 0 15px 10px 0 !important;
}

/* TinyMCE styles */

.boldRedText {
    color: #E9A82B;
    font-weight: bold;
}

.boldGreenText {
    color: #4A7628;
    font-weight: bold;
}

.littleGrayText {
    color: #999999;
    font-size: 90%;
}

.littleGreenText {
    color: #4A7628;
    font-size: 90%;
}

.bigGraphLead {
    font-size: 1.25em;
}

.callout {
    color: var(--wta-green);
}

#content .pullquote {
    background-color: #F3F3F3;
    border-left: 4px solid #8AAB37;
    clear: right;
    color: #999999;
    float: right;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 0 !important;
    margin: 0 0 1em 1em;
    padding: 0 1em;
    width: 35%;
}

#content .pullquote a {
    text-decoration: none !important;
}

#content .pullquote span {
    font-weight: normal !important;
}

/* Forms */
a.huge-button {
    border: 0 none transparent;
    display: inline-block;
    font-size: 1.3em;
    margin: 0 0 0 10px;
    padding: 0.15em 0;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
}

.like-text {
    margin-left: 1em;
    position: relative;
    color: #00557B;
}

form input.like-button {
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Social Media Viewlet */
#social-media-viewlet {
    font-size: 0.8em;
    z-index: 15;
}

.social-links {
    height: 32px;
}

.social-link {
    display: block;
    width: 38px;
    float: left;
}

.social-link a {
    display: block;
    height: 32px;
    width: 32px;
}

#icon-fb {
    background-image: url(../images/icon-fb.jpg);
}

#icon-twitter {
    background-image: url(../images/icon-twitter.jpg);
}

#icon-rss {
    background-image: url(../images/icon-rss.jpg);
}

#give-block {
    clear: both;
    margin-top: 2em;
}

#hp-donate-button {
    display: block;
    width: 121px;
    height: 36px;
    background-image: url(../images/donate.jpg);
}

.discussion h2 {
    font-size: 100%;
}

/* Trail news signup page styles */
.section-trail-news-signup #content img.image-right {
    -moz-box-shadow: 0 0 5px 0 black;
    -o-box-shadow: 0 0 5px 0 black;
    -webkit-box-shadow: 0 0 5px black;
    box-shadow: 0 0 5px;
    -moz-transform: rotate(5deg);
    -o-transform: rotate(5deg);
    -webkit-transform: rotate(5deg);
}

/* Action section styles */
.section-action .pullquote {
    width: 50%;
}

/* Work-around for a megaphone layout issue */
.wizard-buttons {
    text-align: left;
}

/* Homepage */
.template-homepage_view #content #plone-document-byline,
.template-homepage_view .documentActions {
    display: none;
}

.template-homepage_view #content-core .portletFeaturedPhoto {
    float: left;
    min-height: 320px;
    width: 48.5%;
}

.template-homepage_view #content dl.portletHomepageContent {
    border: 1px solid #E9A82B;
    clear: both;
    margin-bottom: 0 !important;
}

.template-homepage_view #content .portletHomepageContent div.newsImageContainer {
    float: left;
    margin-left: 0;
    width: 150px;
}

.template-homepage_view #parent-fieldname-text {
    margin-left: 170px;
    margin-top: -5px;
}

.template-homepage_view #parent-fieldname-text h2 {
    margin-top: 0;
}

.template-homepage_view .portletBlog {
    border-bottom: 1px solid #E9A82B;
}

.template-homepage_view .portletBlog .portletItem {
    border-bottom: 6px solid white;
}

.template-homepage_view #homepage-content-wrapper {
    border-top: 1px solid #E9A82B;
    padding-top: 6px;
}

.template-homepage_view h1.hiddenStructure {
    display: none;
}

.template-homepage_view #content-core {
    border-top: 1px solid #E9A82B;
    padding-top: 6px;
}

/* TinyMCE overlaps with the right portlet column in a super-annoying way */
.section-wta-home.template-atct_edit #portal-column-two {
    display: none;
}

.section-wta-home.template-atct_edit #portal-column-content {
    width: 68%;
}


/* Share buttons */

div#commenting.reply {
    display: none;
}



/* Blog view */
.template-blogentry_view button.reply-to-comment-button {
    display: none !important;
}

.template-blog_view #viewlet-below-content-title {
    display: none;
}

.template-blog_view #content-core .tileImage {
    margin-right: 0;
}

.template-blog_view .documentByLine .separator,
.template-blog_view .documentByLine .permalink {
    display: none;
}

/* Blog entry view */

.template-blogentry_view .documentByLine .separator,
.template-blogentry_view .documentByLine .permalink {
    display: none;
}

.template-blogentry_view #content div.newsImageContainer p.discreet,
.template-blog_view #content div.newsImageContainer p.discreet,
.template-blog_view #content div.newsImageContainer {
    width: 250px;
}

.template-blogentry_view #viewlet-below-content fb\3a like,
.template-blogentry_view #viewlet-below-content like,
.template-hike_view #viewlet-below-content fb\3a like,
.template-hike_view #viewlet-below-content like {
    display: none;
}

/* Subscribe button */
#subscribe-button {
    float: right;
    margin-left: 1em;
}

#content #subscribe-button a {
    font-size: 1.15em;
    text-decoration: none;
}

/* 768px version */
@media screen and (max-width: 979px) {
    img {
        height: auto !important;
        max-width: 100%;
    }

    /* Captioning inserts widths in inline style attributes.
       This overides them. :-() */
    #content dl.captioned,
    #content dd.image-caption {
        max-width: 100% !important;
    }

    #map_canvas img,
    .googleMapView img {
        max-width: none;
    }

    .carousel .carousel-banners,
    .carousel .carousel-banner {
        height: 200px !important;
    }

    .carousel .carousel-image img {
        height: 200px !important;
        width: 296px !important;
    }

    .carousel .carousel-text {
        font-size: 0.9em;
    }

    .carousel .carousel-title {
        font-size: 1.2em;
    }

    .portletBlog .blog-post {
        margin-left: 7px;
        width: 120px;
    }

    .portletSocialMediaLinks h3 {
        display: block;
        margin-top: 0;
    }

    #login_form .field label {
        display: block;
        width: auto;
    }

    .portlet-email-capture dd.portletFooter input[type="text"] {
        width: 68%;
    }

    .template-homepage_view #content-core .portletFeaturedPhoto {
        min-height: 0;
    }

    .photo-info {
        border-top: 0 none transparent;
        clear: left;
        float: none;
        width: 100%;
    }

    .portletDonate a.huge-button {
        margin: 0.5em 0 0.25em;
        max-width: 100%;
    }

    .portletDonate br {
        display: none;
    }

    .portletDonate a.more-ways-to-give {
        display: block;
        top: 0;
    }

}

@media screen and (max-width: 767px) {

    .hidden-480 {
        display: none !important;
    }

    .carousel .carousel-banners,
    .carousel .carousel-banner {
        height: 400px !important;
        width: 100% !important;
    }

    .carousel .carousel-image {
        margin: 0 0 0.75em 0;
    }

    .carousel .carousel-image img {
        height: 223px !important;
        width: 100% !important;
    }

    .carousel .carousel-text {
        font-size: 0.9em;
    }

    .carousel .carousel-title {
        font-size: 1.2em;
    }

    .template-hike_view #portal-columns>div {
        clear: left !important;
        margin-left: -100% !important;
        width: 100% !important;
    }

    .template-hike_view .hike-book {
        max-width: 40%;
    }

    .template-homepage_view #parent-fieldname-text {
        margin-left: 0;
    }

    a.huge-button {
        font-size: 1.5em;
    }

    .template-iframe_view #portal-column-content,
    .template-iframe_view #portal-column-one,
    .template-iframe_view #portal-column-two {
        clear: left !important;
        /*margin-left: -100% !important; - breaks p2a advocacy embed */
        width: 100% !important;
    }

    .template-iframe_view #portal-columns {
        background-image: none !important;
    }

}

/* Print CSS */

@media print {
    * {
        box-shadow: none !important;
    }

    div.width-full,
    div.width-1\3a 4,
    div.width-1\3a 2,
    div.width-3\3a 4 {
        margin: 0 !important;
        position: static !important;
        width: auto !important;
    }

    #portal-column-one,
    #portal-column-two,
    #edit-bar-wrapper,
    #portal-breadcrumbs,
    div.sharebuttons {
        display: none !important;
    }

    #portal-logo {
        border: 0 none transparent !important;
        display: block !important;
        margin: 0 !important;
        position: static !important;
    }

    #portal-logo img {
        height: 100px !important;
        width: auto !important;
    }

}

/*trail maintenance styling*/
a#trail-maintained-link {
    display: block;
    margin: 1em 0 !important;
    border: 1px solid #E9A82B !important;
    padding: 5px !important;
    background-color: #F3F3F3 !important;
    font-weight: bold;
    line-height: normal;
    text-decoration: none;
    color: #2A2A2A !important;
    text-align: center;
}

.years-maintained {
    color: darkred !important;
}

a#trail-maintained-link:hover {
    background-color: white !important;
    text-decoration: underline !important;
}

/*
Hide the submit button on popup forms. This is overly broad and should be
removed where there actually is a form in the popup.
*/
.pfg-embedded input[type="submit"] {
    display: none;
}

/*
Disabling search term highlighting at the JS level has gotten harder in P4
Doing it in CSS now.
*/
.highlightedSearchTerm {
    background-color: transparent;
}

/*gift tool specific tweaks*/
/*GT also needs the following:
#portal-logo img { margin-top:20px; }
*/
.n-wrapper {
    margin-top: -63px;
    /*
    also make sure the inline style for this div gets removed:
    style="line-height:28px"
*/
    font-size: 1.15em;
    ;
}

.n-wrapper #globalnav-wrapper a {
    text-decoration: none;
}

.n-wrapper #globalnav-wrapper {
    margin: 0;
}

.n-wrapper #portal-globalnav {
    list-style: none;
    height: 35px;
}

/* google custom search */

#content .gsc-control-cse {
    padding: 0;
}

#content .gsc-control-cse * {
    font-family: "Trebuchet MS", sans-serif;
}

#content .gsc-control-cse .gsc-result-info {
    color: #999999;
    font-size: 85%;
    font-weight: normal;
}

#content .gsc-results .gsc-cursor-box {
    font-size: 100%;
    border-top: 1px solid #999999;
    border-bottom: 1px solid #999999;
    padding: 4px 0;
    margin: 1em 0;
}

#content .gsc-results .gsc-cursor-box .gsc-cursor-page {
    text-decoration: none;
    padding: 0.25em 0.5em;
}

#content .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
    color: #E9A82B;
    background-color: transparent;
    border: none;
    text-shadow: none;
}

#content .gsc-location {
    display: none;
}