/* XS - Small devices (mobiles, 768px and down) */
@media (max-width: 767px) {
    body{
        font-size:15px;
    }
    h1{   
        margin-top:20px;
        margin-bottom:6px;
        font-size:20px;
    }
    #main_container{ margin-top:0; }
    
    #logo_navbar_xs{
        width:72px;
        height:44px;
        background: url(../images/header_logo_sm.png) no-repeat;
    }
    .footer_sitemap {padding-left:20px;}
    #footer_logo{ margin:10px auto; }
    #footer_espa{ margin:15px auto; }
    .article_image_gallery { margin:5px; }
    .article_image_gallery img { width:135px; }
    
    /* carousel image captions */
	
	
	
	/* OLD */		
	/*
    .bx-wrapper .bx-caption {
			position: absolute;
			top:20px;
			left:0;
			background: #FFFFFF;
			background: rgba(255, 255, 255, 0.75);
			width: 42%;
			
			
        top:0;
        left:0;
        width: 100%;
    }
    .bx-wrapper .bx-caption span {
			color: #275296;
			font-family: Arial;
			font-weight: normal;
			text-align: left;
			display: block;
			font-size: 1.75em;
			padding: 20px 25px;
			
			
        font-size: 1em;
        padding: 5px 6px;
        height:30px;
        overflow: hidden;
    }
    */
	
	
	/* NEW */
	.bx-wrapper .bx-caption {
        width: 100%;
        height:30px;
        position: absolute;
        top:5px;
        left:0;
        overflow:hidden;
    }
    .bx-wrapper .bx-caption span {
        font-size: 1em;
        padding: 5px 30px 5px 6px;
        height:25px;
        line-height:19px;
        overflow: hidden;
    }
	
    .bx-wrapper .bx-pager.bx-default-pager a
	{
        float:right;
        width:12px;
        height:12px;
        position: relative;
        top:45px;
        right:0;
    }
	
	.bx-wrapper .bx-controls-auto {
    position: absolute;
    bottom:10px;
    left:10px;
    width: 100%;
	}

	.bx-wrapper .bx-pager
	{
		position: absolute;
		bottom:50px;
		right:10px;
		z-index:1010;
	}
	
	
    .search_container { }
    
    .language_picker_container{
        margin-top:8px;
        margin-bottom:8px;
    }
    .top_right_area_container{
        margin-top:8px;
        margin-bottom:8px;        
    }
    .copyright_container{
        margin-top:15px;
        margin-bottom:15px;
    }
    
    .topstory_article {margin-top:5px;} 
    .topstory_article h1 { height:auto; }
    .chevron_topstory_xs {float:left; margin-top:5px; margin-right:5px;}
}





/* SM - Medium devices (tablets, 768px up to 992px) */
@media (min-width: 768px) and (max-width: 991px) {
    #header_logo_en{
        display:block;
        margin:12px 0 2px 15px;
        width:369px;
        height:90px;
        background: url('../images/header_logo_sm_en.png') no-repeat;
    }
    #header_logo_el{
        display:block;
        margin:12px 0 2px 15px;
        width:369px;
        height:90px;
        background: url('../images/header_logo_sm_el.png') no-repeat;
    }

    #header_carousel { max-height:243px; }
    
    #footer_logo_en, #footer_logo_el{
        margin:5px auto;
        width:150px;
        height:26px;
        background: url(../images/footer_logo_sm.png) no-repeat;
    }


    #footer_espa{
        margin:5px auto;
        width:150px;
        height:70px;
        background: url('../images/footer_espa_sm.jpg') no-repeat;  
    }
    .article_image_gallery { margin:10px; }
    .article_image_gallery img { width:160px; }
    
    /* carousel image captions */

	/* OLD */
	/*
    .bx-wrapper .bx-caption {
		position: absolute;
		top:20px;
		left:0;
		background: #FFFFFF;
		background: rgba(255, 255, 255, 0.75);
		width: 42%;
		
	
        top:10px;
        width:80%;
    }
    .bx-wrapper .bx-caption span {
		color: #275296;
		font-family: Arial;
		font-weight: normal;
		text-align: left;
		display: block;
		font-size: 1.75em;
		padding: 20px 25px;
	
	
        font-size: 1.5em;
        padding: 10px 15px;
    }
	*/
	
	.bx-wrapper .bx-caption {
        top:0;
        left:0;
        width: 100%;
        height:80px;
        position: absolute;
        top:150px;
    }
    .bx-wrapper .bx-caption span {
        font-size: 1em;
        padding: 5px 6px;
        height:65px;
        line-height:19px;
        overflow: hidden;
    }
    .bx-wrapper .bx-pager.bx-default-pager a
	{
        width:12px;
        height:12px;
        position:relative;
        top:22px;
    }
	
	.bx-wrapper .bx-controls-auto {
    position: absolute;
    bottom:10px;
    left:10px;
    width: 100%;
	}

	.bx-wrapper .bx-pager
	{
		position: absolute;
		bottom:45px;
		right:10px;
		z-index:1010;
	}
    
    
    /* change font-size in sm devices */
    .navbar-default .navbar-nav > li > a {
        padding-left:7px;
        padding-right:7px;
        font-size:15px;
    }
    .language_picker_container{ margin-top:64px; position:absolute; right:-5px;}
    .topstory_article{ padding:8px 46px; }

}




