/*
Theme Name: UFCW Branded Campaign
Description: An UFCW-branded child theme for UFCW campaign sites 
Version: 1.0
Author: Convoy
Author URI: http://weareconvoy.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ufcw
*/

/*  
TABLE OF CONTENTS
  Structure
  Headers
  Navigation
  Content Styles
  Slideshows
  Form Elements
  Footer
  Homepage
  Media-Specific
  
  
/* ---------- @ Structure -----------*/

#body-wrapper {
	background: url(images/bg_top.jpg) repeat-x;
}
#masthead > .wrapper .ufcw-branded-header-img {
	visibility: hidden;	
	max-width: 100%;
}
#global-header {
	background: #002557;
	color: #fff;
}
#global-header a, #global-header a:visited {
	color: #fff;
	text-decoration: none;
}
#global-header > .wrapper {
	position: relative;
	z-index: 1;	
}
#global-header #masthead-content {
	width: auto;
	z-index: 2;	
}
#global-header #global-logo,
#global-header #searchform,
#access #searchform {
	font-size: 0.875em;
	font-weight: 600;
	color: #fff;
}
#global-header #global-logo {
	float: left;
	margin: 8px 0;
	line-height: 21px;	
}
#global-header #global-logo a {
	display: block;
	padding-left: 114px;
	background: url(images/logo_small.png) left center no-repeat;	
}
#global-header #global-logo a strong {
	font-weight: inherit;
	color: #ffc425;	
}
#home #sidebar {
	background: #edf2f8 url(../ufcw/images/bg_highlight.jpg);
}
#home #sidebar:before {
	background: url(../ufcw/images/corner_left_down.png) no-repeat;
}


/* ---------- @ Headers -----------*/

#masthead #logo {
	background: url(images/bg_logo.png) left bottom no-repeat;
	background-size: auto 100%;
	min-height: 70px;
	padding: 0;
	margin: 0;
	width: 90%;
	max-width: 100%;
	left: 20px;
	bottom: 28px;
}
#masthead #logo a, #logo a:visited {
	text-indent: 0;
	margin: 0;
	padding: 0 0 0 100px;
	width: 88%;
	left: 0;
	bottom: 0;
	font: 700 46px/1em "proxima-nova", "Proxima Nova", "HelveticaNeue", "Helvetica Neue", Helvetica, sans-serif;
	background: none !important;	
}
#masthead #logo img {
	display: none;	
}

/* ---------- @ Navigation -----------*/
#masthead .ufcw_language_list {
	position: absolute;
	bottom: 20px;
	right: 2px;
	padding-right: 0;
}


/* ---------- @ Content Styles -----------*/

/* Sidebar and Widgets */

#home #sidebar .widget {
	border-top: 10px solid #004990;
	padding: 20px;
	margin-bottom: 0;	
}
#home #sidebar .widget-order-1 {
	border-top: none;
	background: url(../ufcw/images/bg_widget_active.jpg);	
}
#home #sidebar .widget-content {
	background: none;
	padding: 0;
	margin: 0;	
}

/* Slideshows */
.eps-slideshow-caption-text {
	display: block;
	margin-bottom: 1.25em;	
}
.eps-slideshow-caption-button {
	padding-left: 0;
}
div.eps-slideshow-caption {
	bottom: auto;
	top: 0;
}
.eps-460x270 div.eps-slideshow-caption,
.eps-700x270 div.eps-slideshow-caption {
	height: 270px !important;
	width: 220px !important;
	bottom: auto;
	top: 0;
}
.eps-460x270 div.eps-slideshow-caption-container,
.eps-700x270 div.eps-slideshow-caption-container {
	padding: 20px 20px 0 20px !important
}
#interior #eps-slideshow-selectors,
#home #eps-slideshow-selectors {
	left: auto !important;
	right: 10px !important;
	bottom: 30px !important;	
}
div.eps-slideshow-slide {
	background-position: left bottom;
}
#home div.eps-slideshow-slide {
	background: #ffc425 url(images/bg_slide_caption.png) left bottom no-repeat;
}
body.page-id-7 div.eps-slideshow-caption,
body.page-id-7 div.eps-slideshow-caption-container {
	visibility: visible;
}


/* ---------- @ Form Elements -----------*/

#access #searchform, #masthead-content #searchform {
	width: auto;
	margin-top: 5px;	
}
#access #searchsubmit, #masthead-content #searchsubmit {
	bottom: 6px;
	top: auto;	
}
#access #searchform label, #masthead-content #searchform label {
	padding-right: .5em;	
}
#masthead-content #s {
	padding: 6px 15px 4px 8px;	
}

