/*
Theme Name: Glacial Theme
Author: Glacial Multimedia
Author URI: https://glacial.com
Description: Your custom created WordPress theme from Glacial Multimedia.
Version: 3.2.4
Text Domain: glacialtheme

GitHub Theme URI: https://github.com/Glacial-Web/glacial-theme
 */

:root {
    --gl-inner-pad-top: 4rem;
    --gl-inner-pad-bottom: 4rem;

    --gl-button-color: #fff;
    --gl-button-bg: #000;
    --gl-button-color-hover: #000;
    --gl-button-bg-hover: #aaa;
    --gl-max-width: 1350px;
}

.screen-readers {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    word-break: normal !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Skip Links */
.glacial-skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    -webkit-transition: 0s;
    transition: 0s;
    text-decoration: none;
}

.glacial-skip-link:focus {
    padding: 1em 2em !important;
    top: 20px;
    font-size: 1.2em;
    left: 20px;
    z-index: 99999;
    background: #333;
    color: #fff;
    border: 1px solid #ccc;
}

/* Full width blocks */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
}

.standard-inner-wrapper, .glacial-footer {
    max-width: var(--gl-max-width, 1350px);
    width: 90%;
    margin: 0 auto;
}

.standard-inner-wrapper {
    padding-top: var(--gl-inner-pad-top);
    padding-bottom: var(--gl-inner-pad-bottom);
}

/* Related Pages bottom */
.related-pages-bottom {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    flex-wrap: wrap;
}

.related-pages-bottom h2 {
    width: 100%;
}

.entry .related-pages-bottom h3 {
    margin: 0;
}

.entry .related-pages-bottom ul {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    height: 100%;
    -webkit-box-align: center;
    align-items: center;
}

.related-pages-bottom ul li {
    margin-right: 1em;
}

/* Pillar Link Buttons*/

.pillar-link-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.5em;
    grid-auto-rows: 1fr;
}

.pillar-link-grid a.ui-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: auto;
    width: 100%;
    height: 300px;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-color: rgba(255, 255, 255, 0.8);
    border-width: 2px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: 10px;
}

.pillar-link-grid a.ui-button span {
    width: 100%;
    padding: 10px;
    color: #000;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Blog containers */

.outer-flex-wrapper {
    gap: 4rem;
}

.main-content {
    flex: 1;
}

aside {
    background: #fff;
    flex-basis: 25%;
    border-left: 1px solid #cecece;
    padding-left: 15px;
}

h2 a {
    text-decoration: none !important;
}

.related-topics-div ul {
    padding-left: 0;
}

.related-topics-div li {
    list-style: none;
}

.related-topics-div li a {
    text-decoration: none;
}

.related-pages-bottom li:first-of-type {
    margin-left: 0;
}

/* Format Content */
.entry h2, .entry h3, .entry h4, .entry p, .entry ul, .entry ol, .entry blockquote, .attachment-post-thumbnail, article h2, article h3, article h4, article p, article ul, article ol, article hr, article blockquote, .wp-block-group, .wp-block-image, .wp-block-media-text {
    margin-bottom: 30px;
}

.entry p, .entry li {
    line-height: 180%;
}

.entry hr {
    margin: 50px auto;
}

blockquote {
    color: var(--gl-button-bg);
    line-height: 1.5em;
    font-weight: 400;
    font-style: italic;
}

cite {
    color: #757575;
    font-weight: 400;
    font-style: normal;
}

.wp-caption-text {
    margin-top: 30px;
    font-style: italic;
    text-align: center;
}

img, .entry img {
    height: auto
}

a {
    -webkit-transition: all 100ms ease;
    -o-transition: all 100ms ease;
    transition: all 100ms ease;
}

.entry a {
    color: #437AB2;
    text-decoration: underline;
}

.entry a:hover {
    color: #174677;
}

.size-medium-large img {
    width: 100%;
    max-width: 650px;
}

/* Button Code */
a.ui-button, a.wp-block-button__link, .entry a.moretag {
    color: var(--gl-button-color);
    font-size: 1em;
    margin: 0 20px 30px 0;
    border-radius: 0;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.6em 1.2em;
    text-align: center;
    text-decoration: none;
    background: var(--gl-button-bg);
}

a.ui-button:hover, a.wp-block-button__link:hover, .entry a.moretag:hover {
    color: var(--gl-button-color-hover);
    background: var(--gl-button-bg-hover);
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.15);
}

.search-submit {
    -webkit-appearance: none;
    padding: 0 15px;
    border: none;
    cursor: pointer;
    background: var(--gl-button-bg);
    color: var(--gl-button-color);
}

.search-submit:hover {
    color: var(--gl-button-color-hover);
    background: var(--gl-button-bg-hover);
}

.search-form {
    margin-bottom: 30px;
    display: -webkit-box;
    display: flex;
}

.search-field, .search-submit {
    height: 35px;
}

.search-field {
    padding-left: 5px;
    border-radius: 0;
    border: 1px solid #666;
}

.entry a.moretag {
    display: block;
    margin: 15px 0;
    padding: 0.6em;
    width: 150px;
}

/* Button Code End */
h2 a {
    text-decoration: none;
}

/* Alignment */
.alignleft {
    float: left;
    margin: 0 15px 8px 0;
}

.alignright {
    float: right;
    margin: 0 0 8px 15px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.embed-container {
    position: relative;
    padding-bottom: 45.25%;
    height: 0;
    overflow: hidden;
    max-width: 80%;
    margin: auto;
    margin-bottom: 20px;
}

.embed-container iframe, .embed-container object, .embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flex-wrapper, .flex-wrapper .wp-block-group__inner-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    justify-content: space-between;
}

.entry aside .wp-block-group__inner-container {
    display: block
}

.flex-wrapper .ui-button, .flex-wrapper .wp-block-button {
    width: 260px;
    margin-right: 0 !important;
    display: -webkit-box !important;
    display: flex !important;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    margin-bottom: 30px;
}

.flex-wrapper .wp-block-button__link {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: 100%;
    width: 100%;
    display: -webkit-box !important;
    display: flex !important;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
}

.flex-item {
    text-align: center;
    margin-bottom: 30px;
}

#primary-sidebar h2 {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #2f7896;
    color: #2f7896;
    text-transform: uppercase;
    margin-bottom: 30px;
}

#primary-sidebar ul {
    padding-left: 0;
    margin-bottom: 30px;
}

#primary-sidebar ul li {
    list-style: none;
}

#primary-sidebar ul li a {
    text-decoration: none;
}

hr {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}

.menu-footer-menu-container {
    width: 100%;
}

.sb-link.current-page {
    color: var(--gl-button-bg-hover);
}

#menu-footer-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-left: 0;
}

#menu-footer-menu li {
    list-style: none;
}

.menu-level-1 {
    display: none
}

/* Dropdown Menus End */

.wp-block-group.has-background {
    padding: 2rem;
}

.footer-menu-link {
    padding: 1em;
}

/** Column Shadow Boxes **/
.wp-block-columns.box-columns {
    margin-bottom: 30px !important;
}

