/*
Theme Name: USAID Stories Code

Description: Wordpress Theme For USAID Stories Code.


*/



/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}
.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before, .clear:after, .entry-content:before, .entry-content:after, .comment-content:before, .comment-content:after, .site-header:before, .site-header:after, .site-content:before, .site-content:after, .site-footer:before, .site-footer:after {
    content: "";
    display: table;
}
.clear:after, .entry-content:after, .comment-content:after, .site-header:after, .site-content:after, .site-footer:after {
    clear: both;
}
/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
    margin: 0 0 1.5em;
}
/* Make sure select elements fit in widgets. */
.widget select {
    max-width: 100%;
}
/* Search widget. */
.widget_search .search-submit {
    display: none;
}
/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
    display: block;
}
.hentry {
    margin: 0 0 1.5em;
}
.byline, .updated:not(.published) {
    display: none;
}
.single .byline, .group-blog .byline {
    display: inline;
}
.page-content, .entry-content, .entry-summary {
    margin: 1.5em 0 0;
}
.page-links {
    clear: both;
    margin: 0 0 1.5em;
}
/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title, .archive .format-aside .entry-title {
    display: none;
}
/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
    word-wrap: break-word;
}
.bypostauthor {
    display: block;
}
/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */ .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
    display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
    display: block;
}
/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley, .entry-content .wp-smiley, .comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}
/* Make sure embeds and iframes fit their containers. */
embed, iframe, object {
    max-width: 100%;
}
/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 0 auto;
}
.wp-caption-text {
    text-align: center;
}
.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}
/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 1.5em;
}
.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}
.gallery-columns-2 .gallery-item {
    max-width: 50%;
}
.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
    max-width: 25%;
}
.gallery-columns-5 .gallery-item {
    max-width: 20%;
}
.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}
.gallery-caption {
    display: block;
}
/*==================================================
[Updated CSS]
===================================================*/
.about--content .error-page {
    text-align: center;
}
.about--content .error-page h1 {
    color: #2e2e2e;
    font-size: 3em;
    /*font-weight:*/
    text-transform: uppercase;
    margin-bottom: 30px;
}
.about--content .error-page .back_btn {
    text-transform: uppercase;
    color: #2e2e2e;
    text-decoration: none;
    display: inline-block;
    padding: 6px 20px;
    font-size: 16px;
    background: #FFF;
    border: #2e2e2e 1px solid;
}
.about--content .error-page .back_btn:hover {
    color: #FFF;
    background: #2e2e2e;
}
/*---------search------------*/
.search_info {
    height: 100%;
    overflow: hidden;
    color: #c2113b;
    display: block;
    float: left;
    padding-top: 2.6em;
    text-transform: uppercase;
}
.search_info .section_search {
    float: left;
    margin-right: 100px;
    border-bottom: #727272 1px solid;
    overflow: hidden;
    padding-bottom: 8px;
}
.section_search input[type="text"] {
    background-color: #fff;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    font-size: 18px;
    margin-bottom: 0;
    padding: 0.8em 0 0 0.1em;
    width: 400px;
    float: left;
    color: #727272;
    outline: none;
}
.section_search input[type="text"]:focus {
    border: none;
    box-shadow: none;
    outline: none;
}
.section_search input[type="submit"] {
    background-image: url(/wp-content/themes/usaid-stories-code/images/MagnifyingGlass.svg);
    background-color: transparent;
    background-position: 0 0;
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    float: left;
    border: none;
    text-indent: -9999px;
    margin-top: 18px;
    overflow: hidden;
    padding: 0;
}
.section_search input[type="submit"]:hover, .section_search input[type="submit"]:active, .section_search input[type="submit"]:focus,  .search_count {
    float: left;
    text-transform: uppercase;
    font-size: 22px;
    padding-top: 14px;
    color: #262626;
}
.search_count h4 {
    font-size: .75em;
}
.pushy a.privacy {
    font-size: .95em;
}
.search_info .section_search_focus {
    float: left;
    margin-right: 100px;
    border-bottom: red 1px solid;
    overflow: hidden;
    padding-bottom: 8px;
}
form.menu-subscribe {
    text-align: left!IMPORTANT;
}
button.menu-subscribe--button {
    margin-left: 12px;
}
.alt-508 {
    text-indent: -99999;
    display: none;
    width: 1px;
    height: 1px;
}
#selectionSharerPopover-inner {
    position: relative;
    overflow: hidden;
    -webkit-border-radius: 5px;
    border-radius: 15px;
    border: 1px solid;
    background-color: #a9a9aa;
    background-repeat: repeat-x;
    background-image: none;
    border-color: none;
    box-shadow: none;
}
#selectionSharerPopover:after {
    background: #a9a9aa;
    box-shadow: 0 0 2px #a9a9aa;
}
#selectionSharerPopover .selectionSharerPopover-arrow {
    display: block;
    width: 20px;
    height: 20px;
    -webkit-transform: rotate(45deg) scale(0.5);
    transform: rotate(45deg) scale(0.5);
    background-color: #a9a9aa;
    border: 2px solid #a9a9aa;
    box-sizing: content-box;
}
.selectionSharer a.linkedin {
    display: none;
}
/*---------video gallery------------*/
.containerbox {
    width: 100%;
}
.videobox ul {
    list-style: outside none none;
    margin: 0;
    overflow: hidden;
    padding: 0 5px 30px;
    font-size: 0; text-align: center;
}
.videobox ul li {
    float: left;
    margin: 0 0 30px;
    padding: 0 5px;
    width: 33.33%;
    display: inline-block; 
    float: none; 
    text-align: left; 
    vertical-align: top;
}
.videobox ul li img {
    width: 100%;
    vertical-align: top;
}
.videobox ul li span a{
    color: #000;
    display: inline-block;
    font-size: 18px;
    line-height: 20px;
    padding-top:15px;
}
.videobox ul li span em {
    padding-left: 10px;
    font-size: 14px;
    color: #000;
    font-style: normal;
}
.videobox ul li a.read-more {
    font-size: 14px;
    display: block;
    color: #c2113a;
    font-weight:700;
    position:relative;
    margin-bottom:-21px;
}
.videobox ul li a.read-more:hover {
    text-decoration:underline;
    }
    