/* ---------- @ Homepage -----------*/

#home #feature {
	 margin-bottom: 20px;		
}
#ufcw-social-stay-connected {
	background: #002557;
	color: #fff;
	position: relative;
	z-index: 1;
	width: 104.255319%;	
}
#home-content-block #ufcw-social-stay-connected {
	width: 105.714286%;
}
#ufcw-social-stay-connected:before {
	content:"";
	position: absolute;
	bottom: -20px;
	right: 0;
	width:20px;
	height:20px;
	background: url(../ufcw/images/corner_right_down.png) right top no-repeat;
	z-index: 3;	
}
#ufcw-social-stay-connected .stay-connected-hdr {
	float: right;
	width: 75.5102041%;
	padding: 12px 0;
	background: #edf2f8 url(../ufcw/images/bg_widget_active.jpg);	
	font: 600 0.875em/1em "proxima-nova-condensed", "proxima-nova", "Proxima Nova", "HelveticaNeue", "Helvetica Neue", Helvetica, sans-serif;
	color: #004990;
	position: relative;	
}
#ufcw-social-stay-connected #home-content-block .stay-connected-hdr {
	width: 65.7142857%;
}
#ufcw-social-stay-connected .stay-connected-hdr span {
	padding-left: 10px;	
}
#ufcw-social-stay-connected .stay-connected-hdr:before {
	content:"";
	position: absolute;
	top: 0;
	left: -10px;
	width:10px;
	height: 100%;
	background: url(images/arrow_stay-connected.png) no-repeat;	
	background-size: 10px 100%;
	z-index: 2;
}
#ufcw-social-stay-connected .social-icons {
	padding: 12px 20px 0;
	float: left;
	width: 16%;	
}
#ufcw-social-stay-connected #home-content-block .social-icons {
	width: 25%;
}
#intro {
	background: url(images/bg_intro.png) no-repeat;
	color: #004990;
}
#home .eps-slideshow-caption-container .slide-button {
	color: #fff !important;
	background: url(../ufcw/images/bg_button_dark.png) right center no-repeat;
	background-color: transparent !important;
}
#home div.eps-slideshow-container, #home div.eps-slideshow-content, #home div.eps-slideshow, #home div.eps-slideshow-slide {
	width: 940px !important;
	height: 290px !important; 
}
#home-content-block div.eps-slideshow-container, #home-content-block div.eps-slideshow-content, #home-content-block div.eps-slideshow, #home-content-block div.eps-slideshow-slide {
	width: 700px !important; 
}
.eps-700x270 div.eps-slideshow-caption,
.eps-460x270 div.eps-slideshow-caption,
#home .eps-700x270 div.eps-slideshow-caption,
#home .eps-460x270 div.eps-slideshow-caption {
	width: 240px !important;
}
#home .eps-slideshow-caption-text {
	color: #004990;
}

/* ---------- @ Media-Specific -----------*/

