/* 
Theme Name: Oechsli Child Theme
Theme URI: https://oechsli.com
Description: Oechsli is a hybrid theme with block and elementor support 
Author: Oechsli
Author URI: https://oechsli.com/
Template: oechsli
Version: 2023.12.03
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
*/

/* Home */

.home .wp-block-cover.hero-img {margin-right: 3em; margin-bottom: -16em !important; z-index: 99}


/* Buttons */

.wp-block-button__link.wp-element-button {
	padding: 12px 30px; }

/* Navigation */

.nav-btn {border: solid 1px var(--wp--preset--color--palette-7) !important;}


/* Images With Backgrounds */

.image-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;  
  height: auto; 
  aspect-ratio: 1;  
  overflow: hidden; 
}

.image-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%; 
  width: auto;
  height: auto;
  object-fit: cover;  
}

.image-stack-front {
  z-index: 10;  
}

.image-stack-back {
  z-index: 5;   
}





/* Icon Background */

.icon-has-background {margin-right: -1.5em !important; z-index: 0 !important;}


/*** Popup ***/


.modal-content {box-shadow:none;}

.modal {left: auto;}

/*** Page Hero ***/

.wp-block-group.background-title {position: absolute; bottom: 0; left: 0; right: 0;}

.page-hero-content {z-index: 9;}

/*** Navigation ***/

.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container, .wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container, .wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container, .wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container 

{left: 0; right: auto;}




/* Mobile */