.box-columns .wp-block-column {
    border: 1.2px solid #e5e5e5;
    padding: 20px 20px 0 20px;
    height: auto;
    min-height: 280px;
    background-color: #fbfbfb;
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, .19);
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    transition: all 400ms ease;
}

.box-columns .wp-block-column:hover {
    /*box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, .49);*/
}

/*** GUTTENBERG CALLOUT BOX GROUPS ***/
.box-outline {
    border: 1px solid var(--gl-button-bg);
    padding: 30px 30px 0 30px;
    margin: 0 0 30px 0;
    display: block;
}

.box-solid {
    background-color: var(--gl-button-bg);
    padding: 30px 30px 0 30px;
    margin: 0 0 30px 0;
    display: block;
    color: #fff !important;
}

.box-solid h2, .box-solid h3, .box-solid h4, .box-solid p, .box-solid a, .box-solid li, .box-solid figcaption, .box-solid blockquote, .box-solid cite {
    color: #fff !important;
}

.box-solid .ui-button, .box-solid .wp-block-button__link {
    background-color: #fff !important;
    color: var(--gl-button-bg) !important;
}

.box-solid .ui-button:hover, .box-solid .wp-block-button__link:hover {
    background: var(--gl-button-bg-hover) !important;
    color: var(--gl-button-color) !important;
}

/*** KADENCE OVERRIDES ***/

/*** BIO ROW HOVER REVERSE TO COLOR/BLACK WHITE ***/
.kt-info-animate-grayscale img, .kt-info-animate-grayscale-border-draw img {
    -webkit-filter: none !important;
    filter: none !important;
}

.kt-blocks-info-box-link-wrap:hover .kt-info-animate-grayscale img, .kt-blocks-info-box-link-wrap:hover .kt-info-animate-grayscale-border-draw img {
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
}

.top-floating-button {
    display: none;
    text-decoration: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-size: 15px;
    border: none;
    outline: none;
    background-color: var(--gl-button-bg);
    color: white;
    padding: 10px;
    border-radius: 0;
    opacity: .7 !important;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
}

.top-floating-button:hover {
    background-color: var(--gl-button-bg-hover);
}

.tabs-content-2 {
    background-color: hsl(0deg 0% 90% / 73%);
}

/*** BLOG START ***/
.post-excerpt {
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 1px 1px 11px 0 rgb(68 68 70 / 17%);
}

.blog-entry-wrapper {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
}

.blog-entry-wrap {
    width: 65%;
}

.featured-img-post {
    width: 30%;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
}

.blog-logo {
    max-width: 270px;
    width: 100%;
}

h2.blog-title-excerpt {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.blog-grid .blog-grid-wrapper {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 3rem;
    margin: 0 auto 3rem auto;
}

.blog-grid-wrapper .grid-excerpt {
    max-width: 550px;
}

a.grid-excerpt {
    background-color: var(--gl-button-bg);
    padding: 20px;
    text-decoration: none;
    position: relative;
}

a.grid-excerpt:hover {
    background-color: var(--gl-button-bg-hover);
}

p.blog-grid-meta {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.grid-excerpt img {
    aspect-ratio: 16/9;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.grid-excerpt img.post-logo, .grid-excerpt .post-logo img {
    -o-object-fit: contain;
    object-fit: contain;
}

h2.blog-grid-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
    margin-top: 0;
}

a.grid-excerpt * {
    color: var(--gl-button-color);
}

a.grid-excerpt:hover * {
    color: var(--gl-button-color-hover);
}

.nav-links {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
}

.nav-link-buttons .nav-links {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-link-buttons .nav-links {
    -webkit-box-pack: center;
    justify-content: center;
}

.nav-link-buttons .nav-links > * {
    width: 40px;
    padding: 10px;
    margin-top: 1em;
    margin-right: 10px;
    border-radius: 0;
    text-align: center;
    font-size: 1.2em;
}

.nav-link-buttons .nav-links a {
    color: var(--gl-button-color);
    background: var(--gl-button-bg);
    text-decoration: none;
}

.nav-link-buttons .nav-links a:hover, .nav-link-buttons .nav-links .current {
    background: var(--gl-button-bg-hover);
    color: var(--gl-button-color-hover);
}

.wp-block-image.img-50 figure {
    width: 49% !important;
}

.services-single-image {
    display: grid;
    grid-template-columns: 30% 70%;
    border: 1px solid #c5c5c5;
    width: 100%;
}

.services-single-image .links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0;
}

.services-single-image .links a {
    margin: 0;
    display: flex;
    align-items: center;
    flex: 1;
    text-align: left;
    border-bottom: 1px solid #c5c5c5;
}

.services-single-image a svg {
    transition: 0.2s ease-in-out transform;
    margin-left: 5px
}

.services-single-image a:hover svg {
    transform: translateX(10px);
}

.services-single-image .links a:last-child {
    border-bottom: none;
}

.services-single-image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/*** Search modal ***/

.search-button-modal {
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #666;
    border-radius: 50%;
    color: var(--gl-button-color);
    cursor: pointer;
    transition: 0.1s;
    background: var(--gl-button-bg);
}

.search-button-modal:hover {
    background: var(--gl-button-bg-hover);
    color: var(--gl-button-color-hover);
}

.search-button-modal svg {
    width: 15px;
    height: 15px;
}

.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: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

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

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

.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;
}

.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;
}

/*** BLOG END ***/

/**** STYLE OVERRIDES ****/

/*** Home ***/

/*** Secondary Pages ***/

/*** Footer ***/

