.page-content {
	float: left;
	width: 100%;
}

.team-page .sorter-container {
	position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
}

.team-sorter .team-sorter-search {
	top: 0;
	right: 0;
	width: 280px;
	position: relative;
  height: 30px;
  line-height: 30px;
  float: right;
  padding: 0 10px;
  display: inline-block;
  background-color: #333944;
  border: 2px solid #F39133;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  -webkit-transition: background-color 0.3s cubic-bezier(.25,.8,.25,1), border 0.3s cubic-bezier(.25,.8,.25,1);
  transition: background-color 0.3s cubic-bezier(.25,.8,.25,1), border 0.3s cubic-bezier(.25,.8,.25,1);
	color: white;
}

.search-box-active {
	background-color: #F39133 !important;
	color: #333944 !important;
	border: 2px solid rgba(0,0,0,0.2) !important;
}

.team-sorter .searcher-icon {
	top: 3px !important;
}

.team-page {
	position: relative;
	float: left;
	width: 100%;
}

.team-page-title {
	height: 90px;
	width: 100%;
	float: left;
}

.team-page-title span {
	float: left;
	width: 100%;
}

.team-page p {
	float: left;
}

.team-selected-category {
	margin-top: 30px;
	font-style: italic;
}

.team-content {
	margin-top: 65px;
	float: left;
	width: 100%;
}

.team-content h1 {
	margin-bottom: 50px;
}

.team-desktop-links {
	position: absolute;
	top: 43px;
	right: 0;
	width: 300px;
	height: 30px;
	text-align: left;
	background-color: #333944;
	border: 2px solid #F39133;
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	overflow: hidden;
	z-index: 2;
	max-height: 70vh;
}

.team-desktop-links a, .team-desktop-links-show {
	display: block;
	width: calc(100% - 20px);
	min-height: 30px;
	line-height: 30px;
	float: left;
	padding: 0 10px;
	font-size: 1em;
	text-decoration: none !important;
	font-weight: bold;
}

.team-desktop-links a:nth-child(even) {
	background-color: rgba(41, 45, 53, 0.3);
}

.team-desktop-links a:hover {
	background-color: #F39133;
	color: black;
}

.team-desktop-links-show {
	color: white;
	cursor: pointer;
}

.team-members-container {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-flow: row wrap;
	flex-flow: row wrap;
	position: relative;
}

.team-member {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	-ms-flex-preferred-size: 25%;
	flex-basis: 25%;
	padding-bottom: 50px;
	margin-bottom: 80px;
	position: relative;
}

.team-member:hover .team-member-picture-container {
	border-radius: 5px;
}

.team-member-picture {
	background-size: 100% auto;
	background-color: #333944;
	background-image: url('/img/team/notfound.png');
	width: 160px;
	height: 160px;
	background-repeat: no-repeat;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.team-member-info {
	text-align: center;
	width: 100%;
	height: auto;
	vertical-align: middle;
	max-width: 162px;
	margin: 0 auto;
	margin-top: 20px;
}

.team-member-name {
	font-weight: bold;
	text-transform: uppercase;
	padding-bottom: 10px;
}

.team-member-contact {
	width: 100%;
	max-width: 162px;
	text-align: center;
	position: absolute;
	bottom: 0;
}

.sorteerija {
	float: right;
	margin-top: -30px;
}

.team-content p {
	float: left;
}

@media (max-width: 540px) {
	.team-selected-category {
		display: none;
	}

	.team-page .sorter-container {
		top: 55px;
		width: 100%;
	}

	.team-sorter .team-sorter-search {
		width: calc(100% - 20px);
	}

	.team-desktop-links {
		top: 100px;
		width: 100%;
	}

	.team-content {
		margin-top: 70px;
	}
}
