/**
 * Leader Display Styles
 * 
 * @package Hedredesign
 * @since 1.0.0
 */

/* ==========================================================================
   Hex Container Styles
   ========================================================================== */

.leaders-shortcode .row {
	gap: 20px 10px;
}

.leaders-shortcode .row .col-md-6 {
	width: auto;
	flex-basis: calc(50% - 5px);
}

.hex {
	position: relative;
	border-radius: 12px;
	height: 100%;
	overflow: hidden;
}

.hex .overlay:hover {
	background-color: #00414C;
}

.hex:before {}

.hex:after {}

.hex .vmiddle {
	padding: 20px;
	width: 100%;
	display: flex;
	align-items: center;
}

.valign_mid {
	vertical-align: middle;
}

/* ==========================================================================
   Hex Overlay Styles
   ========================================================================== */

.hex .overlay {
	cursor: pointer;
	display: flex;
	height: 100%;
	border-radius: 8px;
	transition: .3s;
	padding: 3px;
	background: #f2f2f2;
}

.hex .overlay .leaderimage {
	min-width: 150px;
	width: 150px;
	height: 150px;
	overflow: hidden;
	border-radius: 10px;
}

.hex .overlay .leaderimage img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	object-position: center;
}

.hex .overlay a {
	text-decoration: none;
	transition: none;

}

.hex .overlay b {
	font-size: 20px;
	display: block;
	margin-bottom: 2px;
	color: var(--hebTeal);
	font-weight: 600;
	line-height: 120%;
}

.hex .overlay span {
	color: var(--text-secondary);
	font-size: 14px;
	display: block;
	line-height: normal;
}

.hex .overlay a b {
	color: var(--hebTeal);
}

.hex .overlay a span {
	color: var(--text-secondary);
}

/* ==========================================================================
   Leader Modal Styles
   ========================================================================== */

.leader-modal {
	z-index: 1055;
}

.leader-modal.fade {
	transition: opacity 0.3s linear;
}

.leader-modal.fade:not(.show) {
	opacity: 0;
}

.leader-modal.show {
	opacity: 1;
}

.leader-modal .modal-dialog {
	max-width: 840px;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	transition: transform 0.3s ease-out;
}

.leader-modal.fade .modal-dialog {
	transform: translate(0, -50px);
}

.leader-modal.show .modal-dialog {
	transform: translate(0, 0);
}

.leader-modal .modal-content {
	border: none;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	border-radius: 16px;
	overflow: hidden;
}

.leader-modal .modal-header {
	height: 110px;
	padding: 20px;
	position: relative;
	border-bottom: 1px solid #e5e5e5;
	display: block;
	background: url(../images/square.png);
}

.leader-modal .modal-header .btn-close,
.leader-modal .leader-modal-close {
	float: right;
	filter: alpha(opacity=20);
	border: 0;
	background-color: transparent;
}

.leader-modal .modal-header .btn-close:hover,
.leader-modal .leader-modal-close:hover {
	opacity: 1;
	border: 0;
	background-color: transparent;
}

.leader-modal .modal-header .btn-close img,
.leader-modal .leader-modal-close img {
	width: 30px;
	height: 30px;
}

.leader-modal .modal-body {
	padding: 15px 40px 20px;
	background: url(../images/square.png);
}

.leader-modal .modal-body p {
	color: #212121;
	font-size: 16px;
}

.leader-modal p a {
	color: #00414d;
	text-decoration: underline;
	font-weight: normal;
}

/* Modal Backdrop */
.modal-backdrop {
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1050;
}

/* ==========================================================================
   Pop Info Styles
   ========================================================================== */

.leader-modal .popinfo {
	overflow: hidden;
	margin-bottom: 20px;
}

.popinfo {
	/* float: left; */
	margin-top: -70px;
	padding-left: 22px;
	max-width: 575px;
}

.leader-modal .popname {
	font-weight: 600;
	font-size: 32px;
}

.popname {
	color: var(--hebTeal);
	margin-bottom: 20px;
}

