/*
Theme Name: Kihy27
Theme URI: 
Author: Kalle Kemilä
Author URI: 
Description: 
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ollie
Text Domain: kihy27
Tags: 
*/


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

@media (max-width: 781px) {
  .nav-row {
    flex-direction: row-reverse;
  }
}


.wp-block-navigation__responsive-container:not(.is-menu-open) .oireet ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  width: auto; /* Or a fixed width like 450px to accommodate two columns */
  min-width: 400px !important;
    align-items:flex-start;

}

.wp-block-navigation__responsive-container:not(.is-menu-open) .oireet .wp-block-navigation__submenu-container {

  width: auto; /* Or a fixed width like 450px to accommodate two columns */
  min-width: 400px !important;
}

.aspect-child-1-1 > * {
      display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    height: auto;      /* Let aspect-ratio define height */
    flex-shrink: 0;    /* Prevent Safari from squishing the item */
    min-height: 0;     /* Ensure content doesn't force height */
}

.aspect-child-1-1 .icon-container svg {
    width: 100%;
    height: auto;
    max-height: 100%;
}




.wp-block-list.is-style-arrow {
	list-style: none;
	padding-inline-start: 0;
}

.wp-block-list.is-style-arrow li {
	list-style: none;
	position: relative;
	padding-inline-start: 1.75rem;
}

.wp-block-list.is-style-arrow li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .4em;
	width: .8em;
	height: .8em;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='m6 1 6 7-6 7-2-1.713L8.532 8 4 2.713z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='m6 1 6 7-6 7-2-1.713L8.532 8 4 2.713z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}


#vello-booking {
    display: block;
    transition: height .25s .25s
}


.kihy-hero {
    overflow: hidden;
    position: relative
}

.kihy-scatter {
    position: relative;
    height: 640px;
    margin: 0
}

.kihy-scatter .kihy-sc {
    position: absolute;
    margin: 0
}

.kihy-scatter .kihy-sc img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kihy-sc.s1 {
    left: 0;
    top: 170px;
    width: 240px;
    height: 290px
}

.kihy-sc.s2 {
    left: 150px;
    top: -30px;
    width: 270px;
    height: 320px
}

.kihy-sc.s3 {
    left: 300px;
    top: 250px;
    width: 280px;
    height: 330px
}

.kihy-sc.s4 {
    left: 470px;
    top: 20px;
    width: 230px;
    height: 270px
}

.kihy-sc.s5 {
    left: 130px;
    top: 400px;
    width: 230px;
    height: 270px
}

@media(max-width:781px) {
    .kihy-scatter {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px
    }

    .kihy-scatter .kihy-sc {
        position: static;
        width: auto;
        height: 220px
    }
}

.kihy-map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    flex-grow:1;
}

section.entry-content > *:first-child,
header + main .entry-content > *:first-child {
    padding-top:12rem !important;
}

.kihy-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem
}

.kihy-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .9rem;
    border-radius: 100rem;
    background: #eaf9fa;
    color: #0a2046;
    font-size: .9rem;
    font-weight: 700
}

.wp-block-button__link-icon {
    transition: transform .3s ease;
}

.animate .wp-block-button-link:hover .wp-block-button__link-icon,
.animate .wp-block-button__link:hover .wp-block-button__link-icon {
    transform: translateX(4px);
}

.service-cloud > * {
    margin-block-start:0;
}