/* MD - Desktops (992px up to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    
    #header_carousel { max-height:318px; }
    
    .article_image_gallery { margin:10px; }
    .article_image_gallery img { width:134px; }
    
    #footer_logo_en, #footer_logo_el{
        display:block;
        margin:5px;
        width:200px;
        height:35px;
        background: url('../images/footer_logo_md.png') no-repeat;
    }


    #footer_espa{
        margin:30px 0 10px 0;
        width:200px;
        height:93px;
        background: url('../images/footer_espa_md.jpg') no-repeat;  
    }
    .lastnews_cover_small img { max-width:180px; }
    .frontpage_news_cover_small img { max-width:180px; }
    
    .poll_container{ margin: 20px 0 20px 2px;}
    .poll_container a{color:#F6F7F9;}
	
	
	/* NEW */
	.bx-wrapper .bx-caption {
		position: absolute;
		bottom:20px;
		left:0;
		background: #FFFFFF;
		background: rgba(255, 255, 255, 0.75);
		width: 100%;
		margin:0 20px 0 20px;
	}
	.bx-wrapper .bx-caption span {
		color: #275296;
		font-family: Arial;
		font-weight: normal;
		text-align: left;
		display: block;
		font-size: 1.35em;
		padding: 10px 150px 10px 25px;
	}
	
	.bx-wrapper .bx-controls-auto {
    position: absolute;
    bottom:10px;
    left:10px;
    width: 100%;
	}

	.bx-wrapper .bx-pager
	{
		position: absolute;
		bottom:25px;
		right:10px;
		z-index:1010;
	}
	
}




/* LG - Large desktops (1200px and up) */
@media (min-width: 1200px) {
        
    /* change margin in lg devices */
    .navbar-default .navbar-nav > li > a {
        margin-right:20px;
    }
    
    #aside_container .banner_container img{
        margin-left:30px;
    }
    
    .article_image_gallery { margin:10px; }
    .article_image_gallery img { width:167px; } 
    
    .poll_container{ margin:30px;}
    .poll_container a{color:#F6F7F9;}
	
	/* NEW */
	.bx-wrapper .bx-caption {
		position: absolute;
		bottom:20px;
		left:0;
		background: #FFFFFF;
		background: rgba(255, 255, 255, 0.75);
		width: 100%;
		margin:0 20px 0 20px;
	}
	.bx-wrapper .bx-caption span {
		color: #275296;
		font-family: Arial;
		font-weight: normal;
		text-align: left;
		display: block;
		font-size: 1.35em;
		padding: 10px 150px 10px 25px;
	}
	
	.bx-wrapper .bx-controls-auto {
    position: absolute;
    bottom:10px;
    left:10px;
    width: 100%;
	}

	.bx-wrapper .bx-pager
	{
		position: absolute;
		bottom:25px;
		right:10px;
		z-index:1010;
	}


}