@media (max-width: 1080px) {

    .wp-block-image.img-50 figure {
        width: 100% !important;
    }

    /** Center images to avoid narrow text wrap **/
    .alignleft, .alignright, .aligncenter, .wp-block-image .alignright, .wp-block-image .alignleft {
        display: block;
        float: none;
        margin: auto;
        margin-bottom: 20px;
        text-align: center;
    }

    figcaption {
        display: block !important;
    }

    .blog-entry-wrapper {
        flex-wrap: wrap;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        flex-direction: column-reverse;
    }

    .blog-entry-wrap, .featured-img-post {
        width: 100%;
    }

    .featured-img-post {
        margin-bottom: 0px;
        text-align: center;
    }

    .attachment-post-thumbnail {
        float: none;
    }

    .blog-entry-wrapper {
        -webkit-box-pack: center;
        justify-content: center;
    }

    .blog-title-excerpt, .blog-entry-wrap p {
        text-align: center;
    }

    .entry a.moretag {
        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 991px) {

    .search-button-modal {
        margin-top: 1em;
        margin-left: 10px;
    }

    .modal__overlay {
        align-items: flex-start;
    }

    .modal__container {
        margin-top: 100px;
    }

    .services-single-image {
        display: flex;
        flex-direction: column-reverse;
    }

    .w--open .w-icon-nav-menu:before {
        content: "\e900";
    }

    aside {
        flex-basis: auto;
        width: 100%;
        border-left: none;
        padding: 1em 0;
    }

    .pillar-link-grid a {
        padding: 1.5em;
    }

    /* Blog Containers */
    .main-content {
        width: 100%;
        padding-right: 0;
    }

    .embed-container {
        max-width: 100%;
        padding-bottom: 56.25%;
    }

    /* Rollover LASIK Callouts */
    .colorbox {
        display: block;
        z-index: 99999999;
        -webkit-transform: translateX(0px) translateY(0px) translateZ(0px) !important;
        transform: translateX(0px) translateY(0px) translateZ(0px) !important;
        opacity: 1 !important;
    }

    .project-name {
        -webkit-transform: translateX(0px) translateY(0px) translateZ(0px) !important;
        transform: translateX(0px) translateY(0px) translateZ(0px) !important;
    }
}

@media (max-width: 800px) {
    /** Stack Gutenberg Columns & Media Text **/
    .wp-block-columns {
        display: block
    }

    .wp-block-column {
        margin-left: 0px;
        margin-right: 0;
    }

    .wp-block-column:nth-child(2n) {
        margin-left: 0 !important;
    }

    .wp-block-media-text {
        display: -webkit-box !important;
        display: flex !important;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        flex-direction: column;
        margin-bottom: 0;
    }

    .wp-block-media-text__media img, .wp-block-media-text__media video {
        padding-bottom: 30px;
    }

    .wp-block-media-text .wp-block-media-text__content {
        padding: 0;
    }

    /* Column Shadow Boxes Mobile */
    .box-columns .wp-block-column {
        margin-left: 0;
        margin-bottom: 20px;
        width: 100%;
        flex-basis: unset;
    }

    .wp-block-columns.box-columns {
        flex-wrap: wrap;
    }

    .box-columns .wp-block-column:not(:first-child) {
        margin-left: 0;
    }

}

@media (max-width: 767px) {
    figure.alignleft, img.alignleft, figure.alignright, img.alignright {
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .kt-sc-textcol {
        margin: 0 !important;
    }

    .kt-row-column-wrap {
        max-width: 100% !important;
    }

    .wp-block-buttons > .wp-block-button {
        width: 100%;
    }

    .blog-grid-wrapper .grid-excerpt {
        max-width: 100%;
    }

}

@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {

}

@media (max-width: 479px) {
    a.ui-button, a.wp-block-button__link, .entry a.moretag {
        width: 100%;
    }

    .featured-img-post {
        float: none;
        margin: 0 0 30px 0;
        text-align: center;
    }
}



/* ==========================================================================
   Perlmutter Eye Center (Webflow export perlmutter-eye-center-2026-5)
   Theme-markup glue only — the design itself is css/webflow.css.
   ========================================================================== */

/* ---------- Header: navy top bar above the cream logo + menu row (two rows, not the theme's single flex row) ---------- */
.glacial-top-banner.navbar {
    display: block;
    padding: 0;
    box-shadow: none;
    z-index: 6000;
}

.glacial-top-banner .header-logo {
    width: auto;
    max-width: none;
}

.glacial-top-banner .site-navigation {
    flex: 1;
    align-items: center;
    justify-content: flex-end;
}

.glacial-top-banner .site-navigation > ul.gl-top-level {
    width: auto;
    flex: 1;
}

.glacial-top-banner .gl-top-level > li {
    margin-right: 0;
}

.glacial-top-banner .gl-top-level > li > a {
    line-height: 1.2em;
    white-space: nowrap;
}

.glacial-top-banner .site-navigation > .div {
    margin-left: 10px;
}

/* the export's button keeps its own look in the nav (the theme styles every nav link) */
.glacial-top-banner .site-navigation .button.new-no {
    width: auto;
    padding: 10px 10px 10px 30px;
    font-weight: 400;
}

/* ---------- Mega panels (Our Doctors, Services, Eye Conditions, Resources, Contact) ---------- */
/* panel links are body type, as the export's dropdown-link (the nav font setting covers the top row) */
.site-navigation ul ul a {
    font-family: lft-etica, sans-serif;
}

.site-navigation li.pe-col > ul.gl-dropdown-2 {
    display: block;
    position: static;
    width: auto;
    box-shadow: none;
    background: transparent;
}

.site-navigation li.pe-col > ul > li {
    background: transparent;
}

.site-navigation li.pe-col h4.with-line {
    margin: 10px 0 10px;
    font-size: 1.2em;
    width: 100%;
}

.site-navigation li.pe-col h4.with-line a {
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.site-navigation li.pe-col h4.with-line a:hover {
    color: var(--color-8);
}

.site-navigation li.pe-cta {
    flex-direction: column;
    align-items: flex-start;
}

.site-navigation li.pe-cta h4 {
    margin: 10px 0 5px;
    color: var(--color-3);
    font-size: 1.2em;
}

.site-navigation li.pe-cta p.less {
    font-family: lft-etica, sans-serif;
    font-weight: 300;
    margin: 0 0 15px;
    color: var(--color-3);
    line-height: 1.4em;
}

.site-navigation li.pe-cta a.simple-button {
    width: auto;
    padding: 12px 30px 13px;
    color: var(--color);
    font-family: ivypresto-headline, sans-serif;
    font-weight: 400;
    line-height: 1.2em;
}

.site-navigation li.pe-cta a.simple-button:hover {
    color: var(--color);
    background-color: var(--color-8);
}

.site-navigation li.pe-cta > ul > li:hover {
    background: transparent;
}

@media (min-width: 992px) {
    .glacial-top-banner .gl-top-level > li.pe-mega {
        position: static;
    }

    /* li is static (the panel spans the header), so keep its chevron beside the label instead of absolute */
    .glacial-top-banner .gl-top-level > li.pe-mega > button.toggle-dropdown {
        position: static;
        height: auto;
        align-self: center;
        width: 17px;
        margin-left: calc(-1 * (var(--nav-horz-pad) + 17px));
        margin-right: var(--nav-horz-pad);
    }

    /* full-width cream panel under the header row, as the export's dd-list-full-div */
    .glacial-top-banner .gl-top-level > li.pe-mega > ul.gl-dropdown-1 {
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        padding: 15px 5% 30px;
        background: var(--color);
        justify-content: space-between;
        box-shadow: 0 25px 30px -20px rgb(14 40 65 / 25%);
    }

    /* hover bridge between the menu item and the panel */
    .glacial-top-banner .gl-top-level > li.pe-mega > ul.gl-dropdown-1::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 40px;
    }

    .glacial-top-banner .gl-top-level > li.pe-mega:hover > ul.gl-dropdown-1,
    .glacial-top-banner .gl-top-level > li.pe-mega:focus-within > ul.gl-dropdown-1,
    .glacial-top-banner .gl-top-level > li.pe-mega > ul.gl-dropdown-1.toggled-on {
        display: flex;
    }

    .glacial-top-banner .gl-top-level > li.pe-mega > ul > li.pe-col {
        display: block;
        width: 30%;
        margin: 0;
    }

    .glacial-top-banner .gl-top-level > li.pe-mega > ul > li.pe-col--wide {
        width: 32%;
    }

    .site-navigation li.pe-col > ul > li > a {
        padding-left: 20px;
    }
}

/* ---------- Mobile menu ---------- */
@media (max-width: 991px) {
    .glacial-top-banner .header-logo {
        height: 75px;
    }

    .site-navigation li.pe-col {
        padding: 0 10px;
    }

    .site-navigation li.pe-col > ul.gl-dropdown-2 {
        padding-left: 0;
    }

    .site-navigation li.pe-cta {
        padding-bottom: 15px;
    }

    .glacial-top-banner .site-navigation > .div {
        margin: 20px 10px 0;
    }

    body:has(.w-nav-button.w--open) .quick-access-ctas {
        display: none;
    }
}

/* ---------- Inner page header band ---------- */
.pe-band-title {
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 30px;
    font-family: ivypresto-headline, sans-serif;
    font-size: 3em;
    font-weight: 300;
    line-height: 1.1em;
}

.ip-header .pe-band-title {
    color: var(--color-3);
}

.ip-header.pe-has-bg {
    background-image: linear-gradient(270deg, #0000, #0000 36%, #0000009c), var(--pe-header-bg);
}

.bc-holder span.bc {
    cursor: default;
}

@media (max-width: 991px) {
    .pe-band-title {
        font-size: 2.5em;
    }
}

@media (max-width: 479px) {
    .pe-band-title {
        font-size: 2em;
    }
}

/* ---------- Inner page content (design-styling .section > .wrap.stack) ---------- */
.pe-inner .wrap.stack > * {
    max-width: 100%;
}

.pe-inner .wrap.stack > p,
.pe-inner .wrap.stack > ul,
.pe-inner .wrap.stack > ol {
    max-width: 960px;
}

.pe-inner .wrap.stack > :last-child {
    margin-bottom: 0;
}

/* ---------- Related pages band (after the content) ---------- */
.pe-related {
    padding-top: 6%;
    padding-bottom: 6%;
    background-color: #fff;
}

.pe-related h2 a {
    color: inherit;
    text-decoration: none;
}

.pe-related h2 a:hover {
    color: var(--color-8);
}

.pe-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
}

.pe-related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 18px 18px 26px;
    border-radius: 15px;
    background-color: var(--color);
    color: var(--color-3);
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.15em;
    line-height: 1.25em;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.pe-related-card .btn-icon-div {
    flex: none;
    margin-left: 0;
    background-color: var(--color-3);
    transition: background-color .2s;
}

.pe-related-card .button-icon {
    filter: invert(1) brightness(2);
}

.pe-related-card:hover,
.pe-related-card.is-current {
    background-color: var(--color-3);
    color: var(--color);
}

.pe-related-card:hover .btn-icon-div,
.pe-related-card.is-current .btn-icon-div {
    background-color: var(--color-8);
}

.pe-related-card.is-current {
    pointer-events: none;
}

/* ---------- Footer ---------- */
.glacial-footer.footer-jm {
    width: 100%;
    max-width: none;
}

.pe-footer-form-note {
    color: var(--color);
    margin-bottom: 25px;
}

.lynx-text-footer-dark p {
    margin-bottom: 6px;
}

.lynx-text-footer-dark a:hover,
.lynx-link-footer-large-white:hover {
    color: var(--color-8);
}

.footer-jm .footer-menu-link,
.footer-jm .lynx-block-footer > a {
    display: block;
}

.pe-footer-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-jm .search-input {
    color: #fff;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .pe-footer-tools {
        align-items: flex-start;
    }
}

/* No underlines on links anywhere */
a {
    text-decoration: none;
}

/* ---------- Doctors + offices (cpt-acf-templates/) ---------- */
.pe-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px 30px;
    margin-top: 40px;
}

