:root {
    --cpt-checkmark-color: black;
    --cpt-border-color: #ccc;
    --cpt-box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
    /* Doctor and related post grids*/
    --cpt-all-doctor-per-row: 4;
    --cpt-related-doctor-per-row: 5;
    --cpt-locations-related-doctor-per-row: 3;
    --cpt-all-doctor-per-row-mobile: 150px;
    --cpt-related-posts-per-row: 3;
    /*Doctors per row ROW layout */
    --cpt-filter-col: 5;
    /* Doctor filter COL layout */
    --cpt-doc-archive-cols: 5;
    /* Image as[ect rations */
    --cpt-doctor-aspect: 4 / 5;
    --cpt-rel-posts-aspect: 16 / 9;
    --doctor-hover-color: #222;
    --doctor-hover-bg: #222;
    --doctor-background: #1a1e26;
    --doctor-location-flex-gaps: 4rem;
}

.docs-slider .doc-slide {
    max-width: 200px;
}

.filters-off .doctor-filter-grid {
    height: auto !important;
}

.location-reviews.services-offered-location-section {
    padding-bottom: 50px;
}

.location-reviews .left-arrow-3, .location-reviews .right-arrow-3 {
    display: block;
    justify-content: center;
    align-items: center;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    z-index: 100;
}

.location-reviews .left-arrow-3 {
    left: -20px;
}

.location-reviews .right-arrow-3 {
    right: -20px;
}

.location-reviews .w-slider-mask {
    width: 90%;
    margin: 0 auto;
}

.location-reviews .w-slider-nav {
    position: static;
}

.reviews-slider .slide-nav {
    display: block;
}

.reviews-slider .w-slide {
    width: 50%;
    padding: 0 20px;
    margin-bottom: 20px;
}

.review-slide {
    /*padding-left: 70px;*/
    /*padding-right: 70px;*/

}

.reviews-slider {
    height: auto;
    background: #fff;
}

.location-reviews .locations-holder {
    margin-top: 0;
}

.doctor-content p:last-child {
    margin-bottom: 0;
}

.location-hours:not(.single-location-info .location-hours) {
    display: none;
}

.location-hours p {
    line-height: 1.3;
}

.single-location-doctors {
    margin-top: 3em;
}

.doctor-section {
    flex-direction: column;
    align-items: center;
    padding-top: 5%;
    padding-bottom: 5%;
    display: flex;
}

