/*
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: #4f2973;
    --gl-button-color-hover: #fff;
    --gl-button-bg-hover: #9e92b0;
    --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: #4f2973;
    text-decoration: none;
}

.entry a:hover {
    color: #9e92b0;
}

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

/*** 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;
    }
}



/* ==========================================================================
   Atlantic Eye
   ========================================================================== */

/* Header: floating translucent Webflow bar instead of the theme's generic banner */
.glacial-top-banner.navbar {
    display: block;
    width: 98%;
    top: 2%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-shadow: none;
    z-index: 5000;
}

.glacial-top-banner .header-logo.image-2 {
    width: auto;
    max-width: none;
    height: 100px;
}

.glacial-top-banner .site-navigation li > a {
    white-space: nowrap;
}

/* Services mega menu: three columns of pillar + sub links, like the export's div-block-9 */
.site-navigation li.ae-col > a,
.site-navigation li.ae-col > .toggle-dropdown {
    display: none;
}

.site-navigation li.ae-pillar > a {
    border-bottom: 1px solid #b1babf;
}

.site-navigation li.ae-top-marg {
    margin-top: 30px;
}

.site-navigation li.ae-sub > a {
    padding-left: 40px;
    font-weight: 400;
}

@media (min-width: 992px) {
    /* fixed = relative to the banner, whose backdrop-filter makes it the containing block */
    .gl-top-level > li.ae-mega > ul.gl-dropdown-1 {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        padding: 40px;
        background: #fff;
        border-radius: 15px;
        justify-content: space-between;
    }

    .gl-top-level > li.ae-mega > ul.gl-dropdown-1::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 40px;
    }

    .gl-top-level > li.ae-mega:hover > ul.gl-dropdown-1,
    .gl-top-level > li.ae-mega > ul.gl-dropdown-1.toggled-on {
        display: flex;
    }

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

    .gl-top-level li.ae-col > ul.gl-dropdown-2 {
        display: block;
        position: static;
        width: auto;
        box-shadow: none;
    }

    .gl-top-level li.ae-col > ul > li {
        margin-right: 0;
    }

    /* Doctors (two columns) and Patient Resources: white rounded panels */
    .gl-top-level > li:not(.ae-mega) > ul.gl-dropdown-1 {
        width: max-content;
        min-width: 240px;
        padding: 10px 0;
        border-radius: 10px;
        background: #fff;
    }

    .gl-top-level > li.ae-two-col > ul.gl-dropdown-1 {
        column-count: 2;
        column-gap: 0;
    }

    .gl-top-level > li.ae-two-col > ul > li {
        break-inside: avoid;
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    /* backdrop-filter makes the banner the containing block of the fixed mobile menu; drop it while open */
    .glacial-top-banner.navbar:has(.w-nav-button.w--open) {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

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

    .site-navigation li.ae-top-marg {
        margin-top: 15px;
    }

    .site-navigation li.ae-sub > a {
        padding-left: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .glacial-top-banner.navbar .site-navigation {
        margin-top: 2vh;
    }
}

@media (max-width: 767px) {
    .glacial-top-banner.navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
    }

    .glacial-top-banner .header-logo.image-2 {
        height: 75px;
    }
}

/* Inner page title band (designer-styling.html .basic-header-ip) */
.basic-header-ip h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 3em;
    font-weight: 400;
    line-height: 1.2em;
}

.basic-header-ip .breadcrumb {
    flex-wrap: wrap;
}

/* Footer: glacial_footer_menu() prints bare links */
.quick-links .ql .ql-link {
    display: block;
    margin-bottom: 5px;
}

/* Inner content wrapper: let WP/plugin content use the full width; design buttons keep their size */
.ip-section.entry > .wrap {
    align-items: stretch;
}

.ip-section.entry > .wrap > .button {
    align-self: flex-start;
}

