/**
* Theme Name: Kanamori 2025 Child Theme 
* 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
*/


footer::after {
    content: "Kanamori Theme";
    display: block;
    color: #009B88;
    text-align: center; 
}

footer.twentyChild::after {
    color: #31586F;

}

.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;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-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-right: 0px;
    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: 0 0 0%;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    width: 160px;
    flex-basis: auto;
}
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;
}


