/*
Cards Section
--------------------------------------------- */
.cards-section .wp-block-column {
	padding: 10px;
}

.cards-section .wp-block-column > .wp-block-group {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.cards-section .wp-block-column > * {
	height: 100%;
}

/*
Location Grid
--------------------------------------------- */
/*.map-iframe {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* 16:9 Ratio */
/*height: 100%;
overflow: hidden;
border-radius: 0;
}*/

.map-iframe iframe {
	/*position: absolute;
	top: 0;
	left: 0;
	border: 0;*/
	width: 100%;
	height: 100%;
}

.location-grid .map-iframe,
.location-grid .wp-block-image img {
	height: 380px;
}

.location-grid .wp-block-image img {
	object-fit: cover;
}

.location-grid .wp-block-button__link{
	padding: 22px 44px;
}

/*
WP Table - Block
--------------------------------------------- */
#site-container .wp-block-table {
	overflow: hidden;
	border: 1px solid;
}

#site-container .wp-block-table thead {
	border-bottom: none;
	background: var(--wp--preset--color--4);
	color: var(--wp--preset--color--1);
}

#site-container .wp-block-table td,
#site-container .wp-block-table th {
	border: none;
	border-right: 1px solid var(--wp--preset--color--4);
	padding: 12px 30px;
}

#site-container .wp-block-table td:last-child,
#site-container .wp-block-table th:last-child {
	border: none;
}

#site-container .wp-block-table th {
	font-size: var(--wp--preset--font-size--button);
	font-family: var(--wp--preset--font-family--1);
	font-weight: 400;
	vertical-align: bottom;
	text-align: left;
}

#site-container .wp-block-table td {
	font-size: var(--wp--preset--font-size--heading-6);
	vertical-align: top;
}

#site-container .custom-table-treatment-costs th:nth-child(1),
#site-container .custom-table-treatment-costs td:nth-child(1) {
	width: 28%;
}

#site-container .custom-table-treatment-costs th:nth-child(2),
#site-container .custom-table-treatment-costs td:nth-child(2) {
	width: 42%;
}

#site-container .custom-table-treatment-costs th:nth-child(3),
#site-container .custom-table-treatment-costs td:nth-child(3) {
	width: 30%;
}

/*
Doctors team posts
--------------------------------------------- */
.team-posts-row .wp-block-post-template {
	row-gap: 35px;
}

.team-posts-row .wp-block-post {
	margin-block-start: 0;
	position: relative;
	padding: 12px;
    background: #fff;
}

.team-posts-row .post-inner-wrap {
	background: var(--wp--preset--color--1);
	border: 1px solid var(--wp--preset--color--4);
	display: block;
	height: 100%;
	overflow: hidden;
	position: relative;
	padding: var(--wp--preset--spacing--4);
	text-decoration: none;
}

.team-posts-row a.post-inner-wrap {
	cursor: pointer;
}

.team-posts-row .post-image {
	aspect-ratio: 16 / 16.5;
	align-self: start;
	background: var(--wp--preset--color--2);
	overflow: hidden;
	display: flex;
	width: 100%;
}

.team-posts-row .post-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.team-posts-row .post-small-info {
	padding-top: 30px;
}

.team-posts-row .post-title {
	margin-bottom: 10px;
}

.team-posts-row .member-header-info {
    text-align: center;
}

.team-posts-row .member-header-info h2 {
	font-size: var(--wp--preset--font-size--heading-3-large);
	margin-bottom: 7px;
}

.team-posts-row .wp-block-button {
	position: absolute;
	bottom: 35px;
}

/* Dialog Box Styles */
.dialog-box {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 9999;
	display: none;
}

.dialog-box-outer-wrap {
    padding: 12px;
    background: var(--wp--preset--color--1);
	width: calc(100% - 40px);
    margin: 0 auto;
    max-width: 1170px;
}

.dialog-box-wrap {
	background-color: var(--wp--preset--color--1);
    max-height: calc(100vh - 100px);
    padding: var(--wp--preset--spacing--4);
    position: relative;
    overflow-y: auto;
    border: 1px solid var(--wp--preset--color--4);
}

.dialog-close {
    border: none;
    color: transparent;
    cursor: pointer;
    font-size: 0;
    padding: 0;
    line-height: 1;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 25px;
    height: 25px;
    background: url('assets/images/icon-popup-close.png') no-repeat;
}

.dialog-close:hover {
	transform: rotate(360deg);
}

.dialog-box-wrap .position {
	margin-bottom: var(--wp--preset--spacing--3);
}

/* Member popup styling */
.member-popup-inner-wrap {
	display: flex;
	align-items: start;
	word-break: break-word;
}

.member-popup-inner-wrap .member-image {
	flex: 0 0 40%;
	margin-right: var(--wp--preset--spacing--4);
}

.member-popup-inner-wrap .member-info {
	width: 100%;
}

.member-popup-inner-wrap .member-header-info {
	margin-bottom: 40px;
}


/*
Media Queries
--------------------------------------------- */

@media only screen and (max-width: 980px) {

	.hero-section {
		min-height: 300px;
	}

	.logos-section .wp-block-group-is-layout-flex.is-nowrap {
		gap: 30px;	
	}

	.map-iframe iframe {
		height: 400px;
	}

	.location-grid .map-iframe,
	.location-grid .wp-block-image img {
		height: auto;
	}

	.custom-table-treatment-costs .has-border-color {
		padding: 25px !important;
	}

	#site-container .wp-block-table td,
	#site-container .wp-block-table th {
		padding: 12px;
	}
	
	.dialog-close {
		top: 15px;
		right: 15px;
	}

}

@media only screen and (max-width: 780px) {

	.logos-section .wp-block-group-is-layout-flex.is-nowrap {
		flex-direction: column;
	}

	.logos-section .wp-block-group-is-layout-flex.is-nowrap {
		gap: 50px;
	}
	
	.member-popup-inner-wrap {
		flex-direction: column;
	}

	.member-popup-inner-wrap .member-image {
		margin-bottom: 20px;
		margin-right: 0;
	}

}

@media only screen and (max-width: 500px) {

	.map-iframe iframe {
		height: 300px;
	}

}