.pe-doc-grid .slide-card {
    width: 100%;
    margin: 0;
}

.pe-doc-photo .img {
    object-position: 50% 20%;
}

.pe-doc-focus {
    margin: 0 0 30px;
    padding-left: 20px;
}

.pe-doc-bio:empty {
    display: none;
}

.pe-office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.pe-office-card {
    display: flex;
    flex-direction: column;
    padding: 35px;
    border-radius: 15px;
    background-color: #fff;
}

.pe-office-name {
    margin-bottom: 15px;
}

.pe-office-address,
.pe-office-phone {
    margin-bottom: 15px;
    line-height: 1.5em;
}

.pe-office-phone a {
    color: var(--color-3);
}

.pe-office-hours h4 {
    margin-top: 0;
}

.pe-office-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.pe-office-buttons .simple-button-2.l-marg {
    margin-left: 0;
}

.pe-office-solo {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.pe-office-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 15px;
}

.pe-office-content {
    max-width: 960px;
    margin-top: 40px;
}

@media (max-width: 767px) {
    .pe-office-solo {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Inner pages built from the design sections (content/import/build-inner.php)
   ========================================================================== */

/* photo + text: flipped variant (text left, photo right) keeps the design's gap */
.glaucoma.pe-flip .wrap.flex > .txt-div {
    padding-right: 2%;
}

/* live diagrams / figures: shown whole, never cropped */
.pe-figure {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 15px;
    background-color: #fff;
    object-fit: contain;
}

.pe-figure--wide {
    margin: 10px 0 0;
    padding: 10px;
}

.when .pe-figure {
    max-width: 520px;
}

.img-div.pe-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #fff;
}

.img-div.pe-diagram .pe-contain {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

/* statement column: long statements step down a size */
.ethos .special-text > div:only-child,
.ethos .special-text > div {
    text-wrap: balance;
}

/* navy list: a divider label between numbered items (IOL types) */
.when .pe-steps-label {
    margin: 35px 0 5px;
    padding-left: 15px;
    color: var(--color-8);
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.3em;
    line-height: 1.3em;
}

.when .sticky-column > h2 {
    color: var(--color);
}

.when .list-txt strong {
    color: var(--color);
    font-weight: 600;
}

.when .list-txt a {
    color: var(--color-8);
}

/* navy card grid: plain lists in cards, column count by card number */
.why-div .pe-card-list {
    margin: 5px 0 0;
    padding-left: 18px;
    line-height: 1.5em;
}

.why-div .pe-card-list li + li {
    margin-top: 6px;
}

.grid-3.pe-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-3.pe-grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* cream card grid with photos (Our Technology devices) */
.lens-div .pe-card-photo {
    height: 220px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    object-fit: contain;
}

.lens-div p {
    margin: 10px 0 0;
    line-height: 1.6em;
}

/* videos: 1–3 columns, 16:9 thumbnails with a play button */
.quick-stack-3.pe-videos-1 {
    grid-template-columns: minmax(0, 860px);
}

.quick-stack-3.pe-videos-2 {
    grid-template-columns: 1fr 1fr;
}

.quick-stack-3.pe-videos-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.pe-video-link {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.pe-video-link .image-6 {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s;
}

.pe-video-link::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--color-8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 34px no-repeat;
    box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
    transition: transform .3s;
}

.pe-video-link:hover .image-6 {
    transform: scale(1.04);
}

.pe-video-link:hover::after {
    transform: scale(1.08);
}

.education.pe-education-light {
    color: var(--color-3);
    background-image: none;
    background-color: var(--color);
}

/* surgeon cards: one or two per row */
.quick-stack-2.pe-docs-2 {
    grid-template-columns: 1fr 1fr;
}

.quick-stack-2.pe-docs-1 {
    grid-template-columns: minmax(0, 640px);
}

.meet-docs .wrap.center {
    flex-direction: column;
    align-items: center;
}

.meet-docs .pe-docs-intro {
    max-width: 860px;
    margin-bottom: 10px;
    text-align: center;
}

/* closing "for more information" band */
.pe-more {
    padding-top: 6%;
    padding-bottom: 6%;
}

.pe-more .wrap.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pe-more-title {
    max-width: 900px;
    margin-bottom: 30px;
    line-height: 1.35em;
}

.pe-more-title a,
.pe-text-section p a,
.glaucoma .txt-div p a,
.ethos .txt-top a,
.pe-faq details a {
    color: var(--lynx--medium-purple);
}

.pe-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pe-btn-row .l-marg {
    margin-left: 0;
}

/* FAQ: groups of native accordions */
.pe-faq .wrap.stack {
    max-width: 1000px;
}

.pe-faq .pe-faq-group {
    margin: 50px 0 15px;
    font-size: 2.2em;
}

.pe-faq .pe-faq-group:first-of-type {
    margin-top: 10px;
}

.pe-faq-item {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 15px;
    background-color: #fff;
}

.pe-faq-item summary {
    position: relative;
    padding: 20px 70px 20px 28px;
    color: var(--color-3);
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.25em;
    line-height: 1.3em;
    cursor: pointer;
    list-style: none;
}

.pe-faq-item summary::-webkit-details-marker {
    display: none;
}

.pe-faq-item summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    background:
        linear-gradient(var(--color), var(--color)) 50% 50% / 12px 2px no-repeat,
        linear-gradient(var(--color), var(--color)) 50% 50% / 2px 12px no-repeat,
        var(--color-3);
    transition: transform .25s;
}

.pe-faq-item[open] summary::after {
    background:
        linear-gradient(var(--color), var(--color)) 50% 50% / 12px 2px no-repeat,
        var(--color-8);
}

.pe-faq-item > :not(summary) {
    margin: 0 28px 18px;
}

.pe-faq-item > :not(summary):last-child {
    padding-bottom: 6px;
}

/* contact: office tiles (card + map) */
.pe-office-grid--maps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pe-office-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    background-color: #fff;
}

