/*
	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: 700;
  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);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * 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
*/
/*
	Variables for legacy dc plugins
*/
.infinite-gallery {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  cursor: -webkit-grab;
  cursor: grab;
  background: linear-gradient(1deg, #583cc7 0%, #16084b 100%);
}

.infinite-gallery .infinite-gallery__bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.infinite-gallery .infinite-gallery__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}

.infinite-gallery .infinite-gallery__page-card-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 24.1875rem;
  text-decoration: none;
  cursor: pointer;
}

.infinite-gallery .infinite-gallery__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24.1875rem;
  height: 17.75rem;
  overflow: hidden;
  background-color: #1a1a2e;
  text-decoration: none;
  border-radius: 6px;
}

.infinite-gallery .infinite-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: transform 0.4s ease;
}

.infinite-gallery .infinite-gallery__item--page.is-active {
  width: 29.625rem;
  height: 21.5rem;
}

.infinite-gallery .infinite-gallery__page-card-wrap:has(.is-active) {
  width: 29.625rem;
}

.infinite-gallery .infinite-gallery__page-card-wrap:hover .infinite-gallery__item--page img {
  transform: scale(1.06);
}

.infinite-gallery .infinite-gallery__item--page {
  background-color: #2a2a3e;
}

.infinite-gallery .infinite-gallery__item--page.is-locked {
  background-color: var(--color__dark-purple-bg);
}

.infinite-gallery .infinite-gallery__item-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.infinite-gallery .infinite-gallery__lock {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.infinite-gallery .infinite-gallery__item-title {
  display: block;
  color: #fff;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.3;
  padding-bottom: 1rem;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.infinite-gallery .infinite-gallery__item-subtitle {
  display: block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.infinite-gallery .infinite-gallery__item-btn {
  display: inline-block;
  padding: 0.9375rem 1.75rem;
  border-radius: 2.5em;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}

.infinite-gallery .infinite-gallery__item-btn--cta {
  position: relative;
  isolation: isolate;
  background: linear-gradient(274deg, rgb(229, 203, 255) 0%, rgb(166, 111, 240) 77%);
  color: var(--color__black);
  cursor: pointer;
}

.infinite-gallery .infinite-gallery__item-btn--cta:before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(45deg, #b063ff, #f3f1f7, #b063ff, #ffffff, #bba2e3, #390067, #b063ff);
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  border-radius: 2.5em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  -webkit-animation: glowing 20s linear infinite;
          animation: glowing 20s linear infinite;
}

.infinite-gallery .infinite-gallery__item-btn--cta:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(274deg, rgb(229, 203, 255) 0%, rgb(166, 111, 240) 77%);
  border-radius: 2.5em;
}

.infinite-gallery .infinite-gallery__page-card-wrap:hover .infinite-gallery__item-btn--cta:before {
  opacity: 1;
}

.infinite-gallery .infinite-gallery__item--deco {
  position: absolute;
  width: 24.1875rem;
  height: 17.75rem;
  background-color: transparent;
}
