.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
}

.doctor {
    text-align: center;
}

.doctor img, .modal__content img {
    /*border: 1px solid #ccc;*/
    width: 100%;
}

.modal__content img {
    border: 1px solid #ccc;
}

.modal__content .wp-block-image {
    max-width: 200px;
}
.modal__content .wp-block-image img {
    border: none;
}

.entry a.cpt-doctor-image-link {
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: 100ms;
    border: none;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
    padding: 0;
    background: #fff;
    color: #000;
    margin-bottom: 0;
}

.cpt-doctor-image-link .doctor-headshot-link img {
    width: 100%;
    object-fit: cover;
    height: auto;
    object-position: center;
    display: block;
    margin: 0 auto 0 auto;
    border: none;
}

.cpt-doctor-image-link .doctor-headshot-link img {
    object-position: top;
}

.cpt-doctor-image-link .doctor-headshot-link img {
    aspect-ratio: 4 / 5;
}

.doctor-name {
    border-top: 1px solid #E2E2E2;
    padding: 5px 2px;
    line-height: 1.3;
    min-height: auto;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
    background: #fff;
}

a:hover .doctor-name {
    background: #005b6e;
    color: #fff;
}

.modal__overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    position: relative;
    background-color: #fff;
    padding: 30px;
    width: 95%;
       max-width: 1200px;
    max-height: 90vh;
    border-radius: 0;
    overflow-y: scroll;
    box-sizing: border-box;
}

.modal__content {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
}

.modal__content > div:first-child {
    width: 30%
}

.modal__content > div:last-child {
    flex: 1;

}

.modal__image {
    max-width: 300px;
}

.modal__content button {
    padding: 5px 1em;
    display: block;
}

.modal__close {
    position: absolute;
    right: 0px;
    top: 0px;
    padding: 14px 20px;
    background: transparent;
    border: 0;
}

.modal__close:hover {
    cursor: pointer;
    background: var(--gl-button-bg-hover);
    color: #fff!important;
}


.modal__close:before {
    content: "\2715";
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
    position: absolute;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}

.modal__container .search-field {
    flex: 1;
}


@media screen and (max-width: 479px) {
    .doctor-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
	
	.modal__content > div:first-child {
    width: 100%;
}
}