/*
Theme Name: Hulifer.net
Theme URI: https://hulifer.net
Author: Jakson
Author URI: https://hulifer.net
Description: Based on Starter Block Theme v0.4 B from Jakson, https://jakson.co/
Requires at least: 6.5
Tested up to: 6.7.1
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hulifer
Tags: block-patterns, full-site-editing
*/

/*  Smoot Scroll */
html {
	scroll-behavior: smooth;
}


/* Poistetaan oletusfocus, jos tarpeen */
*:focus {
	outline: none;
}

/* Määritellään uusi focus-tyyli elementeille */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus{
	outline: 1px dashed var(--wp--preset--color--hulifer-red);
	outline-offset: 2px;
}

::selection{
	background-color: var(--wp--preset--color--hulifer-red);
	color: white;
}


/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/*  Navigation Block Breakpoint. Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: block !important;
}

body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	display: none !important;
}

@media (min-width: 800px) {
	body .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none !important;
		;
	}

	body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block !important;
	}
}

/* Fixes for Core Weirdnress whereby auto padding is applied that can drive you a litle bit nuts - better to add your own when and where you need it! */
.has-global-padding>.alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid))> :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]), p, h1, h2, h3, h4, h5, h6, ul, ol) {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/*  Stop core margin top on groups and others */
.wp-block-group,
.wp-block-columns,
.wp-block-cover {
	/* margin-block-start: 0; */
}

/* Remove underlines / show on hover  */
a {
	text-decoration: none !important;
}

a:hover:not(.wp-block-site-title a, .wp-block-button__link.wp-element-button) {
	text-decoration: underline !important;
}

/* Search Button default: color */
.wp-block-search__button.wp-element-button {
	color: var(--wp--preset--color--base);
}


/* Button hover */
.wp-block-button__link {
	transition: .3s;
	display: flex;
	gap: 10px;
}

.wp-block-button__link:hover {
	opacity: .7;
}

/* ------- Hide the Page Title in the Editor - it can get anoying! ------- */
/* .editor-editor-canvas__post-title-wrapper.edit-post-visual-editor__post-title-wrapper.has-global-padding h1 {
	display: none;
} */

.site-header .logo{
	z-index:100;
}

.post-hero .wp-block-cover__image-background{
	filter: blur(4px);
}
.wp-block-query .category-guitar,
.wp-block-query .category-bass,
.wp-block-query .category-microphone{
	position:relative;
}
.wp-block-query .category-guitar::after,
.wp-block-query .category-bass::after,
.wp-block-query .category-microphone::after{
	content:"G";
	background-color: var(--wp--preset--color--hulifer-blue);
	font-family: Monospace;
	line-height:1;
	position:absolute;
	top: 4px;
	right:4px;
	width:1.75rem;
	height:1.75rem;
	color: white;
	border-radius:999px;
	display:flex;
	justify-content:center;
	align-items: center;
}
.wp-block-query .category-bass::after{
	content:"B";
	background-color: var(--wp--preset--color--hulifer-red);
}
.wp-block-query .category-microphone::after{
	content:"M";
	background-color: var(--wp--preset--color--hulifer-green);
}

.wp-block-query-pagination  .wp-block-query-pagination-numbers{
	display:flex;
	flex-direction: row;
	gap: 0.5rem;
}
.wp-block-query-pagination .page-numbers{
	width: 2rem!important;
	height:2rem!important;
	display:flex;
	justify-content:center;
	align-items: center;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .page-numbers.current{
	background-color: white;
}

.wp-block-navigation-item.current-menu-item a span {
	color: var(--wp--preset--color--primary);
}
.tag-sold .post-hero{
	position:relative;
}
.tag-sold .post-hero::after {
	content:"";
	position: absolute;
	top:5vw;
	width: 12rem;
	height:5rem;
	background-image: url(assets/img/sold.png);
	background-size:  contain;
	background-repeat: no-repeat;
	transform: translateX(-20vw) rotate(-15deg);
	opacity:0.7;
}

.lightbox-image-container{
	overflow:visible!important;
}
.lightbox-nav-arrows{
	position: absolute;
    top: 50%;
    left: -3rem;
    width: calc( 100% + 6rem);
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
	color: black;
	
	z-index: 10000000000;
	width:100%;
	left:0;
}

.lightbox-arrow{
	/* background: transparent; */
	border: none;
	font-size: 2rem;
	cursor: pointer;
	padding: 10px;
	background-color: var(--wp--preset--color--custom-light-gray)!important;
	height:3rem;
	width:3rem;
	display:flex;
	justify-content: center;
	align-items: center;
	opacity:0.5!important
}
.lightbox-arrow:hover{
	background-color:white!important;
}

.post-navigation-link-next{
	padding-right:1.5rem;
	position:relative;
}
.post-navigation-link-previous{
	padding-left:1.5rem;
	position:relative;
}

.post-navigation-link-next a::after{
	content:"";
	position:absolute;
	right:0;
	top:0.35rem;
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M9%2018L15%2012L9%206%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center right;
}

.post-navigation-link-previous a::after{
	content:"";
	position:absolute;
	left:0;
	top:0.35rem;
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M9%2018L15%2012L9%206%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center right;
	transform: scaleX(-1);
}

.post-hero .post-navigation-link-next a::after,
.post-hero .post-navigation-link-previous a::after{
	width: 32px;
	height: 32px;
	background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M9%2018L15%2012L9%206%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}


.link-element a::after {
	content: '';
	position:absolute;
	z-index: 10;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

.link-element figure,
.link-elemenet .wp-block-cover {
	overflow: hidden;
}

.link-element img {
	transition-timing-function: ease-in-out;
	transition-duration: 0.3s;
	transform: scale(1);
}

.link-element:hover img{
	transform: scale(1.1);
}