/*
 Theme Name:   pixalero
 Theme URI:    https://pixalero.se
 Description:  
 Author:       Pixalero
 Author URI:   https://pixalero.se
 Template:     generatepress
 Version:      1.0
*/

/* ----- TABLE OF CONTENT ----- */

/* Accessibility styling */
:focus {
	outline: 2px solid lightblue;
	outline-offset: 2px;
}

/* THEME TWEEKS */
.site-header {
  background-color: #f7f6ed !important;
  padding-left: 1em;
  padding-right: 1em;
  position: relative;
  z-index: 10;
}
.inside-header {
  padding: 16px 8px 16px 8px;
  border-bottom: 1px solid #c1d1b1;
}
.menu-toggle {
  line-height: 60px;
  font-weight: 400;
  text-transform: none;
  font-size: 24px;
  cursor: pointer;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]) > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a{
	font-weight: 500;
}
/* Body background color outside wrapper */
body {
	background-color: #F7F6ED;
}
/* Site wrapper */

#main {
	min-height: 65vh;
} 

/* Strech link for expanding link to outer container */ 
.stretch-link{
	position: relative;
}

.stretch-link a::after{
	content: '';
	position: absolute;
	inset: 0;
}

.stretch-link a:is(:focus-visible)::after{
	outline: 2px solid;
}

.stretch-link a:is(:hover, :focus){
	outline: none;
}
/* Hero background video */
.background-video {
    position: absolute;
    opacity: 1;
}
video[poster] {
    object-fit: cover;
    width: 100%;
    height: 100%;
} 

.hero-video-container {
  position: relative;
  overflow: hidden;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-toggle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform 0.2s ease, background 0.2s ease;
}

.video-toggle:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}
.video-toggle {
	opacity: 0.5;
}
.video-toggle:hover {
	opacity: 1;
}
/* Icon box */
.video-toggle .icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

/* Two-bar PAUSE */
.video-toggle .icon.pause::before,
.video-toggle .icon.pause::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 16px;
  background: #fff;
  border-radius: 2px;
}

.video-toggle .icon.pause::before { left: 2px; }
.video-toggle .icon.pause::after  { right: 2px; }

/* PLAY */
.video-toggle .icon.play::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* Button base */
.video-toggle {
    position: absolute;
    bottom: 24px;
    left: 24px;

    width: 52px;
    height: 52px;

    border-radius: 50%;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: all 0.3s ease;
}

.video-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* SVG styling */
.video-toggle svg {
    fill: white;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hide play by default */
.play-icon {
    opacity: 0;
    transform: scale(0.8);
}

/* When paused */
.video-toggle.is-paused .pause-icon {
    opacity: 0;
    transform: scale(0.8);
}

.video-toggle.is-paused .play-icon {
    opacity: 1;
    transform: scale(1);
}

/* Smooth fade */
.pause-icon,
.play-icon {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
/* UTILITIES */

/* Line limits */
.line-limit-3, .line-limit-2{
	display: -webkit-box;
	-webkit-box-orient; vertical;
	overflow: hidden;
}

.line-limit-3 {
	-webkit-line-clamp: 3;
}
.line-limit-2 {
	-webkit-line-clamp: 2;
}

/* VISUALLY HIDDEN */
.visually-hidden:not(:focus)not(:active) {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* TRANSITION */

.transition {
	transition: all .25 ease-in-out;
}

/* GP MENU ACCESSIBILIY TWEEK */

#site-navigation ul.sub-menu {
	display:block;
}

#site-navigation li:hover .gp-icon svg {
	transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu {
	visibility: visible;
}
/* TYPOGRAPHY */

.gb-text a:link {
	text-decoration: underline;
}
.gb-loop-item .gb-text a:link {
	text-decoration: none;
}

.wp-block-quote p {
	font-size: 1.2rem;
	line-height: 1.8rem;
}
blockquote {
  border-left: 5px solid var(--surface-20);align-content;
	padding: 16px;
  	font-size: 1.2rem;
  	font-style: italic;
  	margin: 0 0 1.5em;
  	position: relative;
}
/* TEXT  */
p:last-child:last-of-type {
	margin-bottom: 0px;
}
/* Block separator */
.wp-block-separator {
  border: none;
    border-top-width: medium;
    border-top-style: none;
    border-top-color: currentcolor;
  border-top: 1px solid var(--surface-20);
}
/* Loop template item bottom border */
.is-loop-template-item:not(:last-child) {
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}
/* HIDE STUFF */
.gform_required_legend {
  display: none;
}

@media (max-width: 768px) {
	/* CSS in here for mobile only */

}
@media (min-width: 769px) and (max-width: 1024px) {
    /* CSS in here for tablet only */

}
@media (min-width: 1025px) {
    /* CSS in here for desktop only */

}