/*
Theme Name: Vitalic Theme KS TT5 fresh
Theme URI: 
Author: Karastudio
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitalic-theme-ks-tt5-fresh
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
/* a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
} */

/* Focus styles */
/* :where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
} */
:root {
	body {
		background-color: var(--wp--preset--color--black) ;
	}
}
::selection {
    background: var(--wp--preset--color--black);
    color: #fff;
}

::-moz-selection {
    background: var(--wp--preset--color--black);
    color: #fff;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.mp-scroll-x {
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden;
    will-change: transform;
}


.more-link {
	display: block;
}

/* Utility classes */
.is-relative {
	position: relative;
}

.is-absolute {
	position: absolute;
}

.is-absolute-top-left {
	position: absolute;
	top: 0;
	left: 0;
}

.is-absolute-top-right {
	position: absolute;
	top: 0;
	right: 0;
}

.is-absolute-bottom-left {
	position: absolute;
	bottom: 0;
	left: 0;
}

.is-absolute-bottom-right {
	position: absolute;
	bottom: 0;
	right: 0;
}

.is-absolute-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.is-hidden {
	display: none !important;
}

.is-inline-block {
	display: inline-block;
}

.is-block {
	display: block;
}



@media (max-width: 781px) {
	.is-hidden-mobile {
		display: none !important;
	}
}

@media (min-width: 782px) {
	.is-hidden-desktop {
		display: none !important;
	}
}


.discover-main-section {
	/* width: 100vw !important; */
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	height: 100vh !important;
	/* overflow: hidden !important; */
}

/* Hover big link */
.big-link {
  color: #e9e3e3;
  text-decoration: none;
  transition: color .25s ease;
}

.big-link:hover,
.big-link:focus-visible {
  color: var(--wp--preset--color--accent-1);
}


/* Cible header FSE + son wrapper sticky interne */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > header.wp-block-template-part .is-position-sticky{
  position: sticky;
  top: 0;
  z-index: 999;
  background: transparent !important;
  isolation: isolate;
}

.wp-site-blocks > header.wp-block-template-part::before,
.wp-site-blocks > header.wp-block-template-part .is-position-sticky::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

/* Empêche un bloc interne avec fond opaque de casser l'effet */
.wp-site-blocks > header.wp-block-template-part .wp-block-group,
.wp-site-blocks > header.wp-block-template-part .wp-block-navigation {
  background: transparent !important;
}

body.has-modal-open .wp-site-blocks > header.wp-block-template-part::before,
body.has-modal-open .wp-site-blocks > header.wp-block-template-part .is-position-sticky::before{
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}





