/*
Theme Name: Vuokrakaluste Teema
Description: Vuokrakaluste Teema 2023
Author: BriiffiGround Oy & Web-kehitys Miikka Asukas
Theme URI: https://briiffiground.fi/
Author URI: https://miikka-asukas.fi
Version: 1.0
-----------------------------------------------------------------------------*/

*, *::before, *::after {

	box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, header, section, figcaption, footer, blockquote {

	margin: 0;
	padding: 0;
}

ul, ol {

	list-style: none;
}

b, strong {

	font-weight: 600;
}

html {

  --dark: #040403;
  --light: #fff;
  --pink: #E6007E;
  --purple: #542680;
  --content-width: 87.5rem;
}

html, body {

	scroll-behavior: smooth;
}

body {

	-ms-touch-action: manipulation;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	text-rendering: optimizeSpeed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1;
	font-size: 16px;
	background: var(--light);
	color: var(--dark);
  font-family: "montserrat", -apple-system, BlinkMacSystemFont,  sans-serif;
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, h4, h5 {

  font-weight: bold;
  font-style: normal;
}

::selection {

  background: rgba(229, 19, 134, 0.8);
  color: var(--light);
}

::-moz-selection {

	background: rgba(229, 19, 134, 0.8);
  color: var(--light);
}

img {

	display: block;
	max-width: 100%;
}

a {

	color: inherit;
	text-decoration: none;
}

p {

  font-size: 1rem;
}

.sr_only {

  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Button */

button, a.button {

	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
  margin: 0;
	padding: 0;
  width: auto;
	overflow: visible;
	outline: none;
	font-family: inherit;
  font-size: 1rem;
	cursor: pointer;
	user-select: none;
  border: none;
  box-shadow: none;
	background: none;
}

button.button, a.button {

	font-weight: bold;
  line-height: 1.1875;
	padding: 0.875rem calc(3.5rem + 34px) 0.875rem 2rem;
  border-radius: 2rem;
  border: none;
	background: var(--pink);
	color: var(--light);
  text-align: center;
  transition: 0.2s linear all;
  box-shadow: none;
}

button.button.plain {

	padding: 0.875rem 2rem;
}

button.button.dark, a.button.dark {

	background: var(--purple);
}

button.arrow {

	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
}

button.arrow:disabled svg circle {

	fill: var(--pink);
}

button.arrow:disabled path {

	fill: var(--light);
}

button.arrow svg circle {

	fill: var(--light);
}

button.arrow path {

	fill: var(--pink);
}

button.button:not(.plain):after, a.button:after {

  position: absolute;
  top: 6px;
  right: 0.5rem;
  content: "";
  width: 2.125rem;
  height: 2.125rem;
  background-image: url(images/button_arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  transition: 0.2s linear all;
}

button.button.white, a.button.white {

	color: var(--dark);
	background: var(--light);
}

button.button.white:after, a.button.white:after {

  background-image: url(images/button_arrow_2.svg);
}

button.button.dark:after, a.button.dark:after {

  background-image: url(images/button_link.svg);
}

button::-moz-focus-inner {

  border: 0;
  padding: 0;
}

@media screen and (pointer: fine) {

  button.button:hover, a.button:hover {

    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
  }

  button.button:hover:after, a.button:hover:after {

    transform: rotate(45deg);
  }

	button.arrow:hover svg circle {

		fill: var(--pink);
	}

	button.arrow:hover path {

		fill: var(--light);
	}

	a[href^="tel:"]:hover, a[href^="mailto:"]:hover {

		text-decoration: underline;
	}
}

@media screen and (max-width: 20rem) {

	button.button, a.button {

		padding: 0.875rem calc(1.5rem + 34px) 0.875rem 1rem;
	}
}

/* Loader */

button.loading {

	pointer-events: none;
	color: transparent;
}

button.loading:after {

  border: 0.3rem solid var(--light);
  border-top: 0.3rem solid var(--pink);
  border-radius: 50%;
	background: none !important;
  animation: spin 1s linear infinite;
	transition: none !important;
}

@keyframes spin {

  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Menu */

.menu {

  display: none;
	border: none;
	width: 2.375rem;
	height: 1.7rem;
	z-index: 4;
  min-width: 0;
	background-color: transparent;
	background: linear-gradient(var(--dark) 0, var(--dark) 100%);
  background-size: 100% 4px;
	background-position: center center;
	background-repeat: no-repeat;
	transition: all .1s 0s;
	transform-origin: center center;
	z-index: 3;
  box-sizing: content-box;
	padding: 0;
}

.menu:before, .menu:after {

  content: "";
	position: absolute;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100%;
	height: 4px;
	background: var(--dark);
	transition: .2s all ease;
	transform-origin: center center;
	will-change: transform, color, top;
}

.menu:before {

	top: 0;
}

.menu:after {

	bottom: 0;
}

.menu.open {

  background-size: 100% 0;
  transition: none;
}

.menu.open:before, .menu.open:after {

  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: .2s all ease-out;
  background: var(--pink);
}

.menu.open:before {

  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Nav */

.header {

  position: sticky;
	top: 0;
  background: var(--light);
	z-index: 2;
}

.header .inner {

  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: var(--content-width);
  margin: 0 auto;
  box-sizing: content-box;
  padding: 1rem;
	gap: 4rem;
}

.header .logo {

	display: block;
  max-width: 110px;
	margin: 0 auto 0 0;
}

.header .nav {

  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.header .nav li {

  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.header .nav li.mobile {

	display: none;
}

.header .nav li a {

  display: block;
}

.header .nav li.selected > a {

  font-weight: bold;
}

.header .nav li.selected:before {

  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.25rem;
  height: 3px;
  background: var(--pink);
}

.header .nav li > a {

	font-size: clamp(0.875rem, 1vw, 1rem);
	white-space: nowrap;
}

.header .nav li.children > a:after {

  content: "";
	display: inline-block;
  width: 6px;
  height: 10px;
  background: url(images/arrow.svg);
  margin-left: 0.5rem;
  transform-origin: center center;
  transition: 0.3s ease all;
}

.header .nav li ul {

  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background: var(--light);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease all;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.16);
  transform: translateY(0.5rem);

}

.header .nav li ul li {

  padding: 0;
}

.header .nav li ul li a {

  line-height: 1.5625;
  padding: 0.625rem 1rem;
  width: 100%;
}

.header .nav li ul li.selected {

  color: var(--light);
  background: var(--pink);
  font-weight: normal;
}

.header.nav li ul li:before,
.header.nav li ul li:after {

  content: none !important;
}

.header .nav li ul li ul {

  top: 0;
  left: 100%;
  background: var(--light);
  transform: translateY(0);
	opacity: 0;
  visibility: hidden;
}

.header .nav li ul li ul li a {

	color: var(--dark);
}

.header .nav li .toggle {

  display: none;
	background-color: transparent;
  background-image: url(images/plus.svg);
  background-position: right 1rem center;
  background-size: 1.1875rem;
  background-repeat: no-repeat;
  padding: 1.5rem 2.5rem;
  margin: 0;
	transition: none;
  border-radius: 0;
}

.header .nav li .toggle.open {

  background-image: url(images/minus.svg);
}

@media screen and (pointer: fine) and (min-width: 73.75rem) {

  .header .nav li:hover:after {

    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1.25rem;
    height: 3px;
    background: var(--pink);
  }

  .header .nav li ul li:hover {

    color: var(--light);
    background: var(--pink);
  }

  .header .nav li:hover > ul,
  .header .nav li:hover > ul li:hover > ul {

      opacity: 1;
      visibility: visible;
  }

	.header .nav li:hover > ul li:hover > ul li:hover a {

		color: var(--light);
	}

  .header .nav li.children:hover > a:after {

    transform: rotate(90deg);
  }

	.header .nav li.children:hover > ul li:hover > a:after {

		transform: rotate(0);
	}
}

@media screen and (max-width: 73.75rem) {

  .menu {

    display: block;
  }

	.header .nav li.mobile {

    display: block;
		padding: 1rem;
  }


	.header a.button.dark {

		display: none;
	}

	.header .nav li.mobile a.button.dark {

		display: inline-block;
	}

  .header .nav {

    display: grid;
    grid-template-columns: 1fr;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0;
    background: var(--light);
		color: var(--dark);
    opacity: 0;
    visibility: hidden;
		pointer-events: none;
		gap: 0;
	  box-shadow: 0px 6px 6px 0 rgba(0, 0, 0, 0.16);
    z-index: 2;
  }

  .header .nav li ul {

    flex: 1 1 100%;
    display: none;
    grid-template-columns: 1fr;
    position: static;
    opacity: 0;
    transition: none;
    background: transparent;
    padding: 0;
    white-space: normal;
    visibility: visible;
		box-shadow: none;
  }

  .header .nav li.selected:before {

    content: none;
  }

  .header .menu.open + .nav {

    opacity: 1;
    visibility: visible;
		pointer-events: auto;
  }

	.header .nav li > a {

		font-size: inherit;
		white-space: normal;
	}

  .header .nav li ul {

    transform: none;
  }

  .header .nav li,
  .header .nav li ul li {

    padding: 0;
    flex-flow: row wrap;
		align-items: stretch;
    justify-content: space-between;
  }

	.header .nav li a:not(.button) {

    flex: 1;
    opacity: 0;
    transform: translateX(-2.5rem);
    padding: 1rem;
  }

  .header .nav li ul li a:not(.button) {

    padding-left: 2rem;
  }

  .header .nav > li > a:before,
  .header .nav > li.children > a:after {

    content: none;
  }

  .header .nav li ul li:last-child {

    padding: inherit;
    border-bottom: none;
  }

	.header .nav > li:has(.toggle.open) > a,
	.header .nav > li:has(.toggle.open) > button.toggle,
	.header .nav > li:has(.toggle.open) a.selected {

		background-color: rgba(0, 0, 0, 0.05);
	}

  .header .nav > li.selected:before,
	.header .nav > li:has(.toggle.open) > a:before,
	.header .nav > li:has(.toggle.open) a.selected:before {

		position: absolute;
		top: 0;
		left: 0;
		display: block;
		content: "";
		width: 3px;
		height: 100%;
		background: var(--pink);
	}

  .header .nav li .toggle {

    display: block;
  }

  .header .nav li .toggle.open + ul {

    display: grid;
    opacity: 1;
  }

  /* Anim */

  .header .menu.open ~ .nav li a {

    animation: menuItemsIn 1s ease 0ms 1 forwards;
  }
}

@media screen and (max-width: 25rem) {

  .header .inner {

    padding: 1rem;
  }

	.header a.logo {

		max-width: 80px;
		margin: 0 auto 0 0;
	}
}

@media screen and (pointer: fine) and (max-width: 80rem) {

	.header .nav > li:hover > a:not(.button),
	.header .nav > li:hover > button.toggle,
	.header .nav > li:hover > ul li:hover a:not(.button) {

    background-color: rgba(0, 0, 0, 0.05);
	}

	.header .nav > li:hover a:not(.button):hover:before {

		position: absolute;
		top: 0;
		left: 0;
		display: block;
		content: "";
		width: 3px;
		height: 100%;
		background: var(--pink);
	}
}


/* Sisäänanimointi pois Safari-selaimista */

@media not all and (min-resolution:.001dpcm) {

	@supports (-webkit-appearance:none) and (stroke-color:transparent) {

		.header .menu.open ~ .nav li a {

			animation: none !important;
			opacity: 1;
	    transform: translateX(0);
		}
	}
}

@keyframes menuItemsIn {

  0% {
    opacity: 0;
    transform: translateX(-2.5rem);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Landing */

.landing {

	padding: 0 2rem;
}

.landing .inner {

	display: flex;
	align-items: center;
	gap: 4rem;
	max-width: var(--content-width);
  margin: 0 auto;
}

.landing.full:not(.reverse) .inner {

	max-width: none;
}

.landing .inner .img {

	position: relative;
	flex: 3;
	margin: 0;
}

.landing.reverse .inner .img {

	flex: 2;
}

.landing.reverse .inner .img {

	order: 2
}

.landing.reverse .inner .column {

	order: 1;
}

.landing.reverse .inner .img {

	width: 100%;
	max-width: 24.25rem;
	aspect-ratio: 1 / 1;
	border-radius: 2rem;
	overflow: hidden;
}

.landing .inner .img.gallery img {

	opacity: 0;
	pointer-events: none;
}

.landing .inner .img img {

	width: 100%;
	height: auto;
}

.landing:not(.reverse) .inner .img {

	background-image: var(--bg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	align-self: stretch;
}

.landing:not(.reverse) .img img {

	opacity: 0;
	pointer-events: none;
}

.landing .inner .column {

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

.landing .inner .column:only-child {

	display: block;
}

.landing.reverse .inner .column {

	flex: 3;
}

.landing .column .column_inner  {

	padding: 2rem 0;
}

.landing.reverse .column .column_inner  {

	margin-right: 0;
}

@media screen and (max-width: 90.5rem) {

	.landing.reverse .img {

		margin-right: 2rem;
	}
}

@media screen and (max-width: 64rem) {

	.landing .inner,
	.landing.reverse .inner {

		display: grid;
		gap: 0;
		margin: 0;
		padding: 0;
	}

	.landing.reverse .inner .img {

		order: 2;
	}

	.landing.reverse .inner .img {

		border-radius: 0;
		max-width: none;
	}

	.landing.reverse .inner .column {

		order: 1;
	}

	.landing .inner .img:not(.gallery) img {

		width: 100%;
	}

	.landing.reverse .inner .img.gallery {

		max-width: none;
	}

	.landing.reverse .img.gallery img {

		width: 100%;
	}

	.landing.reverse .column .column_inner {

		padding: 0;
		margin-right: 0;
	}

	.landing .inner .column .column_inner,
	.landing.reverse .inner .column:only-child .column_inner,
	.landing.reverse .inner .column .column_inner {

		/*padding: 2rem;*/
		padding: 2rem 0;
	}
}

@media screen and (max-width: 40rem) {

	.landing.reverse .inner {

		margin-left: 0;
	}

	.landing {

		padding: 0 1rem;
	}

	.landing .inner .column .column_inner,
	.landing.reverse .inner .column:only-child .column_inner,
	.landing.reverse .inner .column .column_inner {

		/*padding: 2rem 1rem;*/
	}
}

/* Content */

.content {

	padding: 0 2rem;
}

.content.padding {

	margin: 4rem 0;
}

.content:last-of-type {

	margin-bottom: 2rem;
}

.content.last {

	margin-bottom: 0;
}

.header + .content.padding {

	margin-top: 2rem;
	margin-bottom: 2rem;
}

.content.bg {

	background: url(images/tausta.png);
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
}

.content .inner {

  max-width: var(--content-width);
  margin: 0 auto;
  /*padding: 0 2rem 0 4rem;*/
}

.content.full .inner {

	padding: 0;
	max-width: none;
}

.content h1,
.landing h1 {

	font-size: clamp(1.875rem, 4vw, 3.125rem);
	line-height: 1.2;
}

.content h2,
.landing h2 {

	font-size: clamp(1.5rem, 4vw, 1.875rem);
	line-height: 1.2;
}

.content h3 {

	font-size: clamp(1rem, 4vw, 1.25rem);
	line-height: 1.2;
}

.content h1 span,
.content h2 span,
.landing h1 span {

	color: var(--pink);
}

.content p,
.landing p {

	line-height: 1.625;
	margin: 2rem 0;
}

.content p:last-child,
.landing p:last-child {

	margin-bottom: 0;
}

.content .elem + .elem {

	margin-top: 4rem;
}

.content a:not(.button) {

	color: var(--pink);
}

@media screen and (max-width: 64rem) {

	.content .inner {

		padding-left: 0;
		padding-right: 0;
	}

	.content {

		margin: 0;
		padding: 2rem;
	}

	.content.padding {

		margin: 2rem 0;
	}
}

@media screen and (max-width: 40rem) {

	.content,
	.content.padding {

		padding: 0 1rem;
		margin: 2rem 0;
	}
}

@media screen and (max-width: 20rem) {

	.content h1,
	.landing h1 {

		word-break: break-all;
	}
}

/* Row */

.row {

	display: flex;
	align-items: center;
	gap: 1rem;
}

.row .img {

}

.row .img {

	flex: 2;
}

.row.reverse .img {

	order: 2
}

.row.reverse .column {

	order: 1;
}

.row .img img {

	width: 100%;
	height: auto;
}

.row .column {

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

.row .column .column_inner {

	padding: 0 2rem 0 1rem;
}

.row .column:only-child .column_inner {

	flex: 1;
}

.row.reverse .column .column_inner  {

	margin-right: 0;
}

@media screen and (max-width: 90.5rem) {

	.row.reverse .img.gallery {

		margin-right: 4rem;
	}
}

@media screen and (max-width: 64rem) {

	.row {

		display: grid;
		margin: 0;
		padding: 0;
		gap: 2rem;
	}

	.row .img:not(.gallery) img {

		width: 100%;
	}

	.row .img.gallery {

		max-width: none;
	}

	.row .img.gallery img {

		width: 100%;
	}

	.row .column .column_inner {

		padding: 0;
		margin-right: 0;
	}

	/*.content:not(.padding) .row.small .column:only-child .column_inner {

		padding: 2rem;
	}*/
}

@media screen and (max-width: 40rem) {

	.row .column .column_inner {

		padding: 2rem 1rem;
	}

	.row .column .column_inner {

		padding: 0;
	}
}

/* Carousel */

.img.gallery .carousel {

	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.img.gallery .carousel button.arrow {

  display: block;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
}

.img.gallery .carousel button.arrow.prev {

	transform: translateY(-50%) rotate(180deg);
	right: auto;
  left: 1rem;
}

.img.gallery .carousel .carousel_container {

	display: flex;
	align-items: stretch;
	width: 100%;
  height: 100%;
	width: calc(var(--n) * 100%);
	overflow: hidden;
  margin: 0;
  padding: 0;
	transform: translate(calc(var(--i, 0) / var(--n) * -100%));
	transform-style: preserve-3d;
  border-radius: 0;
	transition: 0.3s ease all;
}

.img.gallery .carousel_container figure {

  display: block;
	width: 100%;
	width: calc(100% / var(--n));
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: var(--bg);
  margin: 0;
  padding: 0;
}

/* Row gallery */

.row_gallery {

	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 4rem;
}

.row_gallery.reverse .text {

	order: 2;
}

.row_gallery.reverse .light_gallery {

	order: 1;
}

.row_gallery .gallery_inner {

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.row_gallery .light_gallery a {

	display: block;
	aspect-ratio: 1 / 1;
	background-position: center;
	background-repeat: no-repeat;
	background-image: var(--bg);
	background-size: cover;
	border-radius: 2rem;
	transform-origin: center center;
	transform: scale(1);
	transition: 0.3s ease all;
}

@media screen and (pointer: fine) {

	.woocommerce .crumbs a:hover {

		text-decoration: underline;
	}

	.lg-next:hover,
	.lg-prev:hover {

  	background-image: url(images/button_arrow_2.svg);
	}

	.light_gallery a:hover {

		transform: scale(1.02);
	}
}

@media screen and (max-width: 64rem) {

	.row_gallery {

		grid-template-columns: 1fr;
		grid-gap: 2rem;
		margin: 0;
	}

	.row_gallery.reverse .text {

		order: 1;
	}

	.row_gallery.reverse .light_gallery {

		order: 2;
	}
}

@media screen and (max-width: 40rem) {

	.light_gallery .gallery_inner {

		grid-template-columns: 1fr 1fr;
	}
}

/* Lifts */

.lifts {

	padding: 2rem 0 4rem 0;
	overflow: hidden;
}

.lifts h2 {

	font-size: clamp(1.5rem, 4vw, 1.875rem);
	margin-right: auto;
}

.lifts header {

	padding-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-right: 2rem;
	gap: 1rem;
}

.lifts header:not(.controls) button.arrow {

	display: none;
}

.lifts header button.arrow.prev {

	transform: rotate(180deg);
}

.lifts.init .lifts_inner {

	display: grid;
	grid-template-columns: repeat(var(--r), 1fr);
	gap: 1rem;
	width: calc(100% * var(--r));
	overflow: hidden;
	transform: translateX(calc((100% / var(--r)) * (var(--i) * -1)));
	transition: 0.7s ease all;
	padding-left: 1rem;
}

.lifts:not(.init) .lifts_inner {

	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.lifts .lift_wrap {

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;

}

.lifts .lift {

	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 1rem;
	background-image: var(--bg);
	background-color: var(--light);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	overflow: hidden;
}

.lifts .lift h3 {

	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	backdrop-filter: blur(10px);
	padding: 1rem;
	color: var(--light);
	background-color: rgba(0,0,0,0.2);
}

.lifts .lift h3 span {

	display: block;
	color: var(--pink);
}

.lifts .lift h3 img {

	width: 2.125rem;
	height: auto;
	transition: all 0.3s ease;
}

@media screen and (pointer: fine) {

	.lifts .lift:hover img  {

		transform: rotate(45deg);
	}
}

@media screen and (max-width: 96rem) {

	.lifts:not(.init) {

		margin: 0 4rem;
	}
}

@media screen and (max-width: 64rem) {

	.lifts:not(.init) {

		margin: 0 2rem;
	}

	.lifts:not(.init) .lifts_inner {

		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 40rem) {

	.lifts {

		margin: 0;
		padding: 2rem 0;
	}

	.lifts .lifts_inner {

		gap: 0;
	}

	.lifts .lift_wrap {

		display: flex;
		flex-flow: column nowrap;
		gap: 1rem;
		padding-left: 0;
	}

	.lifts header {

		padding: 0 2rem 1rem 2rem;
	}

	.lifts.init .lifts_inner {

		gap: 1rem;
		padding-left: 0;
	}

	.lifts:not(.init) .lifts_inner {

		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 30rem) {

	.lifts:not(.init) .lifts_inner {

		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 30rem) {

	.lifts header {

		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 0 0 1rem 0;
	}

	.lifts h2 {

		grid-column: span 2;
		width: 100%;
	}

	button.arrow {

		margin: 0 auto;
	}
}

/* Banner */

.banner {

	display: flex;
	background: var(--purple);
	color: var(--light);
	/*margin: 0 4rem;*/
	border-radius: 1rem;
	overflow: hidden;
}

.banner .text {

	flex: 3;
	padding: 4rem 2rem;
}

.banner h2 {

	font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.banner .img {

	position: relative;
	flex: 4;
	background-image: url(images/banneri.jpg);
	background-size: cover;
	background-position: bottom center;
	background-repeat: no-repeat;
	clip-path: circle(70% at 70% 50%);
}

.banner .img:after {

	content: "";
	position: absolute;
	width: 25%;
	top: 50%;
	left: 50%;
	aspect-ratio: 1 / 1;
	transform: translate(-25%, -50%);
	background-image: url(images/hokkuspokkus.png);
	background-size: contain;
	background-repeat: no-repeat;
}

@media screen and (max-width: 64rem) {

	.banner {

		display: grid;
		margin: 0;
	}

	.banner .img {

		aspect-ratio: 3 / 2;
		clip-path: circle(69% at 50% 90%);
	}

	.banner .text {

		padding: 2rem;
	}

	.banner .img:after {

		transform: translate(-50%, -30%);
	}
}

@media screen and (max-width: 40rem) {

	.banner {

		display: grid;
		margin: 0;
	}

	.banner .img {

		aspect-ratio: 3 / 3;
		clip-path: circle(80% at 50% 90%);
	}

	.banner .text {

		padding: 2rem 1rem;
	}

	.banner .img:after {

		width: 35%;
	}
}

/* Accordion */

.accordion {

  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.accordion.small {

	display: inline-grid;
}

.accordion.small h3 {

	user-select: none;
}

.accordion li {

  position: relative;
	border-radius: 2rem;
	box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.1);
}

.accordion.small li {

	border-radius: 0.5rem;
}

.accordion li ol {

	list-style-type: decimal;
	font-size: 1rem;
	margin: 1.8125rem 0 1.8125rem 1rem;
}

.accordion li ol li {

	border: none;
}

.accordion li button.toggle {

  display: block;
  position: absolute;
  top: 0.8125rem;
  right: 1.5rem;
	width: 1.5rem;
	height: 1.5rem;
  background: none;
  transition: 0.3s ease all;
  transform-origin: center center;
	transform: rotate(-180deg);
  z-index: 1;
}

.accordion li button.toggle svg {

	display: block;
	width: 100%;
	height: auto;
}

.accordion li button.toggle.open {

	transform: rotate(0);
}

.accordion .wrap {

  padding: 1rem 4rem 1rem 2rem;
}

.accordion.small .wrap  {

	padding-left: 1rem;
}

.accordion li .wrap p {

  margin: 0;
  font-weight: 600;
  font-style: italic;
  font-size: 1rem;
}

.accordion li .collapse {

  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease all;
}

.accordion li .collapse .col_text {

  padding: 1rem 2rem;
}

.accordion.small li .collapse .col_text {
	padding: 1rem;
}

.accordion li .collapse p {

  font-size: 1rem;
  margin: 0;
}

.accordion li .collapse p + p {

  margin-top: 1rem;
}

.accordion li .collapse a:not(.link) {

  color: var(--pink);
}

@media screen and (any-pointer: fine) {

  .accordion li button.toggle:hover {

  	opacity: 0.75;
  }

	.accordion li button.toggle:hover svg path {

  	fill: var(--pink);
  }
}

@media screen and (max-width: 64rem) {

	.accordion {

		margin-left: 0;
		margin-right: 0;
	}
}

@media screen and (max-width: 30rem) {

  .accordion .wrap {

    padding: 1rem 4rem 1rem 1rem;
  }

  .accordion li .collapse .col_text {

    padding: 1rem;
  }

  .accordion li .collapse a {

    word-break: break-all;
  }
}

@media screen and (max-width: 25rem) {

	.accordion li .collapse .col_text,
	.accordion li h3 {

		word-break: break-word;
	}
}

/* Henkilöstö */

.hlo {

}

.hlo ul {

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2rem;
	margin-top: 4rem;
}

.hlo li {

	display: flex;
	gap: 2rem;
	align-items: center;
}

.hlo li a {

	display: block;
	font-style: italic;
}

.hlo li h3,
.hlo li a {

	line-height: 1.5;
}

.hlo li figure {

	flex: 1;
	width: 9.25rem;
	max-width: 9.25rem;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: var(--bg);
}

.hlo li .text {

	flex: 1;
}

@media screen and (max-width: 85rem) {

	.hlo ul {

		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 60rem) {

	.hlo ul {

		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 40rem) {

	.hlo li {

		flex-flow: column nowrap;
	}

	.hlo li figure {

		width: 100%;
		max-width: none;
		flex: auto;
	}
}

/* Form */

input[type="text"], input[type="tel"], input[type="email"], textarea {

	appearance: none;
	-webkit-appearance: none;
	font-family: "montserrat", -apple-system, BlinkMacSystemFont,  sans-serif;
  font-size: 1rem;
  font-weight: normal;
	color: var(--dark);
	background: var(--light);
	padding: 0.5rem 1rem;
  margin: 0;
	width: 100%;
	border: none;
	border-radius: 1rem;
	font-weight: 400;
	outline: none;
	resize: none;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	text-align: left;
}

.form form input:focus, .form form textarea:focus {

	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
}

.form {

	display: flex;
	gap: 4rem;
	padding-bottom: 2rem;
}

.form h2 {

	font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.form .text {

	position: relative;
	flex: 3;
	display: flex;
	flex-flow: column nowrap;
}

.form .text .part + .part {

	margin-top: 2rem;
}

.form.reverse .img {

	flex: 2;
}

.form .text img {

	max-width: 24rem;
	margin-top: auto;
}

.form .form_inner {

	position: relative;
	flex: 4;
}

.form .thanks {

	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: calc(100% + 1rem);
	margin-left: -0.5rem;
	background: var(--light);
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	transition: 0.3s ease all;
}

.form form {

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 1.25rem;
}

.form form h3 {

	grid-column: span 2;
	font-size: 1.25rem;
}

.form form .span {

	grid-column: span 2;
}

.form form textarea {

	min-height: 5.8125rem;
}

.form .container {

	display: block;
	position: relative;
	cursor: pointer;
	user-select: none;
	padding-left: calc(1.375rem + 0.5rem);
	line-height: 1.375;
	text-align: left;
	margin: 0;
  font-size: 1rem;
}

.form .container input {

  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form .container input[type="radio"] + .checkmark,
.form .container input[type="checkbox"] + .checkmark {

  position: absolute;
  top: 0;
  left: 0;
  height: 1.375rem;
  width: 1.375rem;
  background-color: var(--light);
	border: 1px solid #b2b2b2;
  border-radius: 50%;
	transition: 0.3s ease all;
}

.form .container input[type="radio"] + .checkmark:after,
.form .container input[type="checkbox"] + .checkmark:after {

	content: "";
	position: absolute;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%) scale(0);
  width: 0.625rem;
  height: 0.625rem;
	background: var(--pink);
	border-radius: 50%;
	transition: 0.2s ease all;
}

.form .container input[type="radio"]:checked + .checkmark:after,
.form .container input[type="checkbox"]:checked + .checkmark:after {

	transform: translate(-50%, -50%) scale(1);
}

.form .radios {

	grid-column: span 2;
  display: flex;
  flex-flow: row wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: flex-start;
}

.form.wait form * {

	opacity: 0.5;
	pointer-events: none;
}

.form.success .thanks {

	opacity: 1;
	visibility: visible;
}

@media screen and (max-width: 64rem) {

	.form {

		display: grid;
		margin: 0;
		gap: 2rem;
		padding: 2rem 0;
	}

	.form .text img,
	.form.reverse .img  {

		display: none;
	}
}

@media screen and (max-width: 40rem) {

	.form {

		padding: 1rem 0;
	}

	.form form {

		display: grid;
		grid-template-columns: 1fr;
		grid-gap: 1.25rem;
	}

	.form form h3,
	.form form .span,
	.form .radios {

		grid-column: auto;
	}

	.form .radios {

		display: grid;
	}
}

/* Footer */

.footer {

	background: var(--dark);
	color: var(--light);
	margin-top: 4rem;
}

.woocommerce + .footer {

	margin-top: 0;
}

.footer .inner {

	max-width: var(--content-width);
	margin: 0 auto;
	padding: 4rem 2rem;
}

.footer .container {

	display: flex;
	gap: 8rem;
	justify-content: flex-start;
	margin-left: 2rem;
	max-width: 64rem;
}

.footer .container .c:first-of-type {

	margin-right: auto;
}

.footer figure img {

	max-width: 10rem;
}

.footer h2 {

	font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.footer p {

	margin: 2rem 0;
	line-height: 1.75;
}

.footer a:not(.button) {

	font-style: italic;
}

.footer .sosmed {

	display: inline-flex;
	gap: 1rem;
	margin-top: 2rem;
}

@media screen and (pointer: fine) {

	footer a:not(.button):hover {

		text-decoration: underline;
	}
}

@media screen and (max-width: 64rem) {

	.footer .container {

		display: grid;
		gap: 2rem;
		margin-left: 0;
		justify-content: center;
		text-align: center;
	}

	.footer figure img {

		margin: 0 auto;
	}
}

@media screen and (max-width: 40rem) {

	.footer .inner {

		padding: 3rem 1rem;
	}
}

/* WP */

body.customize-support .header {

	top: 32px;
}

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

	body.customize-support .header {

		top: 46px;
	}
}

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

	body.customize-support .header {

		top: 0;
	}
}

/* WooCommerce */

.woocommerce {

	/*max-width: var(--content-width);
	margin: 0 auto;*/
}

.woocommerce .row.small {

	gap: 4rem;
}

.woocommerce .row.small figure.img {

	width: 100%;
	max-width: 24.25rem;
	aspect-ratio: 1 / 1;
	border-radius: 2rem;
	overflow: hidden;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: var(--bg);
}

.woocommerce .shop_nav {

	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

.woocommerce .shop_nav form {

	display: flex;
	gap: 1rem;
}

.woocommerce .shop_nav form input,
.woocommerce .shop_nav form button {

	border-radius: 2rem;
}

.woocommerce .shop_nav + .product {

	margin-top: 2rem;
}

.woocommerce .crumbs {

	display: flex;
	gap: 1rem;
	align-items: center;
}

.woocommerce .crumbs a {

	display: flex;
	align-items: center;
	color: var(--dark);
	font-weight: bold;
	font-size: clamp(1rem, 4vw, 1.25rem);
	gap: 0.5rem;
}

.woocommerce h2.price {

	margin-top: 0.5rem;
}

.woocommerce .crumbs li a:after {

  content: "";
	display: block;
  width: 6px;
  height: 10px;
  background: url(images/arrow.svg);
  transform-origin: center center;
  transition: 0.3s ease all;
}

.woocommerce .product_summary {

	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-left: 4rem;
	gap: 4rem;
}

.woocommerce .light_gallery .gallery_inner {

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.woocommerce .light_gallery a {

	display: block;
	aspect-ratio: 1 / 1;
	background-position: center;
	background-repeat: no-repeat;
	background-image: var(--bg);
	background-size: cover;
	border-radius: 2rem;
	transform-origin: center center;
	transform: scale(1);
	transition: 0.3s ease all;
}

.lg-next,
.lg-prev {

	padding: 0;
	transform: rotate(45deg);
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 50%;
	padding: 0;

  background-image: url(images/button_arrow.svg);
}

.lg-prev {

	transform: rotate(225deg);
}

.lg-next:before,
.lg-next:after,
.lg-prev:before,
.lg-prev:after {

	content: none !important;
}

@media screen and (pointer: fine) {

	.woocommerce .crumbs a:hover {

		text-decoration: underline;
	}

	.lg-next:hover,
	.lg-prev:hover {

  	background-image: url(images/button_arrow_2.svg);
	}

	.woocommerce .light_gallery a:hover {

		transform: scale(1.02);
	}
}

@media screen and (max-width: 92.75rem) {

	.woocommerce .product_summary {

		margin: 0 4rem;
	}
}

@media screen and (max-width: 64rem) {

	.woocommerce .product_summary {

		grid-template-columns: 1fr;
		grid-gap: 2rem;
		margin: 0;
	}
}

@media screen and (max-width: 48rem) {

	.woocommerce .shop_nav {

		display: grid;
		align-items: center;
		justify-content: center;
		gap: 1rem;
		margin-bottom: 2rem;
	}

	.woocommerce .crumbs {

		justify-content: center;
	}
}

@media screen and (max-width: 40rem) {

	.woocommerce .light_gallery .gallery_inner {

		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 30rem) {

	.woocommerce .shop_nav form {

		display: none;
	}

	.woocommerce .crumbs {

		flex-flow: row wrap;
		justify-content: flex-start;
	}
}