.doctor-header-wrapper {
    width: 90%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.doctor-header-wrapper > p {
    max-width: 1000px;
    text-align: center;
}

.doctor-header-wrapper > h2 {
    text-align: center;
    justify-content: center;
}

.doctors-section h2 {
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    display: none;
}

.doctors-container {
    margin: 1rem auto 3rem auto;
    max-width: 1000px;
    width: 90%;
}

.doc-slider {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.docs {
    width: 100%;
    min-height: 400px;
    background-color: rgba(221, 221, 221, 0);
}

.doc-slide {
    width: auto;
    min-width: 250px;
    margin-left: 10px;
    margin-right: 10px;
}

.doc-slide-div {
    flex-direction: column;
    display: flex;
    position: absolute;
    top: 0%;
    bottom: 0%;
    left: 0%;
    right: 0%;
}

.doc-photo-div {
    margin-bottom: 10px;
}

.doc-photo-border {
    border: 10px solid var(--main-teal);
    display: block;
    position: absolute;
    top: 0%;
    bottom: 0%;
    left: 0%;
    right: 0%;
}

.lasik-doctor-section {
    flex-direction: column;
    align-items: center;
    padding-top: 10%;
    padding-bottom: 5%;
    display: flex;
}

.lasik-doc-content {
    max-width: 800px;
}

.doc-top-section {
    margin-top: 2%;
    position: relative;
    margin-bottom: 5%;
}

.doc-top-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-top-section-wrap {
    width: 90%;
    background-color: var(--background-blue);
    margin-left: auto;
    margin-right: auto;
    padding: 50px;
    position: relative;
}

.doc-title {
    color: var(--text-black);
    /*font-size: 2.5em;*/
    margin: 0;
    font-weight: 300;
    line-height: 1.2em;
}

.single-locations .doc-title {
    margin-bottom: 0.6em;
}

.inside-doc-div {
    justify-content: space-between;
    display: flex;
    gap: var(--doctor-location-flex-gaps);
}

.doc-title-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.doc-title-button .ui-button {
    min-width: 250px;
    width: calc(35% - var(--doctor-location-flex-gaps));
}

.doc-data-3 {
    width: 100%;
    display: flex;
    gap: var(--doctor-location-flex-gaps);
}

.doc-data-3 > div {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
}

.doc-photo-div-ip {
    width: 20%;
}

.doc-photo-div-ip img {
    width: 100%;
    aspect-ratio: 4/5;
    object-position: top;
    object-fit: cover;
    height: 100%;
}

.doc-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.new-patients-line {
    margin-top: 20px;
    align-items: center;
    display: flex;
    margin-bottom: 10px;
}

.cpt-grid {
    display: grid;
    grid-gap: 1.5em;
    grid-template-columns: repeat(var(--cpt-all-doctor-per-row), 1fr);
    grid-auto-rows: 1fr;
}

.single-doctors .cpt-grid,
.service-page .cpt-grid,
.post-type-archive-doctors .cpt-grid {
    grid-template-columns: repeat(var(--cpt-all-doctor-per-row), 1fr);
}

.single-locations .cpt-grid {
    grid-template-columns: repeat(var(--cpt-locations-related-doctor-per-row), 1fr);
}

.single-locations .related-posts-wrapper .cpt-grid {
    grid-template-columns: repeat(var(--cpt-related-posts-per-row), 1fr);
}

.cpt-related-post {
    width: 100%;
    background: none;
    border: 1px solid var(--cpt-border-color);
    box-shadow: var(--cpt-box-shadow);
    background: var(--gl-button-bg);
}

.cpt-doctor-image-link a:hover,
.cpt-related-post a:hover {
    background: var(--doctor-hover-bg);
    color: var(--doctor-hover-color);
}

.doctor-filter-grid {
    margin-top: 2em;
}

.cpt-doctor-image-link {
    min-width: 200px;
}

.cpt-doctor-image-link a.doctor-headshot-link:hover,
a.location-related-post-link:hover .related-post-title {
    color: var(--gl-button-color-hover);
}

.cpt-doctor-image-link > a.doctor-headshot-link,
.cpt-related-post a.location-related-post-link {
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--gl-button-color);
    padding: 1.5em;
    transition: 100ms;
}

a.location-related-post-link:hover .related-post-title {
    color: #fff !important;
}

.cpt-doctor-image-link .doctor-headshot-link img,
.cpt-related-post .location-related-post-link img {
    width: 100%;
    object-fit: cover;
    height: auto;
    object-position: center;
    display: block;
    margin: 0 auto 20px auto;
    /*border: 1px solid var(--cpt-border-color);*/
}

.cpt-doctor-image-link .doctor-headshot-link img {
    aspect-ratio: var(--cpt-doctor-aspect);
}

.cpt-related-post .location-related-post-link img {
    aspect-ratio: var(--cpt-rel-posts-aspect);
}

.cpt-related-post .location-related-post-link img.no-featured,
.cpt-related-post .location-related-post-link .no-featured img {
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

.doctor-name,
.related-post-title {
    margin-bottom: 9px;
    line-height: 1.3;
    font-size: 1.1em;
    font-weight: 700;
}

.location-phone-list {
    list-style: none;
    padding-left: 0;
    margin: 1em 0;
}

.phone-note {
    font-size: 0.9em;
    margin-top: -0.5em;
    display: block;
    font-style: italic;
}

.related-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1em;
}

.doctor-archive-container {
    background: none;
    margin-top: 1rem;
    text-align: justify;
    min-height: 463px;
}

.flex-wrapper.flex-start {
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.doctor-filter-controls {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cpt-border-color);
}

.search-field-div {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.search-field-div > div {
    width: 33%;
    /*max-width: 250px;*/
    text-align: center;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    background: transparent;
    border-radius: 3px;

}

.search-field-div select,
.search-field-div input {
    width: 90%;
    padding: 10px;
    font-size: 16px;
    border-radius: 30px;
    border: 1px solid #F5F5FA;
    background-color: #F5F5FA;

}

.search-field-div select {
    /*background, create down caret svg*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' aria-hidden='true' focusable='false'%3E%3Cpath d='M1.50002 4L6.00002 8L10.5 4' stroke='currentColor' stroke-width='1' fill='none'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding: 5px 10px;
    appearance: none;
}

.search-field-div div h2 {
    font-family: inherit;
    display: inline-block;
    font-size: 1.5em;
    margin-bottom: 0;
    margin-top: 0;
}

.doc-search-field {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.doctor-filter-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    margin-left: -1%;
    margin-right: -1%;
}

.doctor-filter-grid .cpt-doctor-image-link {
    width: calc((100% / var(--cpt-filter-col)) - 2%);
    margin-bottom: 2%;
    margin-right: 1%;
    margin-left: 1%;
}

.doc-search-field button {
    font-size: 12px;
    padding: 0;
    border-radius: 60px;
    position: absolute;
    right: 32px;
    display: none;
    width: 29px;
}

.dr-clear-btn,
.dr-clear-btn:active,
button.dr-clear-btn:focus {
    display: flex;
    align-items: center;
    /*width: 200px;*/
    font-size: 15px;
    background: var(--gl-button-bg);
    background: none;
    border-radius: 50px;
    outline: none;
    border: none;
    color: var(--gl-button-color);
    padding: 2px 15px;
    /*text-transform: uppercase;*/
    transition: 0.1s;
    font-weight: 300;
}

.dr-clear-btn:hover {
    background: var(--gl-button-bg-hover);
    color: var(--gl-button-color-hover);
}

.dr-clear-btn {
    margin: 10px auto 0 auto;
}

#errorMessage {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    height: auto;
    line-height: 1;
    width: 100%;
}

.doctor-author-card {
    background: #cecece;
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-gap: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1em;
    margin-bottom: 1em;
}

.doctor-author-card__written-wrap {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    align-items: center;
}

.doctor-author-card svg {
    margin-right: 0.5em;
    width: 16px;
    height: 16px;
    padding-bottom: 2px;
}

.doctor-author-card svg g {
    fill: var(--cpt-checkmark-color);
}

.doctor-author-card__label {
    font-weight: 300;
    font-size: 1.1em;
    margin-bottom: 0;
}

.doctor-author-card__title {
    margin-top: 10px;
    margin-bottom: 10px;
}

.doctor-author-card a.ui-button {
    margin: 0;
}

.doctor-author-card .doctor-author-card__excerpt {
    margin-bottom: 10px;
}

.docs-slider {
    width: 100%;
    height: auto;
    margin: auto;
    min-height: auto;
}

.docs-slider .mask-2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 95%;
    margin: auto;
    max-width: 1400px;
}