.leader-modal .poposition {
	font-size: 20px;
	/* color: #777; */
}

.poposition {
	font-size: 20px;
	/* color: #777; */
}

/* ==========================================================================
   Pop Image Styles
   ========================================================================== */

.popimage {
	background-size: cover !important;
	max-width: 160px;
	float: left;
	margin-top: -87px;
	margin-bottom: 20px;
	border-radius: 12px;
}

.popimage .popimg {
	/* background: url(../images/popimg.png) center left no-repeat; */
	background-size: contain;
	height: 150px;
	width: 150px;
	padding: 38px 0 10px 181px;
}

.hex .overlay:focus,
.hex .overlay:hover {}

.hex .overlay:focus b,
.hex .overlay:focus span,
.hex .overlay:hover b,
.hex .overlay:hover span {
	color: #fff;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Desktop: min-width 992px */
@media (min-width: 992px) {}

/* Tablet: 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
	.hex .vmiddle {
		/* height: 75px; */
	}

	.hex {}

	.hex .overlay {
		/* padding: 20px 20px 20px 120px; */
		/* height: 103px; */
	}

	.hex .overlay b {
		font-size: 18px;
	}

	.hex .overlay span {
		font-size: 14px;
	}

	.poposition {
		margin-bottom: 20px;
	}

	.popinfo {
		/* float: none; */
		/* margin-top: -15px; */
		/* padding-left: 0; */
	}
}

@media (max-width:991px) {
	.leaders-shortcode .row .col-md-6 {
		flex-basis: 100%;
	}
}

/* Tablet Landscape: 534px - 767px */
@media (min-width: 534px) and (max-width: 767px) {
	.hex .overlay {
		/* max-width: 425px; */
	}
}

/* Mobile: max-width 768px */
@media (max-width: 768px) {
	.leader-modal .modal-dialog {
		/* margin: 10px; */
		/* max-width: calc(100% - 20px); */
	}

	.leader-modal .modal-body {
		padding: 15px 20px 20px;
	}

	.leader-modal .popimage {
		/* float: none; */
	}

	.leader-modal .popname {
		/* font-size: 24px; */
		/* margin-bottom: 10px; */
	}

	.leader-modal .poposition {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.leader-modal .popimage {
		float: none;
	}

	.popinfo {
		margin-top: 0;
		padding-left: 0;
		border-bottom: 1px solid #e5e5e5;
		padding-bottom: 15px;
		max-width: none;
	}

	.leader-modal .popname {
		font-size: 26px;
		margin-bottom: 5px;
	}

	.leader-modal .modal-header {
		border: none;
	}

	.leaders-shortcode .row .col-md-6 {
		flex-basis: 100%;
	}

	.hex .overlay .leaderimage {
		min-width: 120px;
		width: 120px;
		height: 120px;
	}

	.hex .overlay b {
		font-size: 16px;
	}

	.hex .vmiddle {
		padding: 12px;
	}

}

/* Mobile: max-width 660px */
@media (max-width: 660px) {
	.popinfo {
		/* float: none; */
		/* margin-top: -15px; */
		/* padding-left: 0; */
	}

	.popname {
		margin-bottom: 0;
	}
}

/* Mobile Small: max-width 533px */
@media (max-width: 533px) {
	.hex {
		/* background-size: 160px !important; */
		/* background-position-x: center !important; */
		/* background-position-y: center !important; */
		/* margin-bottom: 115px; */
		/* position: relative; */
	}



	.hex .overlay a {
		/* position: absolute; */
		/* width: 100%; */
		/* display: block; */
		/* margin-top: 37px; */
	}

	.hex .overlay:focus,
	.hex .overlay:hover {
		/* background: url(../images/trans-hex.png) center left no-repeat; */
		/* background-size: contain; */
		/* background-position-x: center; */
		/* background-position-y: center; */
	}

	.hex .overlay:focus b,
	.hex .overlay:focus span,
	.hex .overlay:hover b,
	.hex .overlay:hover span {
		/* color: #777; */
	}
}