/* Long single words in page titles (e.g. "Ophthalmology") must not widen the phone layout */
@media (max-width: 479px) {
    .basic-header-ip h1 {
        font-size: 2.2em;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Inner title band: the export's 15% top padding leaves a large empty gap under the floating nav (216px at 1440,
   288px at 1920). Clear the nav (~110px) plus a comfortable margin instead. */
.basic-header-ip {
    padding: clamp(132px, 9.5vw, 160px) 5% clamp(48px, 4vw, 70px);
}

.basic-header-ip h1 {
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .basic-header-ip {
        padding-top: 118px;
        padding-bottom: 44px;
    }
}

/* Mobile/tablet audit 2026-11-04 (375/479/767/991) */
/* Long unbroken strings (raw URLs in imported posts, "PHOTOBIOMODULATION" in blog titles) widened the phone layout */
.ip-section.entry, .blog-entry-wrap, h2.blog-title-excerpt {
    overflow-wrap: break-word;
}

@media (max-width: 479px) {
    /* Full-width buttons kept the desktop 20px right margin → 20px overflow (doctor bio "Visit … Website") */
    a.ui-button, a.wp-block-button__link, .entry a.moretag {
        margin-right: 0;
    }

    /* Homepage "Learn About Your Vision": the IX3 scroll-scrub (trigger -300% center → 50% bottom, staggered across
       all cards) was tuned for the 3-up desktop row. Stacked on phones, cards sit on screen at 0–30% opacity,
       leaving a ~1000px blank panel. Show them statically here. */
    .learn-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Design consistency pass 2026-11-04 — legacy WP/plugin UI brought onto the homepage's design language
   ========================================================================== */

/* WP adds body.search on results pages; the export's footer-search `.search {display:flex}` turned the whole
   page into a 3-column row (title band | results | footer) */
body.search {
    display: block;
}

/* Nav: hover/current used #9e92b0 — the same lavender as the inner-page header glass, so the current item vanished.
   Keep the text purple and mark the item with a soft white pill instead. */
.gl-top-level > li > a {
    border-radius: 50px;
    transition: background-color .2s ease, color .2s ease;
}

@media (min-width: 992px) {
    .gl-top-level > li:hover > a,
    .gl-top-level > li.current-menu-item > a,
    .gl-top-level > li.current-menu-ancestor > a,
    .gl-top-level > li.current-page-ancestor > a {
        color: #4f2973;
        background-color: rgb(255 255 255 / 55%);
    }

    .gl-top-level > li:hover > .toggle-dropdown svg,
    .gl-top-level > li.current-menu-item > .toggle-dropdown svg,
    .gl-top-level > li.current-menu-ancestor > .toggle-dropdown svg {
        stroke: #4f2973;
    }
}

/* Legacy buttons (blog Read More, location "More About…", doctor filters, plain WP button blocks, pagination)
   → the design's lavender pill with a purple arrow circle */
a.ui-button, a.wp-block-button__link:not(.gl-btn), .entry a.moretag, button.dr-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: auto;
    margin: 0 10px 10px 0;
    padding: 8px 8px 8px 24px;
    border: 0;
    border-radius: 50px;
    background: #9e92b0;
    color: #fff;
    font-family: futura-pt, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

a.ui-button::after, a.wp-block-button__link:not(.gl-btn)::after, .entry a.moretag::after, button.dr-clear-btn::after {
    content: "";
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #4f2973 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") center / 16px no-repeat;
}

button.dr-clear-btn::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='7' y1='7' x2='17' y2='17'/%3E%3Cline x1='17' y1='7' x2='7' y2='17'/%3E%3C/svg%3E");
}

a.ui-button:hover, a.wp-block-button__link:not(.gl-btn):hover, .entry a.moretag:hover, button.dr-clear-btn:hover {
    background: #69468a;
    color: #fff;
}

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

/* pagination: round chips */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 3px;
    padding: 0 8px;
    border-radius: 50px;
    background: #e7e4ec;
    color: #4f2973;
    font-weight: 600;
    text-decoration: none;
}

a.page-numbers:hover {
    background: #9e92b0;
    color: #fff;
}

.page-numbers.current {
    background: #4f2973;
    color: #fff;
}