.pe-office-tile .pe-office-card {
    flex: 1;
    border-radius: 0;
}

.pe-office-tile .pe-office-map iframe {
    min-height: 300px;
    border-radius: 0;
}

.pe-office-tile .pe-office-buttons {
    margin-top: auto;
}

/* doctor bio beside the intro line */
.pe-doc-bio-section .special-text {
    font-size: 2.2em;
}

.pe-doc-bio-section .pe-doc-bio-eyebrow {
    margin-bottom: 20px;
    font-family: lft-etica, sans-serif;
    font-size: .4em;
    line-height: 1.4em;
}

.pe-doc-bio .pe-bio-photo img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.pe-doc-bio p:last-child {
    margin-bottom: 0;
}

/* testimonials page: quotes are long — tighter type than the homepage reviews */
.pe-designed .playlist .testimonial-txt + .testimonial-txt {
    margin-top: -15px;
}

@media (max-width: 991px) {
    .quick-stack-3.pe-videos-3,
    .pe-office-grid--maps {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3.pe-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .quick-stack-3.pe-videos-2,
    .quick-stack-3.pe-videos-3,
    .quick-stack-2.pe-docs-2,
    .pe-office-grid--maps,
    .grid-3.pe-grid-3,
    .grid-3.pe-grid-2 {
        grid-template-columns: 1fr;
    }

    .pe-doc-bio-section .special-text {
        font-size: 1.8em;
    }

    .pe-faq-item summary {
        padding-left: 20px;
        font-size: 1.1em;
    }
}

/* links on the navy bands stay readable; card links in the design blue */
:is(.why-choose, .when, .education:not(.pe-education-light), .playlist) p a,
.p-div-white a {
    color: var(--color-8);
}

.lens-div a,
.pe-doc-bio a {
    color: var(--lynx--medium-purple);
}

/* Testimonials page: long, multi-paragraph quotes — the slider grows with the quote */
.playlist.pe-testimonials .w-slider,
.playlist.pe-testimonials .w-slider-mask {
    height: auto;
}

.playlist.pe-testimonials .w-slide {
    vertical-align: top;
}

.playlist.pe-testimonials .slide-content-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 60px 60px;
}

.playlist.pe-testimonials .testimonial-txt {
    font-size: 1.2em;
    line-height: 1.6em;
}

.playlist.pe-testimonials .lynx-heading-client {
    max-width: 640px;
    color: var(--color-8);
    line-height: 1.4em;
}

/* ==========================================================================
   Doctor pages (content/import/build-doctors.php) — homepage elements
   ========================================================================== */

/* Profile hero: the homepage navy doctor band, name + focus pills + hero buttons beside the homepage card photo */
.doctors.pe-doc-hero {
    padding-top: clamp(190px, 16vw, 230px);
    padding-bottom: 90px;
}

.pe-doc-hero-row {
    align-items: center;
    justify-content: space-between;
    gap: 6%;
}

.pe-doc-hero-text {
    flex: 1;
    color: var(--color);
}

.pe-doc-hero .bc-holder {
    margin-bottom: 25px;
}

.pe-doc-hero .pe-doc-name {
    margin: 0 0 25px;
    color: var(--color);
}

.pe-pills {
    margin-bottom: 25px;
}

.pe-pills .pe-pill {
    border-color: #ffffff59;
    color: var(--color);
    background-color: #ffffff12;
}

.pe-doc-hero .pe-doc-intro {
    margin-bottom: 35px;
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.35em;
    font-style: italic;
    line-height: 1.45em;
}

.pe-doc-hero .div-block-5 {
    flex-wrap: wrap;
    gap: 10px;
}

.pe-doc-hero .hero-button.outline {
    margin-left: 0;
}

.img-div.doc.pe-doc-hero-photo {
    flex: none;
    width: min(420px, 38%);
    margin: 0;
    aspect-ratio: 4 / 5;
}

.pe-doc-hero-photo .img.doc {
    object-position: 50% 15%;
}

/* Bio: heading stays in view beside the bio (no empty column), photos inside the bio rounded */
.ethos.pe-doc-bio-section .wrap.flex {
    align-items: flex-start;
}

.pe-doc-bio-head {
    width: 34%;
    position: sticky;
    top: 200px;
}

.pe-doc-bio-section .txt-top.pe-doc-bio {
    width: 58%;
}

.pe-doc-bio .pe-bio-photo {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 0 35px;
    border-radius: 15px;
}

/* Our Doctors: grouped grids of the homepage cards */
.pe-doc-archive .pe-doc-group {
    flex-direction: column;
    margin-top: 60px;
}

.pe-doc-group-title {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffffff36;
    color: var(--color-8);
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.6em;
    line-height: 1.2em;
}

.pe-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 30px;
    width: 100%;
}

.pe-doc-grid--1 {
    grid-template-columns: minmax(0, calc((100% - 60px) / 3));
}

.pe-doc-grid .slide-card {
    display: block;
    color: var(--color);
}