.doc-slide {
    margin: 0;
}

.doc-photo-border {
    border-color: transparent;
    transition: 0.5s;
}

a.doc-photo-div {
    color: #222;
    text-decoration: none;
    line-height: 1.3;
}

.doc-photo-div:hover .doc-photo-border {
    border-color: var(--main-teal);
}

.doc-image-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.doc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 7 / 8;
}

@media (max-width: 1280px) {

    .doctor-filter-grid .cpt-doctor-image-link {
        width: calc((100% / 4) - 2%);
    }

    .doctor-cols .cpt-doctor-image-link {
        width: calc((100% / 2) - 2%);
    }
}

@media (max-width: 991px) {

    .location-reviews .w-slider-mask {
        width: 100%;
    }

    .location-reviews .left-arrow-3, .location-reviews .right-arrow-3 {
        top: auto;
        bottom: -10px;
        width: 50px;
        height: 40px;
        background: transparent;
    }

    .location-reviews .left-arrow-3 {
        left: 0;
    }

    .location-reviews .right-arrow-3 {
        right: 0;
    }

    .location-reviews .left-arrow-holder, .location-reviews .right-arrow-holder {
        /*width: 20px;*/
        bottom: 0;
        top: auto;
        border: 0;
        /*height: 20px;*/
    }

    .reviews-slider .w-slide {
        width: 100%;
        padding: 0 0px;
        margin-bottom: 20px;
    }

    .doctor-filter-grid .cpt-doctor-image-link {
        width: calc((100% / 3) - 2%);
    }

    .doctor-cols .cpt-doctor-image-link {
        width: calc((100% / 2) - 2%);
    }

    .cpt-grid {
        grid-gap: 1em;
    }

    .single-doctors .cpt-grid,
    .service-page .cpt-grid,
    .single-locations .cpt-grid,
    .single-locations .related-posts-wrapper .cpt-grid {
        grid-template-columns: repeat(auto-fit, minmax(var(--cpt-all-doctor-per-row-mobile), 1fr));
    }

    .doc-top-section-wrap {
        padding-left: 30px;
        padding-right: 30px;
    }

    .inside-doc-div {
        max-height: none;
        flex-direction: column;
    }

    .doc-photo-div-ip {
        width: 100%;
        margin-bottom: 20px;
    }

    .doc-bio-section-3 {
        margin-bottom: 0%;
    }

}

