/* Fixes for the header padding based on screen height, but only if the screen width is iPad portrait or larger */
@media screen and (min-height: 768px) and (min-width: 768px) {
	.header-has-video.header-has-footer .wrap {
		margin-top: -80px;
	}
}
@media handheld, only screen and (max-height: 800px) and (min-width: 768px) {
	.page-hero-content {
		padding: 75px 0 58px;
		padding: 8vh 0 7vh;
	}
}
@media handheld, only screen and (max-height: 700px) and (min-width: 768px) {
	.page-hero-content {
		padding: 50px 0 33px;
		padding: 5vh 0;
	}
}
@media handheld, only screen and (max-height: 600px) and (min-width: 768px) {
	.page-hero-content {
		padding: 30px 0 20px;
		padding: 3vh 0;
	}
	.header-hero .page-hero-button {
		width: 80px;
		height: 80px;
		font-size: 49px;
		line-height: 80px;
		margin-bottom: 16px; 
	}
	.survey-arrow {
		top: 45%;
		left: 26%;
		width: 16%;
	}
}
@media handheld, only screen and (max-height: 520px) and (min-width: 768px) {
	.page-hero-content {
		padding: 20px 0 10px;
		padding: 2vh 0 1vh;
	}
	.survey-arrow {
		left: 28%;
		width: 13%;
	}
}
/* General device width styles */
@media handheld, only screen and (max-width: 1240px) {
	.wrap {
		width: 96%;
	}
	#nav-site .cross-river-rail-logo {
		width: 160px;
		margin: 18px 0 0 0;
		padding-right: 15px;
	}
	.main-nav #nav-site ul li {
		padding: 17px 10px 10px;
	}
	.main-nav #nav-site ul li:first-child {
    	margin-left: 10px;
	}
	.main-nav #nav-site ul li a {
		font-size: 14px;
	}


}
@media handheld, only screen and (max-width: 1100px) {
	ul#tools li {
		margin-right: 15px;
	}
	.search-wrapper input {
		width: 100px;
	}
	.search-wrapper input.submit {
		padding: 5px 10px;
	}
	
	.main-nav #nav-site .menu-main-menu-container {
		margin-left: 177px;
	}
	.main-nav #nav-site ul {
		padding-left: 8px;
		margin-left: 0;
	}
	.main-nav #nav-site ul li {
		padding-right: 10px;
	}
	.main-nav #nav-site ul li#menu-item-20 {
		display: none;
	}
	.survey-arrow {
		top: 50%;
		left: 20%;
		width: 20%;
	}
}
@media handheld, only screen and (max-width: 980px) {
	.survey-arrow {
		left: 14%;
		width: 25%;
	}
	.two-cols-images-text .images,
	.two-cols-images-text .text {
		width: 100%;
	}
	.two-cols-images-text .images img {
		width: 23%;
		float: left;
		margin: 0 1% 2% 1%;
		max-width: 245px;
	}
	.two-cols-images-text .text {
		padding: 0;
		margin: 30px 0 0 0;
	}
	.posts-list .post {
		width: 49%;
		margin-right: 2%;
	}
	.posts-list .post:nth-child(3n+1),
	.five-per-row .post:nth-child(5n+1) {
		clear: none
	}
	.posts-list .post:nth-child(2n+1) {
		clear: left
	}
	.posts-list .post:nth-child(3n+3) {
		margin-right: 2%;
	}
	.five-per-row .post:nth-child(5n+5) {
		margin-right: 0.5%;
	}
	.posts-list .post:nth-child(2n+2) {
		margin-right: 0;
	}
}
@media handheld, only screen and (max-width: 960px) {
	label.menu-toggle {
		display: inline-block !important;
		font-size: 1em;
	}
	.main-nav #nav-site .menu-2017-main-menu-container {
		margin: 0;
		width: 100%;
	}
	.menu-2017-main-menu-container {
		max-height: 0;
		overflow: hidden;
		clear: left;
	}
	#menu-toggle:checked ~ .menu-2017-main-menu-container {
		max-height: 3000px;
	}
	#menu-toggle:checked ~ .menu-toggle .fa:before {
		content: "\f00d";
	}
	#menu-toggle:checked ~ .menu-toggle span {
		display: none;
	}
	#menu-toggle:checked ~ .menu-toggle:after {
		content: " Close";
	}
	.main-nav #nav-site ul {
		padding-left: 0;
	}
	.main-nav #nav-site ul li {
		padding: 0 10px 10px;
		margin: 5px 0;
	}
	.main-nav #nav-site ul li:first-child {
		padding-left: 0;
		margin-left: 0;
	}
	.main-nav #nav-site ul li.menu-item-233,
	.main-nav #nav-site ul li.menu-item-234 {
		display: inline-block;
	}
	.top-nav {
		clear: left;
		float: none;
		margin-left: 0;
		position: relative;
		overflow: visible;
	}
	.top-nav #tools {
		overflow: hidden;
		display: block;
		width: 100%;
		max-height: 0;
	}
	#search-toggle:checked ~ .top-nav #tools {
		max-height: 100px;
	}
	.top-nav ul#tools li.last-child {
		width: 100%;
		display: block;
	}
	.search-wrapper input {
		width: 83%;
		width: calc( 100% - 110px );
		font-size: 16px;
		height: 30px;
		padding: 5px;
		line-height: 17px;
	}
	.search-wrapper input.submit {
		width: 15%;
		width: calc( 100px );
		padding: 5px;
		float: right;
	}
	.top-nav ul#tools li.search-toggle {
		position: absolute;
		top: -50px;
		right: 0;
	}
	.top-nav ul#tools li.search-toggle a {
		font-size: 1.25em;
	}
}
@media handheld, only screen and (max-width: 900px) {
	.wrap {
		width: 94%;
	}
	.top-nav ul#tools li {
		margin-right: 7px;
	}
	.top-nav ul#tools li.last-child {
		margin-right: 0;
		padding-left: 0;
	}
	.top-nav ul#tools li a {
		font-size: 13px;
	}
	.search-wrapper input {
		width: 120px;
		font-size: 13px;
	}
	.main-nav #nav-site ul li.menu-item-233 ,
	.main-nav #nav-site ul li.menu-item-234 {
		display: none;
	}
	.main-nav #nav-site ul li a {
		font-size: 14px;
	}
	.social-content-repo-list li {
		width: 46.5%;
	}
	.home-flow .columns {
		margin: -4vw auto;
	}
	.station-panels {
		flex-direction: column-reverse;
	}
	.station-panel {
		border-right: 0 none;
		border-bottom: 1px solid #FFF
	}
	.station-panel-image img {
		width: 100%;
		object-fit: cover;
	}
	.station-panel-header {
		padding-bottom: 50px;
	}
	.station-panel-footer {
		padding-top: 50px;
	}
}
@media handheld, only screen and (max-width: 767px) {
	.mobile-only {
		display: initial !important;
	}
	.desktop-only {
		display: none !important;
	}
	
	.force-padding-30 {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}
	.force-padding-40 {
		padding-top: 25px !important;
		padding-bottom: 25px !important;
	}
	.force-padding-50 {
		padding-top: 30px !important;
		padding-bottom: 30px !important;
	}
	.force-padding-100 {
		padding-top: 50px !important;
		padding-bottom: 50px !important;
	}
	
	.pre-header .wrap {
		width: 96%;
	}
	
	.main-nav,
	.fixed-nav .main-nav {
		position: relative;
		top: auto;
	}
	
	.header-video-player {
		display: none !important;
		width: 1px;
		height: 1px;
		left: -9999px;
		visibility: hidden;
		opacity: 0;
		overflow: hidden;
	}
	.header-video-poster {
		display: block !important;
	}
	
	.page-hero-content {
		padding: 30px 0 20px;
		padding: 3vh 0;
	}
	.header-hero .page-hero-button {
		width: 80px;
		height: 80px;
		font-size: 49px;
		line-height: 80px;
		margin-bottom: 16px; 
	}
	.survey-arrow {
		top: 45%;
	}
	.home-flow .columns {
		display: block;
	}
	.rail-circle-column {
		width: 100%;
		max-width: 420px;
		margin: 0 auto 20px;
		float: none;
	}
	.rail-info-column {
		width: 100%;
		margin: 0 0 40px;
		float: none;
	}
	.rail-info-icon {
		display: none;
	}
	
	.home-seq {
		padding: 0 0 20px
	}
	.seq-container .columns {
		display: block;
	}
	.seq-map {
		width: 100%;
		max-width: 420px;
		margin: 0 auto;
		float: none;
	}
	.seq-info {
		width: 100%;
		margin: -3px 0 40px;
		float: none;
		border-left: 0 none;
		padding-left: 0;
		padding-top: 20px;
		border-top: 2px solid #FFF;
	}
	.seq-info-panel.active, .seq-line-side.active {
		display: none;
	}
	.seq-info-panel.active, .seq-line-bottom.active {
		display: block;
	}
}
@media handheld, only screen and (max-width: 680px) {
	
	.message-banner a {
		text-align: left;
		align-items: center;
		display: flex;
		justify-content: center;
	}
	.message-banner a span {
		
	}
	.message-banner .btn {
		white-space: nowrap;
	}
	
	#nav-site .cross-river-rail-logo {
		
	}
	.column-one,
	.column-two {
		width: 100%;
		padding: 0px 0;
	}
	.content .two-col-text-block h2 {
		font-size: 30px;
		line-height: 35px;
	}
	.two-col-text-block {
		padding: 40px 0;
	}
	.two-col-text-block .blockquote,
	.two-col-text-block .blockquote p {
		font-size: 18px;
		line-height: 25px;
		margin: 0;
	}
	.two-col-text-block .blockquote p {
		margin: 0 0 20px 0;
	}
	.two-cols-images-text {
		padding: 40px 0;
	}
	.three-col-image-text .column {
		width: 100%;
		float: none;
	}
	.fullwidth-image {
		padding-bottom: 60%;
	}
	h3 {
		font-size: 28px;
		line-height: 34px;
	}
	p {
		font-size: 15px;
		line-height: 22px;
	}
	.page-id-1779 .header-hero .page-hero-subtitle {
		font-size: 1em;
		line-height: 1.4;
		max-width: 90%;
		margin: 10px auto;
	}
	.title_info h2 {
		font-size: 18px;
		line-height: 1.4;
	}
	.cta_button_hld h3 {
		font-size: 18px;
		line-height: 1.2;
	}
	.home-flow .columns {
		margin: -1vw auto;
	}
	body .gform_wrapper .gform_body {
		width: 100%;
	}
	.two-cols-images-text .images img {
		width: 48%;
		max-width: none;
	}
	.stylised-map-desktop {
		display: none;
	}
	.stylised-map-mobile {
		display: block;
	}
	.hotspot {
		width: 40px;
		height: 40px;		
		width: calc(100vw * 0.075);
		height: calc(100vw * 0.075);
	}
	/* .hotspot-boggo {
		left: 49.4%;
		top: 83.8%;
	}
	.hotspot-gabba {
		left: 56.7%;
		top: 70.7%;
	}
	.hotspot-albert {
		left: 41.9%;
		top: 53.2%;
	}
	.hotspot-roma {
		left: 14.4%;
		top: 42.6%;
	}
	.hotspot-exhibition {
		left: 56.5%;
		top: 21.9%;
	} */
	.station-info {
		padding: 40px 0;
	}
	.show-support {
		padding: 60px 0;
	}
	.show-support .support-title {
		text-align: left;
		font-size: 3em;
		margin: 0 0 1em;
	}
	
	/* List with buttons */

	.list-with-buttons {
		list-style: none;
		padding: 0;
		margin: 0;
	}
	.list-with-buttons-item {
		display: flex;
		flex-direction: column;
	}
	.list-with-buttons-item > * {
		text-align: center;
	}
	.list-with-buttons-btn {
		order: 9;
		margin-top: 10px;
	}
	
	/* Jobs form */
	
	#field_7_1, #field_7_2, #field_7_3 {
		float: none;
		width: 100%;
		margin-right: 0%;
		clear: both;
	}
	
	.pre-footer .wrap {
		padding: 60px 0;
	}
}