.pe-doc-grid .img-div.doc {
    aspect-ratio: 4 / 5;
}

.pe-doc-grid .img.doc {
    object-position: 50% 15%;
    transition: transform .5s;
}

.pe-doc-grid .slide-card:hover .img.doc {
    transform: scale(1.05);
}

.pe-doc-grid h4 {
    font-size: 1.4em;
}

/* ==========================================================================
   Review fixes: tablet / phone layouts and doubled spacing
   ========================================================================== */

/* neighbouring cream sections share one padding instead of two */
:is(.glaucoma, .ethos, .lenses, .pe-text-section, .pe-more, .pe-education-light) + :is(.glaucoma, .ethos, .pe-text-section, .pe-more, .pe-education-light) {
    padding-top: 0;
}

/* a heading row without its paragraph uses the full width */
.wrap.flex > .headline-46:only-child {
    width: 100%;
}

@media (max-width: 991px) {
    /* photo + text: stack instead of a squeezed photo sliver */
    .glaucoma .wrap.flex {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .glaucoma .wrap.flex > .img-div,
    .glaucoma .wrap.flex > .txt-div {
        width: 100%;
    }

    .glaucoma .wrap.flex > .img-div {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .glaucoma .wrap.flex > .img-div.pe-diagram {
        aspect-ratio: auto;
    }

    .glaucoma.pe-flip .wrap.flex > .img-div {
        order: -1;
    }

    /* big statement + copy: stack */
    .ethos .wrap.flex {
        flex-direction: column;
        gap: 30px;
    }

    .ethos .special-text,
    .ethos .txt-top,
    .pe-doc-bio-head,
    .pe-doc-bio-section .txt-top.pe-doc-bio {
        width: 100%;
    }

    .pe-doc-bio-head {
        position: static;
    }

    /* navy numbered list: one column, tighter numbers */
    .when .grid.ip {
        grid-template-columns: 1fr;
        grid-row-gap: 40px;
    }

    .when .promise .number {
        margin-right: 25px;
    }

    .when .list-txt {
        width: auto;
        flex: 1;
    }

    /* videos: keep three across on tablets */
    .quick-stack-3.pe-videos-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* offices: card beside its map, one office per row */
    .pe-office-grid--maps {
        grid-template-columns: 1fr;
    }

    .pe-office-tile {
        flex-direction: row;
    }

    .pe-office-tile .pe-office-card {
        width: 45%;
    }

    .pe-office-tile .pe-office-map {
        flex: 1;
    }

    .pe-office-tile .pe-office-map iframe {
        height: 100%;
    }

    /* doctor hero: photo above the text */
    .pe-doc-hero-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 40px;
    }

    .img-div.doc.pe-doc-hero-photo {
        width: min(360px, 70%);
    }

    .pe-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pe-doc-grid--1 {
        grid-template-columns: minmax(0, calc((100% - 30px) / 2));
    }
}

@media (max-width: 767px) {
    .quick-stack-3.pe-videos-3 {
        grid-template-columns: 1fr;
    }

    .pe-office-tile {
        flex-direction: column;
    }

    .pe-office-tile .pe-office-card {
        width: auto;
    }

    .pe-office-tile .pe-office-map iframe {
        height: auto;
    }

    .doctors.pe-doc-hero {
        padding-top: 150px;
        padding-bottom: 60px;
    }
}

@media (max-width: 479px) {
    .pe-doc-grid,
    .pe-doc-grid--1 {
        grid-template-columns: 1fr;
    }

    .img-div.doc.pe-doc-hero-photo {
        width: 100%;
    }
}

/* doctor pages: the h1 takes the design's heading face (h1 has no base style in the export) */
h1.pe-doc-name {
    font-family: ivypresto-headline, sans-serif;
    font-weight: 300;
    line-height: 1.1em;
    text-transform: capitalize;
}

.doctors.pe-doc-archive {
    padding-top: clamp(190px, 16vw, 230px);
}

.pe-doc-archive .div-2 .bc-holder {
    margin-bottom: 25px;
}

@media (max-width: 767px) {
    .doctors.pe-doc-archive {
        padding-top: 150px;
    }
}

/* placeholder pages with no content: no empty band */
.pe-inner--empty {
    padding: 0;
}

/* 404 + search */
.pe-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    margin: 10px 0 30px;
}

.pe-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 22px;
    border: 1px solid #0e284126;
    border-radius: 50px;
    background-color: #fff;
    color: var(--color-3);
    font-family: lft-etica, sans-serif;
    font-size: 1em;
}

.pe-search-form .simple-button-2 {
    flex: none;
    cursor: pointer;
}

.pe-404 + .new-services-section,
.pe-search + .new-services-section {
    padding-top: 0;
}

.pe-search-results {
    margin-top: 10px;
}

.pe-search-results .pe-related-card {
    background-color: #fff;
}

/* phones: lens cards two across; testimonials use the full width */
@media (max-width: 479px) {
    .grid-3._2:not([class*="pe-grid"]) {
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 15px;
    }
}

@media (max-width: 767px) {
    .playlist.pe-testimonials .slider-2 {
        width: 100%;
    }

    .playlist.pe-testimonials .slide-content-wrapper {
        padding: 0 35px 50px;
    }

    .playlist.pe-testimonials .testimonial-txt {
        font-size: 1.05em;
    }
}

.pe-office-phone + .pe-office-phone {
    margin-top: -10px;
}

/* ==========================================================================
   Only buttons are pill-shaped: labels, tags and fields are not
   ========================================================================== */

/* doctor hero focus areas: the homepage card lines, a touch larger */
.pe-doc-hero .pe-doc-focus {
    margin-bottom: 25px;
    font-size: .9em;
    letter-spacing: .04em;
    line-height: 1.6em;
}

/* Custom Cataract Surgery symptoms: a plain list with gold markers instead of outlined tags */
.symptom-wrapper {
    display: block;
}

.symptom {
    position: relative;
    margin: 0 0 8px;
    padding: 0 0 0 18px;
    border: 0;
    border-radius: 0;
    text-align: left;
    font-size: .95em;
    line-height: 1.4em;
}

.symptom::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    background-color: var(--color-8);
}

/* lens table: coverage and "good fit" as text labels */
.iol-pill,
.iol-pill--ins,
.iol-pill--prem {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
}

.iol-pill--ins {
    color: var(--iol-navy);
}

.iol-pill--prem {
    color: var(--iol-blue);
}

.iol-row.is-match .iol-fit {
    display: inline-flex;
}

.iol-fit {
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--iol-blue);
    letter-spacing: .06em;
}

.iol-fit::before {
    content: "✓ ";
    white-space: pre;
}

/* search fields: the footer search's soft corners, not a pill */
.pe-search-form input[type="search"] {
    border-radius: 10px;
}

.pe-doc-hero .pe-doc-focus {
    padding-left: 0;
    margin-left: 0;
}

/* ==========================================================================
   Button contrast: on gold → navy text (cream on gold is only 2.5:1), on navy → cream text
   ========================================================================== */
.simple-button-2.l-marg.gold,
.button.new-no,
.button.new-no > div:first-child {
    color: var(--color-3);
}

