/* sitewide, fix the spacing here */
#sidebar form .form-group.form-type-hidden{ display: none; }
#sidebar form #edit-submitted-intro { padding-bottom: 0; }
#sidebar form #edit-footer { margin-top: 12px; }

/* for story pages */
.node-type-story .field-name-field-story-images {
  position: relative;
  float: left;
  width:  100%;
}
.node-type-story .field-name-field-story-images .field-item {
  position: relative;
  float: left;
}
.node-type-story .field-name-field-story-images .field-item:first-of-type { display: none; }
.node-type-story .field-type-taxonomy-term-reference .taxonomy-term h2 a { display: none; }

.page-node-577 #page-heading .field-name-field-custom-heading-content h1.page-header { 
  max-width: 800px; 
}
.page-node-577 .field-name-field-cope-disclaimer {
  padding: 0;
  text-align: left;
  border:  none;
  font-size: unset;
  margin:  0;
}

.view.view-story-pane .views-exposed-form #edit-field-tags-tid-wrapper {
  width: calc(25% - 15px);
  padding:  0.5em 0 0 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-right:  20px;
  margin-bottom:  20px;
}
.view.view-story-pane .views-exposed-form .form-submit {
  margin-top: 34px;
  padding: 8px 40px;
  background: #212d65;
  color: #fdfdfe;
  border-width:  0;
  font-size: 18px;
  padding: 5px 10px;
  text-shadow: none;
}  
.view.view-story-pane .view-content {
  position: relative;
  float: left;
  width: 100%;
}
.view.view-story-pane .view-content .views-row { 
  position: relative;
  float: left;
  width: calc(25% - 15px);
  margin:  0 10px 20px 10px;
}
.view.view-story-pane .view-content .views-row.views-row-first{
  margin-left:  0;
}

.view.view-story-pane .view-content .views-row:nth-of-type(4n){
  margin-right:  0;
}
.view.view-story-pane .view-content .views-row:nth-of-type(4n -3){
  margin-left:  0;
}

.view.view-story-pane .pagination {
  font-size: 18px;
}
.pagination>li>a, .pagination>li>span {
  color:  #428bca;
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover {
  background-color: #428bca;
}


.panel-pane.pane-node-field-custom-heading-content.story-pane-wrapper {
  border-bottom:  1px solid #212d65;
  padding-bottom: 20px;
}
.panel-pane.pane-node-body.story-pane-wrapper {
  border-top:  1px solid #212d65;
  position: relative;
  float: left;
  width:  100%;
  padding-top:  20px;
  margin-top:  10px;
}

@media (max-width: 1200px){
  .view.view-story-pane .views-exposed-form #edit-field-tags-tid-wrapper {
    width: calc(33.33% - 14px);
  }
  .view.view-story-pane .view-content .views-row {
    width: calc(33.33% - 14px);
  }
  
  .view.view-story-pane .view-content .views-row:nth-of-type(4n){
    margin-right:  10px;
  }
  .view.view-story-pane .view-content .views-row:nth-of-type(4n -3) {
    margin-left:  10px;
  }
  .view.view-story-pane .view-content .views-row.views-row-first{
    margin-left:  0;
  }
  .view.view-story-pane .view-content .views-row:nth-of-type(3n){
    margin-right:  0;
  }
  .view.view-story-pane .view-content .views-row:nth-of-type(3n+1){
    margin-left:  0;
  }
}
@media (max-width: 1000px){
  .view.view-story-pane .views-exposed-form #edit-field-tags-tid-wrapper {
    width: calc(50% - 10px);
  }
  .view.view-story-pane .view-content .views-row {
    width: calc(50% - 10px);
  }
  .view.view-story-pane .view-content .views-row:nth-of-type(3n){
    margin-right:  10px;
    margin-left:  0;
  }

  .view.view-story-pane .view-content .views-row:nth-of-type(2n){
    margin-right:  0;
  }
}