/*
Theme Name: Kaivopiha2
Theme URI: https://kaivopiha.fi/
Author: Kaivopiha
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 2.0.0
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kaivopiha
*/


/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body{
	font-feature-settings: "liga" 1,"onum" 1, "pnum" 1;
	letter-spacing: -0.01em;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.1s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--bold);
}

mark {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
	background-position: 0 85%;
	background-repeat: repeat-x;
	background-size: 100% 15%;
}


a[class="no_underline"] {text-decoration:none !important; border-bottom:none;}

body .link-no-ul, body .link-no-ul a{text-decoration:none!important;}


/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--neutral);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Blocks
---------------------------------------- */

/* -- Code -- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* -- Navigation -- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid currentColor;
	padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */


.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

figcaption{
	font-family: engravers, sans;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size:12px!important;
	line-height:1;
	margin-top:4px!important;
	opacity:.6;
}

/* Utility
---------------------------------------- */

img {
  -webkit-user-select: none;
  user-select: none;
}

/* -- Box Shadow -- */

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/*--Arrow styles--*/

.arrow a,
.arrow .wp-block-button__link{
	margin-right:0.75em;
	white-space: nowrap;
}

.arrow a:after,
.arrow .wp-block-button__link:after {
	content: "";
	border-style: solid;
	border-width: 0 1pt 1pt 0;
	display: inline-block;
	padding: 2pt;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	position: relative;
	top: -1pt;
	left: 0.5em;
}

.arrow-down a,
.arrow-down .wp-block-button__link{
	margin-right:0.75em;
	white-space: nowrap;
}

.arrow-down a:after,
.arrow-down .wp-block-button__link:after {
	content: "";
	border-style: solid;
	border-width: 0 1pt 1pt 0;
	display: inline-block;
	padding: 2pt;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	position: relative;
	top: -2pt;
	left: 0.5em;
}

.sc, .small-caps {font-variant: all-small-caps;}

.col-borders-light .wp-block-column,
.col-borders-dark .wp-block-column{
	border-width:0 0 0 1px; 
	border-style: solid; 
	padding-left:2%;
	padding-right:2%;
}
.col-borders-light .wp-block-column{
	border-color:rgba(255,255,255,0.2);
}

.col-borders-dark .wp-block-column{
	border-color:rgba(0,0,0,0.2);
}
.col-borders-light .wp-block-column:first-child,
.col-borders-dark .wp-block-column:first-child{
	border-left:0;
	padding-left:0;
}
.col-borders-light .wp-block-column:first-child,
.col-borders-dark .wp-block-column:first-child{
	border-left:0;
}


/* -- Engravers Gothic settings -- */

.has-engravers-font-family {
	text-transform: uppercase !important;
	letter-spacing: .08em !important;
}

.has-engravers-font-family{
	line-height: 1.1em;
}

/* -- inter Neo Settings -- */

body .has-interneo-font-family {
	letter-spacing: .02em !important;
	line-height: 1.2em!important;
}



/* -- Elements in rows that need to stay default size -- */

.no-shrink {
  flex-shrink: 0;
  min-width: 0; 
}


/* Modal settings for additional nac
---------------------------------------- */

/* -- Kaivopiha upper menu  -- */

.kp-upper-menu-desktop a{
	white-space: nowrap;
}

.kp-upper-menu-mobile .wp-block-cloudcatch-light-modal-block__wrapper {
align-items: flex-start;
background-color: rgba(0,0,0,.0);
height: 100%;
justify-content: left;
margin: 0;
position: absolute;
/* -- 
top: 0;
left:0;
width: 240pt;
-- */
}

.block-editor-iframe__body .kp-upper-menu-mobile .wp-block-cloudcatch-light-modal-block__wrapper{
	width:400pt;
}

.kp-upper-menu-mobile .wp-block-cloudcatch-light-modal-block {
max-height: calc(100svh - 64px);
position: relative;
top: 28pt;
left: 72pt;
width: calc(100% - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right) - 83pt);
max-width:280pt;
}


.kp-upper-menu-mobile .wp-block-navigation-item a{
	margin-right:0.5em;
	white-space: nowrap;
}

.kp-upper-menu-mobile .wp-block-navigation-item a:after{
	content: "";
	border-style: solid;
	border-width: 0 1pt 1pt 0;
	display: inline-block;
	padding: 2pt;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	position: relative;
	top: -.08em;
	left: 0.3em;
}


/* Media Queries
---------------------------------------- */

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

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}
	.mobile-crop img{
		width: 100%;
		height: 540px!important;
		object-fit: cover;
		object-position: center;
	}

}

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

	/* -- Columns -- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}
	.col-borders-light .wp-block-column,
	.col-borders-dark .wp-block-column{
		border-width:1px 0 0 0;  
		margin-top:1em;
		padding-top:1em;
		padding-left:0;
		padding-right:0;
	}
	.col-borders-light .wp-block-column:first-child,
	.col-borders-dark .wp-block-column:first-child{
		border-top:0;
		padding-top:0;
	}
	.col-borders-light,
	.col-borders-dark{
		padding-bottom:1em;
	}

}
@media only screen and (max-width: 481px) {
	
	/* -- Group -- */
	.group-mob-reverse {
		display: flex;
		flex-direction: column-reverse;
		}
	.group-mob-reverse > * {
		width:100%;
	}
	.img-larger img {
	max-width: 105%;
	margin-left: -2.5%;
	}
}
