/**
* Theme Name: Kanamori 2025  
* Theme URI: https://ruadesign.org
* Author: Rua Design
* Author URI: https://ruadesign.org
* Description: A sub-theme for Wordpress Twenty Twenty themes
* Template: twentytwentyfive
* Tags: one-column, custom-colors, custom-menu, custom-logo
* Version: 1.1.0
*/ 

:root {
  --wp-admin-bar-height: 32px;
}
body:not(.admin-bar) {
  --wp-admin-bar-height: 0px; /* fix for admin bar offset when not logged in */
}
@media screen and (max-width: 782px) {
  :root {
    --wp-admin-bar-height: 46px;
  }
}
/* remove 2025 focus */
.wp-site-blocks :focus {
  outline-width: 0 !important;
  outline-style: none !important;
}
a:where(:not(.wp-element-button)) {
  text-decoration: none;
  color: var(--wp--preset--color--custom-accent-1);
}
a:where(:not(.wp-element-button)):hover {
  text-decoration: underline
}
h1.wp-block-post-title::after {
  display: block;
  margin-top: -20px;
  color: var(--wp--preset--color--custom-accent-1);
  content: "___";
}

/* gallery */
.entry-content > figure.wp-block-gallery.has-nested-images {
  border-bottom: 1px dashed var(--wp--preset--color--custom-accent-4);
  margin-bottom: 2em;
}
.entry-content > figure.wp-block-gallery.has-nested-images:last-of-type {
  border: none;
}
.wp-caption-text, .wp-caption p.wp-caption-text {
  padding: 2px 22px 5px;
}
.gallery-item {
  position: relative;
}
.wp-caption-text, .wp-caption p.wp-caption-text {
  width: 65.5%;
  position: absolute;
  bottom: 0;
  margin: 0px 24px 10px;
  left: 25px;
  height: 21px;
  padding: 6px 10px 10px 10px;
  text-align: center;
  font-size: x-small;
  line-height: 1.4em;
  color: #fff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#bb000000, endColorstr=#bb000000)";
  overflow: hidden;
}
/* Customize WP - gallery */
.wp-block-gallery {
  margin-left: 50px;
  margin-top: 15px;
  margin-right: -28px;
}
.wp-block-gallery .blocks-gallery-item {
  flex-grow: 0;
}
.wp-block-gallery.is-cropped .blocks-gallery-item img {
  height: unset;
  width: 100%;
}
.wp-block-gallery .blocks-gallery-item figure {
  display: block;
}
.wp-block-gallery.columns-4 .blocks-gallery-item {
  margin-right: 1px;
  margin-bottom: 20px;
  margin-top: 20px;
}
/*.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
  bottom: 0px;
  width: 140px;
  left: 6px;
}
*/
@media screen and (max-width: 660px) {
  body #gallery-1 .gallery-item {
    float: none;
    width: 100%;
    margin-bottom: 30px;
  }
}
figure.wp-block-gallery.wp-block-gallery-is-layout-flex {
  padding: 0rem;
  gap: 4%;
  justify-content: space-evenly;
  margin-left: 2%;
  margin-right: 2%;
  align-items: flex-start;
}
.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
  width: 22%;
  height: unset;
  margin-bottom: 4%;
  aspect-ratio: 1 / 1;
}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
  width: 100%;
  height: unset;
  margin-bottom: 4%;
  aspect-ratio: 1 / 1;
  flex: unset;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  flex-basis: auto;
  font-size: .9rem;
}
div figure .wp-block-gallery.is-cropped .blocks-gallery-item img, div figure .gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img {
  height: 100%;
  width: 100%;
}
.post img {
  padding: 0px;
  border: 0px;
  background-color: #f3f3f3;
  -moz-border-radius: 0px;
  -khtml-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
}
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption, .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  background: transparent;
  text-shadow: unset;
  color: black;
  position: static;
}
.wp-block-gallery.has-nested-images figure.wp-block-image img, .kanamori-shadow img {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  padding: 10px;
  background-color: white;
  box-sizing: border-box;
}
@media screen and (max-width: 781px) {
  .hide-mobile {
    display: none
  }
}
/* navigation */
.main-nav a:where(:not(.wp-element-button)):hover {
  text-decoration: none;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  border: none;
}
.main-nav ul ul, .main-nav ul ul ul {
  margin-left: .8em
}
.main-nav ul li {
  border-bottom: 1px dashed var(--wp--preset--color--custom-accent-4);
  width: 90%;
  padding: 7px 0
}
.main-nav ul li ul li:last-child {
  border-bottom: none
}
.bamboo {
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 1) 100%), url(/wp-content/themes/kanamori/assets/images/bamboo-detail.png);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: calc(100vh - var(--wp-admin-bar-height));
}
@media screen and (max-width: 1184px) {
  .bamboo {
    display: none
  }
}
/* Force 3rd-level submenus to behave like 2nd-level (open below, not sideways) */
@media (min-width: 782px) {
  .sidebar-group {
	height: calc(100vh - var(--wp-admin-bar-height));
	overflow-y:scroll;
	overflow-x: hidden;
	scrollbar-width: thin
   }
  .main-nav {
    box-sizing: border-box;
    min-width: 240px;
  }
  .main-nav ul li::before {
    display: inline-block;
    content: " ";
    width: 10px;
    margin-right: .5em;
    opacity: 0;
    -webkit-transition: opacity .6s ease;
    -moz-transition: opacity .6s ease;
    -ms-transition: opacity .6s ease;
    -o-transition: opacity .6s ease;
    transition: opacity .6s ease-out;
  }
  .main-nav ul li:hover::before {
    content: "\2022";
    color: var(--wp--preset--color--custom-accent-1);
    opacity: 1
  }
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    left: 0 !important;
    box-sizing: border-box;
    padding: 6px 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  }
  /* Reset 3rd-level positioning */
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container, .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    background-color: #ffffff;
     width: 100%;
  }
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    left: 0 !important;
    top: 110% !important;
    /* Keep vertical stacking */
    flex-direction: column;
  }
  /* Fix width & alignment */
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item {
    width: 100%;
  }
  /* Remove the "flyout hover bridge" / maybe not needed? */
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container::before {
    display: none;
  }
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
    margin-left: -4em
  }
  /* Fix arrow rotation so it points down like level 2 */
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg {
    transform: rotate(0deg);
  }
  /* and up when selected */
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle[aria-expanded=true] + .wp-block-navigation__submenu-icon > svg, .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle[aria-expanded=true] > svg {
    transform: rotate(180deg)
  }
  /* Remove extra padding from ALL submenu links */
  .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 0 !important;
    line-height: inherit;
  }
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
  .wp-block-column.cherry {
    background-image: url(/wp-content/themes/kanamori/assets/images/cherry-flowers.png);
    background-repeat: no-repeat;
    background-position-x: right;
    background-size: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
/* Disable hover/focus opening for ALL submenu levels */
.wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation__submenu-container,
.wp-block-navigation .wp-block-navigation-item:focus-within .wp-block-navigation__submenu-container {
  display: none;
}
/* Hide submenus by default */
.wp-block-navigation__submenu-container {
  display: none;
}
.wp-block-navigation-item.is-open > .wp-block-navigation__submenu-container {
  display: block;
}
.wp-block-navigation__submenu-icon {
  cursor: pointer;
}

/* new navigation menu breakpoint */
@media (max-width:781px) {
  .wp-block-navigation__responsive-container-open {
    display: block;
  }
  .wp-block-navigation__responsive-container {
    display: none;
  }
  .wp-block-navigation__responsive-container.is-menu-open {
    display: block;
  }
  /* Hide desktop menu */
  .wp-block-navigation__container {
    display: none;
  }
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block;
    margin-right: 1em
  }
  .wp-block-group.header-stack {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
	flex-wrap: nowrap;
  }
  .wp-block-group.logo-title {
	flex-wrap: nowrap
   }
}
@media (min-width: 1310px) {
  .main-nav {
    min-width: 280px;
  }
}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image.placeholder_image:not(#individual-image) img,
.placeholder_image img { box-shadow: none; }

body .wp-lightbox-overlay {
  background-color: transparent;
  transition: background-color 500ms ease-out;
}

body .wp-lightbox-overlay.active {
  background-color:rgba(5,5,5,0.85);

}


.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { object-fit: contain; }


.lightbox-image-container:nth-child(3) img[style] { object-fit: contain !important; }
.wp-lightbox-overlay.zoom.active .lightbox-image-container:nth-child(2) img { display: none; }

.wp-block-navigation-item.has-child.open-on-hover-click:hover ul { display: block; } 
.prevNextBtn {
  position: absolute;
  right: -1px;
  top: 49%;
  color: white;
  background-color: gray;
  padding: 2px 10px;
	cursor: pointer;
	z-index: 2100000;
}