/*
Theme Name: KS Telluride
Theme URI: 
Author: KickStart Dental Marketing
Author URI: https://kickstartdental.com
Description: A dental block theme by KickStart Dental Marketing.
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kstelluride
Tags: full-site-editing
*/

/*
--------------------------------------------- */

/* Extend responsive layouts to 959px (default is max 781px) */
@media (max-width: 959px) {

    /* Extend responsive column layouts to 959px (default is max 781px) */
    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Extend responsive query loop > post template grid layouts to 959px (default is max 599px) */
    .wp-block-post-template li {
        width: 100% !important;
    }
}

/* Query Loop Grid
--------------------------------------------- */

/* Make query loop post template grid layouts more responsive using 'auto-fit', exclude team grid */
.wp-block-query:not(.team-grid) .wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* Add 'auto-fit' to footer grid */
.wp-block-query.footer-location-grid .wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Primary Navigation
--------------------------------------------- */

/* Adjust styling to submenu dropdown container */
header .wp-block-navigation .wp-block-navigation__submenu-container {
    padding: var(--wp--preset--spacing--20);
    @media (min-width: 600px) {    
        box-shadow: var(--wp--preset--shadow--small);
    }    
}

/* Remove padding-right on navigations items with children */
header .wp-block-navigation .wp-block-navigation__container .has-child > a {
    padding-right: 8px;
}

/* Remove underline on Primary Nav link hover */
header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item a {
    &:hover {
        text-decoration: none;
    }
}

/* Add hover transition to submenu links */
header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item {
    transition: all 0.25s ease-out;
    @media (min-width: 600px) {
        &:hover {
            transform: translateY(-4px);
        }
    }
}

/* Add hover transition to submenu links */
header .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    transition: all 0.25s ease-out;
    @media (min-width: 600px) {
        &:hover {
            transform: translateX(4px);
        }
    }
}

/* Fix submenu not fitting content */
header .wp-block-navigation__submenu-container {
    width: max-content !important;
}

.main-nav {
    box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.05);
}

/* Homepage Hero
--------------------------------------------- */

@media (max-width: 1279px) {

    /* Extend responsive column layouts to 1279px (default is max 781px) */
    .wp-block-columns:is(.home-hero) {
        flex-wrap: wrap !important;
    }

    .wp-block-columns:is(.home-hero) .wp-block-column {
        flex-basis: 100% !important;
    }
}

.cover-multiply > img {
    mix-blend-mode: multiply;
}

.hero-col-img {
    display: flex;
    align-items: center;
    @media (max-width: 1279px) {
        padding: 0 !important;
    }
}

.hero-col-img > .is-style-group-overlap-left {
    @media (min-width: 960px) {
        position: relative;
        z-index: 9;
        margin-left: calc(var(--wp--preset--spacing--50) * -1) !important;
    }
}

.home-hero-content {
    @media (max-width: 1279px) {
        padding-right: var(--wp--preset--spacing--30) !important;
        padding-left: var(--wp--preset--spacing--30) !important;
    }
}

/* Inner Hero
--------------------------------------------- */

.hero-inner {
    overflow: visible;
}

/* Read More Link
--------------------------------------------- */

.wp-block-read-more {
    transition: all 0.25s ease-out;
    &:hover {
        text-decoration: underline;
    }
}

/* Hover Cards
--------------------------------------------- */

.hover-card {
    position: relative;
    transition: all 0.25s ease-out;
    &:hover {
        transform: translateY(calc(var(--wp--preset--spacing--10) * -1));
        box-shadow: var(--wp--preset--shadow--large);
    }
}

/* Remove duotone filter from featured image on hover */
/* .hover-card:hover .wp-duotone-grayscale.wp-block-post-featured-image img {
    filter: none;
} */

/* Remove overlay from featured image on hover */
.hover-card:hover .has-custom-secondary-gradient-background {
    opacity: 0;
}

.hover-card .has-custom-secondary-gradient-background {
    transition: all 0.25s ease-out;
}

/* Make group card (group block) clickable - Remove this when clickable group blocks are in core! */
.hover-card a:after {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: '';
}

.hover-card a:hover {
    text-decoration: none;
}

.hover-card .service-title-container {
    position: relative;
}

.hover-card .service-icon-container {
    position: absolute;
    top: -48px;
    right: var(--wp--preset--spacing--20);
}

.service-icon {
    filter: invert(100%);
}

/* Template Parts
--------------------------------------------- */

/* Remove margin-top from template part containers */
.wp-block-template-part {
    margin-top: 0 !important;
}

/* Footer
--------------------------------------------- */

.footer-map {
    margin-bottom: -9px;
}

/* Custom Block Types
--------------------------------------------- */

.location-title-heading h3,
.location-address p,
.location-phone p,
.location-email p,
.location-map p,
.location-hours p,
.team-job-title p,
.special-reduced-price p,
.special-original-price p,
.special-amount-off p,
.service-area-title p,
.service-title p,
.service-title-heading h3 {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.service-area-title p {
    text-align: center;
}

.special-price {
    font-size: var(--wp--preset--font-size--large);
    font-family: var(--wp--preset--font-family--headings);
    line-height: 1.6;
}

.special-details ul {
    list-style-type: disc;
}

.special-terms {
    font-size: 12px;
}

/* Misc
--------------------------------------------- */

.is-style-image-shadow {
    box-shadow: var(--wp--preset--shadow--large);
}

/* Remove line-height added when logo "link image to home" is enabled */
.custom-logo-link {
    line-height: 0;
}

.img-square {
	aspect-ratio: 1;
}

.img-3-4 {
	aspect-ratio: 3 / 4 !important;
}

.img-2-3 {
	aspect-ratio: 2 / 3 !important;
}

.img-16-9 {
	aspect-ratio: 16 / 9 !important;
}

iframe {
	display: block !important;
}

.mask {
    overflow: hidden;
}

.alpha-10 {
    opacity: 0.1;
}

summary::marker {
    color: var(--wp--preset--color--secondary);
}

.text-center {
    text-align: center !important;
}

.cover-spacer {
    height: 100%;
}

@media (max-width: 959px) {
    .cover-spacer {
        height: 100% !important;
    }
}

.wp-block-cover:has(.is-style-group-overlap-bottom) {
    overflow: visible;
}

.col-block {
    display: block;
}

.service-area-list {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.service-area-list > li {
    margin-block-start: 0 !important;
}

.no-border {
    @media (max-width: 959px) {
        border: none;
    }
}

@media (max-width: 599px) {
    h1, h2, h3 {
        letter-spacing: .125rem;
    }
}

.hero-inner-cta {
    @media (max-width: 959px) {
        margin-top: var(--wp--preset--spacing--20) !important;
    }
}