/* 
Theme Name: Oechsli Child andPartners
Theme URI: https://oechsli.com
Description: Oechsli Partners Theme
Author: Oechsli
Author URI: https://oechsli.com/
Template: oechsli
Version: 2024.01.15
Text Domain: oechsli
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.slider-container { border-radius:80px 0 80px 0; }

.my-cover.wp-block-cover .wp-block-cover__image-background  { object-fit: contain; }





/*
These are to style the home page hero for tablet and mobile
*/
@media (max-width: 768px) {
    .ol_home_hero .wp-block-columns {
		flex-wrap: unset !important;
	}
}
@media (max-width: 425px) {
    .hide-only-on-mobile {
        display: none;
    }
}


.mobile-icon svg path { fill:#fff; }


.masonry-column { padding-top:4em;  }

.team_title { font-weight:600; }

.site-navigation.wp-block-navigation.wp-block-navigation > ul > li.wp-block-navigation-item a { border-radius:0; }
.site-navigation.wp-block-navigation > ul > li.wp-block-navigation-item a {
    transition: background 0.3s ease, color 0.5s ease;
}

.site-navigation.wp-block-navigation  > ul > li.wp-block-navigation-item:hover a {  background: var(--wp--preset--color--palette-1); }
.site-navigation.wp-block-navigation > ul > li.wp-block-navigation-item:hover > .wp-block-navigation-item__content { color: var(--wp--preset--color--palette-9); }

@media only screen and (max-width: 768px) {

    .site-logo img { width:180px !important;  }
    body nav.site-navigation:not(.is-responsive) {
        top: 120px;
    }

    .hero-grid img { border-width:2px !important }
    .hero-headline { text-align: center !important; }
    .xxhero-stack, .xxhero-tree-stack, .xxstack { min-height:auto !important; }

    .wp-block-group[style*="min-height"] { min-height:auto !important; }

    .hero-tree-text { font-size:18px !important; }

    .site-cta { background-size:100% !important;background-repeat:no-repeat; }

    .mobile-text-center { text-align:center; }

    .masonry-column { padding-top:0;  }

   .site-cta-headline {  justify-content: center;align-items: center;text-align:center; }
      .site-cta-headline img { text-align:center; }
   .site-cta-headline h2, .site-cta-headline p { text-align:center; }
   .site-cta-buttons { justify-content:center; }



}



@media only screen and (min-width: 768px) {

.center-last-row {
  grid-template-columns: repeat(6, 1fr);
}

.center-last-row .wp-block-post {
  grid-column: span 2;
}

/* Dealing with 2 orphan items */

.center-last-row .wp-block-post:last-child:nth-child(3n - 1) {
  grid-column-end: -2;
}

.center-last-row .wp-block-post:nth-last-child(2):nth-child(3n + 1) {
  grid-column-end: 4;
}

/* Dealing with single orphan */

.center-last-row .wp-block-post:last-child:nth-child(3n - 2) {
  grid-column-end: 5;
}


}


.hide { display:none; }