.videobox ul li a .video-overlay {
    position:absolute;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%); 
    top:0;
    left:0;
    width:100%;
    height:100%;
    }
    
a.video-box {
    position:relative;
    }
.videobox ul li img.play-icon {
    bottom: 10px;
    margin: 0;
    position: absolute;
    right: 10px;
    width: auto;
    z-index:1;
    }
    
.menu-btn {
    z-index:7999 !important;
    }
    
.pagination {
    text-align:center;
    }

.pagination * {
  color: #000000;
  display: inline-block;
  font-size: 30px;
}

.pagination a{
    padding:0 20px;
    }
    
.pagination a:hover {
    color:#c4c4c4;
    }    
.pagination a:active {
    color:black;
}

.pagination input[type="text"] {
    border-radius: 0;
    border:0;
    border-bottom:1px solid #000;
    box-shadow: none;
    padding: 0;
    text-align: center;
    width: 20px;
}

.pagination input[type="text"]:focus {
    border-bottom:1px solid #c2113a;
    color:#c2113a;
    }
    
/**Video Page Social Share**/
    
.page-id-2107 .stories--share-icons {
    margin:0;
    }
    
.page-id-2107 .fancybox-title-float-wrap .child {
  background: none;
  margin: 0;
  padding: 0;
}

.page-id-2107 .fancybox-title-float-wrap {
  left: -80px;
  margin: 0;
  right: auto;
  top: 0;
}

.page-id-3544 .stories--share-icons {
    margin:0;
    }
    
.page-id-3544 .fancybox-title-float-wrap .child {
  background: none;
  margin: 0;
  padding: 0;
}

.page-id-3544 .fancybox-title-float-wrap {
  left: -80px;
  margin: 0;
  right: auto;
  top: 0;
}

/* Responsivity */


@media all and (max-width: 667px) {
header {
    height: auto;
}
.search_info {
    width: 100%;
    padding: 1em 10px 0;
    height: 140%;
}
.search_info .section_search {
    float: none;
    margin: 0;
    width: 100%;
}
.section_search input[type="text"] {
    width: 88%;
}
.search_count {
    float: none;
    text-align: center;
}
.videobox ul li {
    float: none;
    padding-bottom:20px;
}

.videobox ul li {
    width: 49%;
    float: none;
    display: inline-block;
    padding-bottom:20px;
}
.videobox ul li span {
    text-align: left;
    font-size: 14px;
}
.videobox ul li em {
    text-align: left;
    font-size: 14px;
}
.videobox ul li a {
    text-align: left;
    font-size: 12px;
}
.containerbox {
    padding-top:30px;
    }
}
.video-box + span { font-size: 18px; }

@media all and (max-width: 480px) {
.videobox ul li {
    width: 100%;
}
}