@media handheld, only screen and (max-width: 600px) {
	
	.btn-lg {
		font-size: 1.2em;
		padding: 12px 15px;
	}
	
	
	
	#nav-site .cross-river-rail-logo {
		width: 120px;
		padding-right: 10px;
	}
	.header-search {
		width: 200px;
	}
	.search-wrapper input {
		width: calc(100% - 35px);
	}
	.search-wrapper input.submit {
		width: 25%;
	}
	.menu-toggle {
		font-size: 1em;
		padding: 15px 10px;
	}
	.main-nav #nav-site ul li {
		display: block;
		margin: 0;
		padding: 0;
		border-top: 1px solid #1d5271;
		float: none;
		height: auto;
	}
	.main-nav #nav-site ul li a {
		padding: 10px;
		display: block;
	}
	.header-hero {
		padding: 30px 0;
		padding: 3vh 0;
	}
	#header .header-hero h2:first-child {
		font-size: 2.4em;
	}
	.header-footer {
		padding: 25px 10px;
	}
	.header-footer h2 {
		font-size: 1.4em !important;
		margin-bottom: 0.5em !important;
	}
	.header-hero p {
		font-size: 1.4em;
	}
	.page-intro {
		padding: 40px 0;
	}
	.sticky-social-panel {
		top: 37%;
	}
	.sticky-social-panel h4 {
		font-size: 80%;
	}
	.sticky-social .social-icon {
	    width: 30px;
	    height: 30px;
	    line-height: 27px;
	    font-size: 14px;
	}
	.feedback-form-container .gform_wrapper #gform_page_2_3 .ginput-user-name {
		width: 100%;
		float: none;
	}
	.feedback-form-container .gform_wrapper #gform_page_2_3 .ginput-user-postcode {
		width: 27.5%;
		margin-left: 0 !important;
	}
	.feedback-form-container .gform_wrapper #gform_page_2_3 .ginput-user-email {
		width: 70%;
	}
	.posts-list .post {
		width: 100%;
		margin-right: 0 !important;
		clear: none !important;
	}
	
	/* Featured Team Member */
	.post-featured-team-member {
		float: none;
		width: 100%;
		margin: 0 0 20px;
		text-align: center;
	}
}
@media handheld, only screen and (max-width: 480px) {
	#nav-site .site-title {
		float: none;
		display: block;
	}
	#nav-site .cross-river-rail-logo {
		width: 160px;
		padding-right: 0;
		border-right: 0;
		margin: 10px auto 0;
	}
	
	.survey-arrow {
    	top: 44%;
    	left: 4%;
		width: 30%;
	}
	.social-filter-label, .social-filter-label:link {
		font-size: 1.5em;
		width: 20px;
		height: 20px;
		line-height: 20px;
		margin: 0 2px;
		padding: 10px;
	}
	.social-content-repo-list li {
		width: 100%;
		margin: 0 0 1em;
		float: none;
	}
}
@media handheld, only screen and (max-width: 400px) {
	
	.message-banner {
		font-size: 12px !important;
	}
	.btn-lg {
		font-size: 1.1em;
		padding: 8px 13px;
	}
	
	.header-footer .btn-lg {
		font-size: 1em;
		padding: 8px 10px;	
	}
	.queensland-government-logo {
		max-width: 250px;
	}
	.search-toggle {
		margin-top: 15px;
	}
	.menu-toggle {
		padding: 15px 10px;
	}
	body #nav-site .btn {
		padding: 8px;
		font-size: 80%;
		
	}
}
@media screen and (orientation:portrait) {
	.home #header {
		background-image: url('https://www.crossriverrail.qld.gov.au/wp-content/uploads/2016/03/crr-blue-bg.jpg') !important;
	}
	.home .header-hero {
		padding: 0 !important
	}
	.home .header-video-wrapper {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		height: auto;
		position: relative;
		left: auto;
		top: auto;
	}
	
	.home .header-has-video.header-has-footer .wrap {
		height: auto;
		padding: 0;
	}
	.home .header-footer {
		position: relative;
		bottom: auto;
		left: auto;
	}
}

@media all and (-ms-high-contrast:none) {
	.home-flow-divider, .rail-circle svg {
		display: none !important; 
	}
	.home-flow .columns {
		margin: 0 auto !important;
	}
	.rail-circle-inner {
		position: relative !important;
	}
	.home-seq {
		padding-top: 60px !important;
	}
	.seq-map-svg { 
		height: 867px !important
	}
}