@media (max-width: 767px) {

    :root {
        --doctor-location-flex-gaps: 2rem;
    }

    .doc-data-3 {
        flex-wrap: wrap;
    }

    .doc-data-3 > div {
        flex-basis: 100%;
    }

    h4 {
        font-size: 1.2em;
    }

    .search-field-div > div {
        width: 50%;
    }

    .doctor-filter-grid .cpt-doctor-image-link {
        width: calc((100% / 2) - 2%);
    }

    .cpt-doctor-image-link {
        padding: 0;
    }

    .doctor-filter-grid .cpt-doctor-image-link {
        padding-bottom: 10px
    }

    .cpt-doctor-image-link > a.doctor-headshot-link,
    .cpt-related-post a.location-related-post-link {
        padding: 0.5em;
    }

    .related-post-title,
    .doctor-name {
        font-size: 1em;
    }

    .cpt-location-info .flex-wrapper > div:first-child {
        width: 100%;
        padding-right: 0;
    }

    .cpt-location-info .flex-wrapper > div:nth-child(2) {
        flex: auto;
    }

    .search-field-div fieldset {
        width: 50%;
    }

    .dr-clear-btn {
        margin-top: 1em;
    }

    .doc-title-button .ui-button {
        margin-top: 20px;
        min-width: auto;
        width: 100%;
    }

}

@media (max-width: 479px) {

    .doctor-filter-controls {
        margin-top: 0;
        padding-bottom: 0;
    }

    .doctor-specialties-locations > div {
        width: 100%;
    }

    .search-field-div div h2 {
        margin-top: 10px;
    }

    .location-50-50-div {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .docs-slider {
        min-height: auto;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .docs-slider .doc-slide {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }

    .docs-slider .mask-2 {
        display: block !important;
    }

    .left-arrow-3, .right-arrow-3 {
        display: flex;
    }

    .docs-slider .mask-2 {
        display: block
    }

    .doc-slide {
        width: 100%;
        margin: 0 auto;
    }

    .doc-name {
        margin-bottom: 4rem;
    }

    .home .doc-name {
        margin-bottom: 5rem;
    }

    .cpt-doctor-image-link {
        min-width: auto;
    }

}