/* Style changes for smaller screens and mobile devices */


@media only screen and (max-width: 1024px) {
  
#page {
    width:100%;
     margin: 0 auto;
    box-shadow: none;
}  

#main {
	display: block;
}

#primary {
   display: block;
   float:none;
   clear:both;
   width:100%;
}

#secondary {
   display: block;
   float:none;
   clear:both;
   width: calc(100% - 20px);
   background:none;
   border:none;
   padding:0;
   margin: 20px;
}

#aside-header {
   border-top: 3px dotted #b40022;
   margin-right: 20px;
   margin-bottom: 20px;
}

#sidebar aside{
    float:left;
    padding: 0 10px;
    margin: 0 10px 0 -10px;
    background: transparent;
    /*width: calc((100% - 40px) / 2);*/
    width: calc(100% - 20px);
    /*min-width:240px;*/
}

#sidebar aside > div,
#sidebar aside > h3,
#sidebar aside > a{
    display: block;
    padding: 10px;
    margin: 0;
    margin-left: 0px;
    width: revert;
}

#sidebar aside.widget_sp_image {
   justify-content: center;
   text-align: center;
 } 

.publication-slide, .petition-slide {
   margin-left: auto;
	margin-right: auto;    
width: 100%;
 } 
 
.publication-slide img, .petition-slide img {
   margin:auto !important;  
	display: flex;
	align-content: center;
	justify-content: center;
 } 

.publication-slide-title, .petition-slide-title {
    margin: auto;
    text-align: center;
} 
 
#slider-container {
    max-height: 200px; 
    width:unset; 
    margin:0;
    overflow-y: hidden;
}

#slider-container > .feature-slider {
    width: unset; 
    height: unset;
}

.feature-slide {
    height: unset;
}

aside#secondary #sub-access {
  margin-left: 10px;
}  
}


}

@media only screen and (max-width: 920px) {
  
#access a {
padding: 0 10px;
}  
}

@media only screen and (max-width: 820px) {
  
#access a {
padding: 0 5px;
}  
}

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

html {
   font-size: 120%; 
}

#primary {
	    width: 100%;
}
  
#content {
    padding: 15px;
}

.archivelisting img.wp-post-image {
	width: 100% !important;
	height: auto !important;
}  

#content-header {
    padding: 44px 21px 0 15px;
}
  
}

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

#sidebar {

}

#sidebar aside {
    width: calc(100% - 20px);
    margin-right: 20px;
}

#slider-container {
    height: 150px; 
    width:unset; 
    margin:0;
    overflow-y: hidden;
    padding:0;
}

article.slide .slider-image {
	position: relative;
   z-index:1000;
height:100%;
	width: 100%;
	margin:0;
	float:none;
}

article.slide .slider-image img {
	clear: none;
	width: 100%;
	height: 150px;
	max-height:unset;
	text-align: center;
	display: flex;
	align-content: center;
	justify-content: center;
 object-fit: cover;
 filter: brightness(50%);
 z-index:1000;
}

article.slide .slider-text {
position: relative;
	margin-top: -140px;	
   padding: 0 10px;
z-index:2000;
}

article.slide .slider-text h3 {
	line-height: 1.2;
background: #ffffffaa;
padding: 1px 5px;
}

article.slide .slider-text h4, article.slide .slider-text i {
	line-height: 1.2;
	color:#fff;
	text-shadow: 0 0 8px #333;
}

}
