/*
Theme Name:   Foundry Child
Description:  Foundry Child Theme for Scientist.com
Author:       Harrison Okins
Template:     foundry
Version:      1.0.7
Text Domain:  foundry-child
*/

/* Clearfix the nav bar */
.nav-bar:before,
.nav-bar:after {
	display: table;
	content: " ";
}

.nav-bar:after {
	clear: both;
}

nav.transparent .module.widget-handle {
	border-top: none;
}

/* Overflowing Dropdowns */
li.overflowing-edge > ul {
	right: 100%;
	left: auto !important;
}

/* Fix dropdown menu padding on mobile */
body .module-group.right .module.left:first-child {
	padding-right: 16px;
}

/* Sign-in links */
.menu > .sign-in {
  opacity: .75;
  filter: alpha(opacity=75);
}
.menu > .sign-in:hover {
  opacity: 1;
  filter: alpha(opacity=100);
}
.sign-in > a:before {
  font-size: 11px;
  content: "\e62b";
  font-family: 'themify';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  margin-right: 5px;
}

/* Typography */
.feature-block {
	font-weight: bold;
	font-size: 1.4em;
}

.feature-block p,
.feature-block span {
	font-size: inherit;
	font-weight: inherit;
}

.post-title .label {
	position: relative;
	top: -2px;
}

/* Fix feature icons overlapping following text */
.feature-1 i {
	line-height: 1em;
}

/* Events */
table.events-table > tbody > tr > td, .events-table td {
	vertical-align: middle;
}

.events-table .video-links {
	text-align: right;
}

.events-table .video-links a {
	position: relative;
}

.events-table .video-links img {
	width: 71px;
	height: 40px;
}

.events-table .video-links .ti {
	transition: all .2s;
	position: absolute;
	top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 auto;
  text-align: center;
  line-height: 21px;
	color: #fff;
	text-shadow: 0 1px 3px #000;
	font-size: 24px;
}

.events-table .video-links a:hover .ti {
	left: 15px;
}

/* Responsive embeds */
.embed-container {
	margin-bottom: 24px;
}

@media (max-width: 767px) {
	.feature-block {
		font-size: 1.2em;
	}
}

/* YouTube Feed */
body .widget_youtube-channel {
	background: #1c355e;
	color: #fff;
	box-shadow: inset 0 3px 12px 5px rgba(0,0,0,0.25);
	margin: 0;
	padding: 25px;
}

.widget_youtube-channel hr {
	display: none;
}

.widget_youtube-channel h6 {
	color: inherit;
}

.widget_youtube-channel .youtube_channel.responsive {
	width: 102%;
	margin: 0 -1%;
}

.widget_youtube-channel .youtube_channel.responsive .ytc_video_container {
	width: 14.666% !important;
	margin: 0 1%;
}

.youtube_channel .ytc_video_container a {
	opacity: .75;
	box-shadow: 0 1px 6px 3px rgba(0,0,0,.25);
}

.youtube_channel .ytc_video_container a:hover {
	opacity: 1;
}

.widget_youtube-channel .ytc_title {
	font-size: .85em;
	line-height: 1.2em;
	font-weight: bold;
	margin: 10px 0 0;
	color: #fff;
}

.widget_youtube-channel .ytc_link {
	position: absolute;
	top: -37px;
	right: 15px;
	width: auto;
}

.widget_youtube-channel .ytc_link a:after {
	content: "\e628";
	font-family: 'themify';
	font-size: .8em;
	margin-left: 10px;
}

@media (max-width: 991px) {
	.widget_youtube-channel .youtube_channel.responsive .ytc_video_container {
		width: 23% !important;
	}

	.widget_youtube-channel .youtube_channel.responsive .ytc_video_container:nth-child(n+5) {
		display: none;
	}
}

@media (max-width: 767px) {
	.widget_youtube-channel .youtube_channel.responsive .ytc_video_container {
		width: 48% !important;
	}

	.widget_youtube-channel .youtube_channel.responsive .ytc_video_container:nth-child(n+3) {
		display: none;
	}
}

/* Search results */
body.search-results .page-title.bg-secondary {
	color: #fff;
}
body.search-results .page-title.bg-secondary h2 {
	color: inherit;
}

/* Twitter feed */
.widget .twitter-feed .slides li:nth-of-type(n+2) {
	display: none;
}
