/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 500;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

.grid-container {
  max-width: 70.625rem;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-column-gap: 1.875rem;
}

@media screen and (max-width: 1280px) {
  .grid-container {
    padding: 0 0.9375rem;
  }
}
/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * $size: font-size in number
 * $line-height: line-height in percentage
 * $weight: font-weight
 * $family: font-family
 * $color: font-color
 */
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
section.hero-main .image-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Ensures the image doesn't exceed the container width */
  aspect-ratio: 1392/860; /* Maintain the aspect ratio of the original size */
  margin: 0 auto;
  -o-object-fit: cover;
     object-fit: cover;
  background-size: cover;
}

section.hero-main .image-container img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

section.hero-main .hover-area {
  position: absolute;
  -webkit-clip-path: polygon(12% 100%, 34% 61%, 40% 51%, 42% 54%, 40% 60%, 39% 66%, 38% 71%, 37% 77%, 36% 83%, 35% 88%, 33% 93%, 31% 98%, 31% 100%);
          clip-path: polygon(12% 100%, 34% 61%, 40% 51%, 42% 54%, 40% 60%, 39% 66%, 38% 71%, 37% 77%, 36% 83%, 35% 88%, 33% 93%, 31% 98%, 31% 100%);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: red;
  opacity: 0;
  display: block;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
}

section.hero-main .hover-area video {
  position: absolute;
  z-index: 20;
  width: 100%;
}

section.hero-main .hover-area:hover {
  opacity: 1;
}
