/* awd utils css */
.embed-container { position: relative; padding-bottom: 56.25%; overflow: hidden; max-width: 100%; height: auto; margin-bottom: 20px; }
.embed-container iframe, .team-grid .embed-container object, .team-grid .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
body .team-grid { display: flex; flex-wrap: wrap; margin: 0 auto; max-width: 1164px; width: 100%; justify-content: center; }
.ctr-hover-box { position: relative; overflow: hidden; border: 1px solid #707070; cursor: pointer; display: block; width: 100%; height: 100%; max-width: 574px; margin-left: auto; margin-right: auto; }
.bio-grid-header { position: absolute; bottom: 0; width: auto; padding: 23px 25px; background: #141444; color: #fff; left: 0; right: 0; }
.bio-grid-header h3 a { color: #fff; }
.bio-grid-header h3 { color: #fff; margin: 0; }
.team-grid .ctr-single-post img { height: 377px !important; width: 100%; object-fit: cover; object-position: center; }
.team-grid .ctr-single-post { flex: 0 0 49.5%; margin-right: 1%; margin-bottom: 20px; width: 100%; }
.team-image.aligncenter img { width: 100%; height: auto; }
.team-image.aligncenter img { height: auto; margin: 0 auto 10px; }
.team-modal-content h3 sup { font-size: 15px; }
.team-grid .ctr-single-post:nth-child(2n) { margin-right: 0; }
.team-modal.fancybox-content { max-width: 768px; width: 100%; padding: 35px 45px; }
.team-modal-content h3, #site-main .ctr-single-post h3 { font-size: 24px; font-weight: 700; color: #393939; line-height: 1.4; margin: 0 0 3px; text-transform: capitalize; }
.team-modal-content h3 span, .team-modal-content h3 em, .team-modal-content h3 i, #site-main .ctr-single-post h3 span { color: #2f9b92; }
.team-modal-header { display: block; text-align: center; margin: 0 auto 20px; font-family: 'Poppins', sans-serif; }
.team-modal-content { line-height: 1.625; font-size: 16px; }
.team-bio p { margin-bottom: 12px; }
.team-modal-content ul { list-style-type: disc; margin: 1.12em 0; margin-left: 30px; font-size: 16px; }
#site-main .bio-grid-header p, .team-modal-header p { margin: 0; font-family: 'Proxima Nova Light', sans-serif; font-size: 18px; font-weight: 100; line-height: 1; }
.team-grid .ctr-single-post img { width: 100%; min-width: 100%; filter: saturate(0); transition: .4s ease-out; }
.ctr-hover-box:hover .bio-grid-header { background: #9A1C1F; transition: .4s ease-out; }
.team-grid .ctr-hover-box:hover img { filter: saturate(1); transition: .4s ease-out; }

/* custom blocks */
.ca-quotes .wrap { background: #d9d9d9; padding: 50px 25px; margin: 0 auto 35px; }
.ca-quotes blockquote { border: 5px solid #52584d; padding: 45px 50px; font-size: 26px; font-family: 'Playfair Display'; text-align: center; position: relative; }
.quote-logo { display: block; padding-top: 10px; }
.quote-logo img { height: auto; max-width: 256px; width: 100%; }

/* gd4 service block */
.awd-template-content.gd4-service h2.gd4-service-title { font-family: 'Poppins', sans-serif; font-size: 36px; font-weight: 700; line-height: 1.2; }
.services_link { font-family: 'Poppins'; font-weight: 500; font-size: 15px; display: flex; justify-content: flex-end; align-items: center; }
.services_link svg { overflow: visible; width: 14px; fill: #0074ff; margin-left: 10px; height: auto; margin: 8px 0 0 10px; }
.gd4-service { margin-bottom: 50px; }
.gd4-service-gallery ul { margin: 35px auto 20px 0; padding: 0; list-style-type: none; display: flex; flex-wrap: wrap; }
.gd4-service-gallery li { flex: 0 0 31.5%; margin-right: 2%; margin-bottom: 2%; }
.gd4-service-gallery li:nth-child(3n) { margin-right: 0; }
.gd4-service-gallery img { height: 200px; object-fit: cover; width: 100%; filter: grayscale(0) drop-shadow(1px 1px 14px rgba(179, 179, 179, .15)); box-shadow: 3px 3px 28px rgba(179, 179, 179, .15); border: 1px solid #eee; }
.gd4-service-gallery a { position: relative; display: block; overflow: inherit; height: 200px; transition: .4s; }
.gd4-service-gallery a:hover, .gd4-service-gallery a:focus { transition: .3s; filter: grayscale(1); }
.gd4-service .wrap { width: 100%; }
.service-anchors { position: relative; top: -180px; }
.logged-in.admin-bar .service-anchors { position: relative; top: -220px; }
.fancybox-caption__body { font-size: 18px; }
.fancybox-button { background: #0074ff; }

/* media */
@media screen and (max-width:1199px) {
    .team-grid .ctr-single-post img { height: 240px !important; }
}
@media screen and (max-width:1024px) {
    .team-grid .ctr-single-post img { height: 270px !important; }
    .team-grid .ctr-single-post { flex: 1 0 45%; margin-right: 2%; }
    .team-grid .ctr-single-post:nth-child(2n) { margin-right: 0; }
    .team-grid .ctr-single-post:nth-child(3n) { margin-right: 2%; }
    .team-modal.fancybox-content { max-width: 90%; }
}
@media screen and (max-width:640px) {
    .team-grid .ctr-single-post, .team-grid .ctr-single-post:nth-child(2n), .team-grid .ctr-single-post:nth-child(3n) { flex: 0 0 100%; margin-right: auto; max-width: 360px; margin: 0 auto 60px; }
    .team-modal-content h3, #site-main .ctr-single-post h3, #site-main .bio-grid-header p { text-align: center; }
    .team-modal.fancybox-content { padding: 40px 20px 35px; }
    .team-bio p, .team-modal-content ul { font-size: 15px; }
}