.page-numbers.dots {
    background: transparent;
}

/* Doctors archive: no NP doctors yet — hide the empty group heading */
.doctor-archive-container > div:not(:has(.doc-item)) {
    display: none;
}

/* Blog sidebar */
.related-topics-div .ae-side-card {
    margin-bottom: 36px;
}

.related-topics-div .ae-side-card h2 {
    margin-bottom: 14px;
}

.related-topics-div .wp-block-latest-posts li {
    margin-bottom: 12px;
    line-height: 1.35;
}

.related-topics-div .wp-block-archives-dropdown select {
    width: 100%;
    max-width: 260px;
    padding: 10px 14px;
    border: 1px solid rgb(79 41 115 / 25%);
    border-radius: 50px;
    background: #fff;
    color: #4f2973;
    font: inherit;
}

/* 404 + search results */
.ae-notfound, .ae-search {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 30px;
}

.ae-notfound h2, .ae-search h2 {
    margin: 6px 0 14px;
}

.ae-notfound > p, .ae-search > p {
    max-width: 640px;
    margin-bottom: 26px;
}

.ae-search-box {
    max-width: 560px;
    margin-bottom: 40px;
}

.ae-search-box .search-form {
    display: flex;
    gap: 8px;
}

.ae-search-box .search-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 22px;
    border: 1px solid rgb(79 41 115 / 25%);
    border-radius: 50px;
    background: #fff;
    font: inherit;
}

.ae-search-box .search-submit {
    height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 50px;
    background: #4f2973;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.ae-search-box .search-submit:hover {
    background: #69468a;
}

.ae-quick-links, .ae-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

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

.ae-quick-link, .ae-result {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 64px 24px 24px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(79 41 115 / 10%);
    color: #333;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ae-quick-link:hover, .ae-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgb(79 41 115 / 16%);
}

.ae-quick-link__title, .ae-result__title {
    color: #4f2973;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.ae-quick-link__text, .ae-result__text {
    font-size: 15px;
    line-height: 1.5;
}

.ae-result__type {
    color: #9e92b0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ae-quick-link__arrow, .ae-result::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e7e4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f2973' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.ae-search .navigation.pagination {
    margin-top: 10px;
}

@media (max-width: 991px) {
    .ae-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ae-results { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
    .ae-quick-links { grid-template-columns: 1fr; }
    .ae-search-box .search-submit { padding: 0 20px; }
}

/* Request an Appointment: office text numbers inside the "Text Your Office" card */
.ae-text-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.ae-text-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgb(79 41 115 / 12%);
}

.ae-text-list li::before {
    display: none;
}

.ae-text-list li:last-child {
    border-bottom: 0;
}

.ae-text-list a {
    font-weight: 600;
    white-space: nowrap;
}

/* nav settings print .gl-top-level current/hover colors inline — win on specificity */
@media (min-width: 992px) {
    .glacial-top-banner .gl-top-level > li:hover > a,
    .glacial-top-banner .gl-top-level > li.current-menu-item > a,
    .glacial-top-banner .gl-top-level > li.current-menu-ancestor > a,
    .glacial-top-banner .gl-top-level > li.current-page-ancestor > a {
        color: #4f2973;
        background-color: rgb(255 255 255 / 55%);
    }
}

.doctor-filter-controls button.dr-clear-btn {
    display: flex;
    width: max-content;
    margin: 14px auto 0;
}

/* Header call button: phone handset in the purple circle (was the generic arrow); rings on hover */
.button.nav .ae-call-icon {
    width: 18px;
    height: 18px;
    color: #fff;
    transform-origin: 50% 50%;
}

.button.nav:hover .ae-call-icon,
.button.nav:focus-visible .ae-call-icon {
    animation: ae-ring .6s ease-in-out;
}

@keyframes ae-ring {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-14deg); }
    40%, 80% { transform: rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
    .button.nav:hover .ae-call-icon, .button.nav:focus-visible .ae-call-icon { animation: none; }
}