.simple-button-2.l-marg.gold:hover,
.button.new-no:hover,
.button.new-no:hover > div:first-child {
    color: var(--color);
}

/* navy buttons turn gold on hover */
.simple-button-2:not(.gold):hover,
.site-navigation li.pe-cta a.simple-button:hover {
    color: var(--color-3);
}

/* Related / search cards: the arrow PNG is white — keep it white on the navy circle, dark on the gold one */
.pe-related-card .button-icon {
    filter: none;
}

.pe-related-card:hover .button-icon,
.pe-related-card.is-current .button-icon {
    filter: invert(1);
}

/* Doctor slider arrows: gold on navy at rest; the hover fills the circle light grey, so the arrow turns navy */
.slider_arrow:hover .testimonial20_arrow-icon {
    color: var(--color-3);
}

/* ------------------------------------------------------------------
 * Services hub (/services/, 2026-11-16): photo-on-top service cards.
 * Homepage language: cream ground, 15px cards with an inset 10px photo (the tab panel / lens cards), ivypresto
 * titles, the navy arrow circle that turns gold (navy arrow) on hover. The title link is stretched over the card.
 * ------------------------------------------------------------------ */
.pe-svc-hub {
    padding: 7% 0 8%;
}

.pe-svc-head {
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.pe-svc-head h2 {
    margin-bottom: 0;
}

.wrap.pe-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.pe-svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 1px 2px #0e28410f, 0 8px 24px #0e28410a;
    transition: transform .35s ease, box-shadow .35s ease;
}

.pe-svc-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
}

.pe-svc-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.pe-svc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 10px 8px;
}

.pe-svc-card h3.pe-svc-title {
    margin-bottom: 18px;
    font-size: 1.6em;
}

.pe-svc-title a {
    color: inherit;
    text-decoration: none;
}

.pe-svc-title a::after { /* the whole card is the link */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 15px;
}

.pe-svc-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: auto;
    padding-right: 55px;
    color: var(--color-3);
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.05em;
    font-weight: 400;
}

.pe-svc-more::before, /* navy circle */
.pe-svc-more::after { /* arrow, drawn as a mask so its colour can change */
    content: "";
    position: absolute;
    top: 50%;
    border-radius: 100%;
    transform: translateY(-50%);
    transition: background-color .3s ease;
}

.pe-svc-more::before {
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-3);
}

.pe-svc-more::after {
    right: 9px;
    width: 22px;
    height: 22px;
    border-radius: 0;
    background-color: #fff;
    -webkit-mask: url("images/icons8-right-arrow-64_1icons8-right-arrow-64.png") center / contain no-repeat;
    mask: url("images/icons8-right-arrow-64_1icons8-right-arrow-64.png") center / contain no-repeat;
}

.pe-svc-card:hover,
.pe-svc-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px #0e284114, 0 18px 40px #0e284124;
}

.pe-svc-card:hover .pe-svc-photo img,
.pe-svc-card:focus-within .pe-svc-photo img {
    transform: scale(1.05);
}

/* gold circle, navy arrow (button contrast rule) */
.pe-svc-card:hover .pe-svc-more::before,
.pe-svc-card:focus-within .pe-svc-more::before {
    background-color: var(--color-8);
}

.pe-svc-card:hover .pe-svc-more::after,
.pe-svc-card:focus-within .pe-svc-more::after {
    background-color: var(--color-3);
}

.pe-svc-title a:focus-visible {
    outline: none;
}

.pe-svc-title a:focus-visible::after {
    outline: 3px solid var(--color-8);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pe-svc-card,
    .pe-svc-photo img,
    .pe-svc-more::before,
    .pe-svc-more::after {
        transition: none;
    }

    .pe-svc-card:hover,
    .pe-svc-card:focus-within,
    .pe-svc-card:hover .pe-svc-photo img,
    .pe-svc-card:focus-within .pe-svc-photo img {
        transform: none;
    }
}

@media screen and (max-width: 1199px) {
    .wrap.pe-svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .pe-svc-photo {
        aspect-ratio: 16 / 10;
    }
}

@media screen and (max-width: 991px) {
    .pe-svc-head {
        margin-bottom: 35px;
    }
}

@media screen and (max-width: 600px) {
    .pe-svc-hub {
        padding: 60px 0;
    }

    .wrap.pe-svc-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Self-test thank-you pages (CPT glacial-thank-you): their Kadence "Schedule Your Consultation" buttons are now real
   links, so the base theme's `a.wp-block-button__link` rule (square, uppercase) would restyle them. Keep the look
   they had as plain buttons (WordPress's default button), as on the template. */
.single-glacial-thank-you a.kb-button.wp-block-button__link {
    color: #fff;
    background: #32373c;
    border-radius: 9999px;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    text-transform: inherit;
    text-decoration: none;
}

/* Cataract Self-Test page: centred title above the forms.glacial.com embed (form 7003846, iframe up to 800px) */
.pe-selftest .wrap.stack {
    align-items: center;
}

.pe-selftest-title {
    margin-bottom: 15px;
    text-align: center;
}

.pe-selftest-title .pe-nowrap {
    white-space: nowrap;
}

.pe-selftest-form {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
}

.pe-selftest-form iframe {
    width: 100%;
    max-width: 100%;
}

/* Thank-you pages (user, 2026-11-16): centre the content and let it sit on the page's cream ground. The Kadence
   full-width rows pull left by the container gutter (-72px) but can't grow right inside .wrap, so they sat
   off-centre with a white box behind them. Content itself is untouched. */
.single-glacial-thank-you .kb-row-layout-wrap.alignfull {
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
}

.single-glacial-thank-you .kb-row-layout-wrap.alignfull > .kt-row-column-wrap {
    padding-left: 0;
    padding-right: 0;
}

.single-glacial-thank-you .kb-gallery-caption-style-below .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
    background: transparent !important; /* Kadence prints its white caption box inline, after this file */
}

/* ------------------------------------------------------------------
 * Contact Us (2026-11-16): intro (+ form column once supplied), the homepage stats band as "Call Us", office cards.
 * ------------------------------------------------------------------ */
.wrap.pe-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 60px;
    align-items: start;
}

/* until the form is added the intro stands alone, centred */
.wrap.pe-contact-grid > .pe-contact-text:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.pe-contact-text p {
    margin-bottom: 20px;
}

.pe-contact-form iframe {
    width: 100%;
    max-width: 100%;
}

.pe-contact-urgent {
    margin: 10px 0 25px;
    padding: 22px 26px;
    border-left: 3px solid var(--color-8);
    border-radius: 10px;
    background-color: #fff;
    color: var(--color-3);
}

.pe-contact-urgent p {
    margin-bottom: 0;
}

.pe-contact-urgent a,
.pe-contact-fax a {
    color: inherit;
}

.pe-contact-fax {
    color: var(--color-3);
    font-family: ivypresto-headline, sans-serif;
    font-size: 1.25em;
}

/* "Call Us": the homepage stats band with each office's number in place of a counter */
.pe-call-band .pe-call-number {
    font-size: 1.75em;
    white-space: nowrap;
}