@media (max-device-width: 1024px), only screen and (min-device-width:1024px) and (max-width: 1024px) {
	/* All Child Themes */
	#wrapper {
		width: 100%;	
	}
	#home-content-wrapper {
		padding: 0;	
	}
	#masthead,
	#access,
	#home-content-wrapper.has-sidebar {
		width: auto;
		margin: 0;	
	}
	#home-content-wrapper.has-sidebar {
		position: static;
		left: 0;	
		padding: 0 0 0 280px;
	}
	#home .sidebar-block {
		float: left;	
	}
	#home #home-content-block {
		width: 100%;
		margin-right: 0;	
	}
	#home #sidebar {
		width: 260px;
		margin-left: -280px;
	}
	#sidebar-alt .three-cols > .col-table-row > .col {
		width: 31%;	
	}
	#home #home-content-block #sidebar-alt {
		width: 100%;	
		padding: 0 !important;
		margin: 0 !important;
		float: none;
		position: static !important;
	}
	#home #home-content-block #content,
	#home #home-content-block #sidebar-alt.narrow {
		padding: 0 !important;
		margin: 0 !important;
		float: none;
		width: auto;
		position: static;	
	}
	#intro {
		padding-right: 0;
		padding-left: 8.57142857%;
		background-size: 7% auto;
		min-height: 3.45549738em;		
	}
	#ufcw-social-stay-connected,
	#home-content-block #ufcw-social-stay-connected {
		width: 100% !important;
	}
	#home #sidebar:before,
	#ufcw-social-stay-connected:before {
		display: none;	
	}
	#home-content-block #ufcw-social-stay-connected .stay-connected-hdr {
		width: auto;
		padding-right: 20px;	
	}
	#home-content-block #ufcw-social-stay-connected .social-icons {
		width: auto;
	}
	#main div.eps-slideshow-container, #main div.eps-slideshow-content, #main div.eps-slideshow, #main div.eps-slideshow-slide {
		width: 100% !important;
		height: 100% !important;
	}
	#home div.eps-slideshow-slide .eps-slideshow-caption-desc .eps-slideshow-caption-text {
		display: block;
	}
	
	/* Branded */
	#global-header #global-logo a {
		text-indent: -999em !important;
		min-height: 21px;	
	}
	#global-header #masthead-content {
		bottom: auto;	
	}
	.eps-400x290 div.eps-slideshow-caption,
	.eps-460x270 div.eps-slideshow-caption,
	.eps-700x270 div.eps-slideshow-caption,
	#home .eps-460x270 div.eps-slideshow-caption,
	#home .eps-700x270 div.eps-slideshow-caption {
		height: auto !important;
	}
	.eps-460x270 div.eps-slideshow-caption,
	#home .eps-460x270 div.eps-slideshow-caption {
		width: 37.1428571% !important;
	}
	.eps-700x270 div.eps-slideshow-caption,
	#home .eps-700x270 div.eps-slideshow-caption {
		width: 25.5319149% !important;
	}
	.eps-460x270 .loading-eps-slideshow,
	.eps-460x270 div.eps-slideshow-slide img,
	#home .eps-460x270 .loading-eps-slideshow,
	#home .eps-460x270 div.eps-slideshow-slide img {
		width: 65.7142857% !important;
	}
	#home .eps-700x270 .loading-eps-slideshow,
	#home .eps-700x270 div.eps-slideshow-slide img {
		width: 74.4680851% !important;
	}
}
@media only screen and (max-width: 800px) {
	#home #sidebar-alt {
		position: static;
		width: 100%;	
	}
	#home #sidebar-alt > .col-table {
		display: block;
	}
	#home #home-content-block #sidebar-alt > .col-table {
		width: 100%;
	}
	#home #home-content-block #sidebar-alt .three-cols > .col-table-row > .col,
	#home #home-content-block #sidebar-alt .two-cols > .col-table-row > .col {
		float: none;
		width: auto;
		margin: 10px 0;	
	}
	#interior div#eps-slideshow-nav, #interior #eps-slideshow-selectors {
		bottom: 35px !important;
		left: auto !important;
		right: 5px !important;
		width: auto !important;
	}
}
@media only screen and (max-width: 767px) {
	#masthead,
	#access {
		width: 100%;
		margin: 0			
	}
	#masthead > .wrapper {
		height: auto !important;
		background-size: cover;
		max-width: none;	
	}
	#masthead > .wrapper .ufcw-branded-header-img {
		max-width: 100%;
		height: auto;
	}
}
@media only screen and (min-device-width : 320px) and (max-device-width : 480px), only screen and (min-device-width:1024px) and (max-width: 600px) {
	#masthead #logo {
		min-height: 0;
		max-height: 71px;
		padding: 0;
		bottom: 10%;
		position: absolute;
		height: 80%;
		width: 90%;
		left: 2%;
		background-size: contain;
	}
	#masthead #logo a, #logo a:visited {
		padding-left: 20%;
		font: 700 1.875em/1em "proxima-nova", "Proxima Nova", "HelveticaNeue", "Helvetica Neue", Helvetica, sans-serif;
	}
	#home-content-wrapper.has-sidebar {
		padding: 0;
	}
	#home #sidebar,
	#home #sidebar-alt.narrow,
	#home #home-content-block #sidebar-alt.narrow {
		padding: 0 !important;
		margin: 1em 0 !important;
		float: none;
		width: auto;	
	}
	#ufcw-social-stay-connected .stay-connected-hdr {
		width: auto;
		padding-right: 20px;	
	}
	#ufcw-social-stay-connected .social-icons {
		width: auto;
	}
	.eps-slideshow-caption-text,
	#home .eps-slideshow-caption-text {
		font-size: 10px !important;
	}
	#masthead .ufcw_language_list {
		display: none;	
	}
	.eps-slideshow-caption-container .slide-button,
	#home .eps-slideshow-caption-container .slide-button {
		font-size: 1.3em;
	}
	div.eps-slideshow-slide {
		background: #ffc425 url(images/bg_slide_caption_mobile.png) right bottom no-repeat;
	}
	#wrapper .eps-700x270 .loading-eps-slideshow,
	#wrapper .eps-700x270 div.eps-slideshow-slide img {
		width: 100% !important;
	}
	#interior #eps-slideshow-selectors {
		bottom: 10% !important;
		top: auto !important;
	}
	#wrapper .eps-700x270 div.eps-slideshow-caption {
		width: 100% !important;
		top: auto !important;
		bottom: 50px;
		height: 20% !important;	
	}
	.eps-700x270 div.eps-slideshow-container, .eps-700x270 div.eps-slideshow-content, .eps-700x270 div.eps-slideshow, .eps-700x270 div.eps-slideshow-slide {
		height: 100%;
		padding-bottom: 10%;
	}
	#home-content-block .eps-700x270 div.eps-slideshow-container, #home-content-block .eps-700x270 div.eps-slideshow-content, #home-content-block .eps-700x270 div.eps-slideshow, #home-content-block .eps-700x270 div.eps-slideshow-slide {
		height: 290px;
		padding-bottom: 0;
	}
}
@media only screen and (max-width: 479px) {
	#home #wrapper .loading-eps-slideshow,
	#home #wrapper div.eps-slideshow-slide img {
		width: 100% !important;
	}
	#home #wrapper div.eps-slideshow-caption {
		width: 100% !important;
		top: auto !important;
		bottom: 30px;
		height: 20% !important;	
	}
	#home #eps-slideshow-selectors {
		bottom: auto !important;
		top: 60% !important;
	}
	#home #main .eps-700x270 div.eps-slideshow-container, #home #main .eps-700x270 div.eps-slideshow-content, #home #main .eps-700x270 div.eps-slideshow, #home #main .eps-700x270 div.eps-slideshow-slide,
	#home #main .eps-460x270 div.eps-slideshow-container, #home #main .eps-460x270 div.eps-slideshow-content, #home #main .eps-460x270 div.eps-slideshow, #home #main .eps-460x270 div.eps-slideshow-slide {
		height: 100% !important;
	}
	.eps-400x290 div.eps-slideshow-container, .eps-400x290 div.eps-slideshow-content, .eps-400x290 div.eps-slideshow, .eps-400x290 div.eps-slideshow-slide,
	.eps-700x270 div.eps-slideshow-container, .eps-700x270 div.eps-slideshow-content, .eps-700x270 div.eps-slideshow, .eps-700x270 div.eps-slideshow-slide,
	#home-content-block .eps-700x270 div.eps-slideshow-container, #home-content-block .eps-700x270 div.eps-slideshow-content, #home-content-block .eps-700x270 div.eps-slideshow, #home-content-block .eps-700x270 div.eps-slideshow-slide,
	#home #main .eps-460x270 div.eps-slideshow-container, #home #main .eps-460x270 div.eps-slideshow-content, #home #main .eps-460x270 div.eps-slideshow, #home #main .eps-460x270 div.eps-slideshow-slide {
		padding-bottom: 15%;
	}
}
@media only screen and (min-device-width : 320px) and (max-device-width : 480px), only screen and (max-width: 479px) {
	#home #wrapper div.eps-slideshow-caption {
		bottom: 1%;
		height: 40% !important;	
	}
	#home #wrapper .eps-700x270 div.eps-slideshow-caption {
		bottom: 20px !important;
	}
	#home #wrapper #main .eps-700x270 div.eps-slideshow-container, #home #wrapper #main .eps-700x270 div.eps-slideshow-content, #home #wrapper #main .eps-700x270 div.eps-slideshow, #home #wrapper #main .eps-700x270 div.eps-slideshow-slide,
	#home #wrapper #main .eps-460x270 div.eps-slideshow-container, #home #wrapper #main .eps-460x270 div.eps-slideshow-content, #home #wrapper #main .eps-460x270 div.eps-slideshow, #home #wrapper #main .eps-460x270 div.eps-slideshow-slide {
		height: 100% !important;
		padding-bottom: 20%;
	}
}
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation: portrait), only screen and (max-width: 479px) {
	#home #masthead #logo a, #home #logo a:visited {
		font: 700 1.275em/1em "proxima-nova", "Proxima Nova", "HelveticaNeue", "Helvetica Neue", Helvetica, sans-serif;
	}
}
@media only screen and (max-width: 320px) {
	#home .eps-slideshow-caption-text {
		display: none !important;
	}
	#home #wrapper .eps-700x270 div.eps-slideshow-caption {
		bottom: 10px !important;
	}
}