.pe-call-band .pe-call-number a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

.pe-call-band .pe-call-number a:hover,
.pe-call-band .pe-call-number a:focus-visible {
    color: var(--color-8);
}

.pe-call-band .counter-btm-line {
    font-size: .95em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media screen and (max-width: 991px) {
    .wrap.pe-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    /* stacked numbers: room either side of the divider lines */
    .pe-call-band .counter-div {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* Contact-form thank-you page (/thank-you/contact-us/): one centred navy band */
.doctors.pe-thanks {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding-bottom: 110px;
}

.pe-thanks .wrap {
    justify-content: center;
}

.pe-thanks-inner {
    max-width: 760px;
    text-align: center;
}

.pe-thanks-inner .pe-doc-name {
    margin-bottom: 25px;
}

.pe-thanks-lead {
    margin-bottom: 15px;
    font-size: 1.15em;
}

.pe-thanks-note {
    margin-bottom: 35px;
    opacity: .85;
}

.pe-thanks-note a {
    color: var(--color-8);
    white-space: nowrap;
}

.pe-thanks-btns {
    justify-content: center;
}

.pe-thanks-btns .hero-button.outline {
    margin-left: 0;
}

/* ------------------------------------------------------------------
 * Responsive review (2026-11-16)
 * ------------------------------------------------------------------ */

/* Thank-you pages: the five procedure icons stay on one row at every width (Kadence drops to 4 / 3 columns, which
   left SMILE, or RLE + SMILE, alone on a second row) */
.single-glacial-thank-you .kb-gallery-type-grid .kadence-blocks-gallery-item {
    width: 20% !important;
}

/* 404 + search: the "Our Services" tiles. On phones the homepage's first tile grid went to one column while the
   second stayed at two; keep both at two */
@media screen and (max-width: 479px) {
    body.error404 .grid-4._1,
    body.search .grid-4._1 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Thank-you pages: the Kadence row's own 80px bottom padding stacked on the page section's padding, leaving up to
   ~170px of empty cream above the footer on phones; the section padding alone is enough */
.single-glacial-thank-you .kb-row-layout-wrap.alignfull > .kt-row-column-wrap {
    padding-bottom: 0;
}

/* Testimonials page: the slide kept 50–60px of bottom padding for slider dots that this page hides, which stacked
   on the band's own padding below the last quote */
.playlist.pe-testimonials .slide-content-wrapper {
    padding-bottom: 0 !important;
}

/* Doctor profiles: specialty lines link to their service pages (includes/perlmutter.php pe_link_specialties). Same
   gold text; a faint underline marks the link (not colour alone), full underline on hover / focus */
.pe-doc-focus a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(184, 151, 90, .45);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: text-decoration-color .25s ease, color .25s ease;
}

.pe-doc-focus a:hover,
.pe-doc-focus a:focus-visible {
    color: #d9c49a;
    text-decoration-color: currentColor;
}

.pe-doc-focus a:focus-visible {
    outline: 2px solid var(--color-8);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ==========================================================================
   Testimonials page (2026-11-19, user): the reviews sit on white, apart from the navy page header.
   pe_reviews( …, 'pe-reviews-light' ) in content/import/build-inner.php
   ========================================================================== */
.playlist.pe-reviews-light {
    background: #fff;
    background-image: none;
    color: var(--color-3);
}

.playlist.pe-reviews-light .txt._30.white,
.playlist.pe-reviews-light .slide-content-wrapper,
.playlist.pe-reviews-light .testimonial-txt {
    color: var(--color-3);
}

/* author: navy text (gold on white is only 2.6:1) under a short gold rule */
.playlist.pe-reviews-light .lynx-heading-client {
    color: var(--color-3);
}

.playlist.pe-reviews-light .lynx-text-client {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.playlist.pe-reviews-light .lynx-text-client::before {
    content: "";
    width: 48px;
    height: 2px;
    margin-bottom: 18px;
    background: var(--color-8);
}

.playlist.pe-reviews-light p a {
    color: var(--lynx--medium-purple);
}

/* arrows: navy circles with cream arrows; gold with navy on hover (button contrast rule) */
.playlist.pe-reviews-light .slider-left-arrow,
.playlist.pe-reviews-light .slider-right-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-3);
    color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .25s ease, color .25s ease;
}

.playlist.pe-reviews-light .slider-icon {
    filter: none;
    color: inherit;
    font-size: 18px;
}

.playlist.pe-reviews-light .slider-left-arrow:hover,
.playlist.pe-reviews-light .slider-right-arrow:hover,
.playlist.pe-reviews-light .slider-left-arrow:focus-visible,
.playlist.pe-reviews-light .slider-right-arrow:focus-visible {
    background: var(--color-8);
    color: var(--color-3);
}

.playlist.pe-reviews-light .slider-left-arrow:focus-visible,
.playlist.pe-reviews-light .slider-right-arrow:focus-visible {
    outline: 2px solid var(--color-3);
    outline-offset: 3px;
}

/* the related-pages band below is white too: a hairline keeps the two apart */
body:has(.pe-reviews-light) .pe-related {
    border-top: 1px solid #e8e2d6;
}

/* arrows sit beside the quote column, not at the page edges (the slider was position: static) */
.playlist.pe-reviews-light .slider-2 {
    position: relative;
}

.playlist.pe-reviews-light .slider-left-arrow {
    left: 0;
}

.playlist.pe-reviews-light .slider-right-arrow {
    right: 0;
}

@media (max-width: 767px) {
    .playlist.pe-reviews-light .slider-left-arrow,
    .playlist.pe-reviews-light .slider-right-arrow {
        width: 40px;
        height: 40px;
    }

    .playlist.pe-reviews-light .slider-left-arrow {
        left: -10px;
    }

    .playlist.pe-reviews-light .slider-right-arrow {
        right: -10px;
    }
}

/* ==========================================================================
   Locations — Google Business Profile maps (2026-12-02)
   Google draws the profile card (name, rating, reviews, Open in Maps) only when
   the map iframe is at least ~400×300; smaller embeds show just the named pin.
   ========================================================================== */

/* /locations/: one office per row, card beside its map (same as a single office) */
.pe-office-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.pe-office-list .pe-office-solo {
    margin-top: 0;
}

.pe-office-gbp {
    margin-bottom: 15px;
}

.pe-office-gbp a {
    color: var(--color-3);
    text-decoration: underline;
    text-decoration-color: rgba(185, 151, 91, .5);
    text-underline-offset: 3px;
}

.pe-office-gbp a:hover,
.pe-office-gbp a:focus-visible {
    text-decoration-color: currentColor;
}

/* contact: three-up tiles only where each map is ≥ 400px wide; card beside map below that */
@media (min-width: 992px) and (max-width: 1279px) {
    .pe-office-grid--maps {
        grid-template-columns: 1fr;
    }

    .pe-office-tile {
        flex-direction: row;
    }

    .pe-office-tile .pe-office-card {
        width: 40%;
    }

    .pe-office-tile .pe-office-map {
        flex: 1;
    }

    .pe-office-tile .pe-office-map iframe {
        height: 100%;
    }
}
