/**
 * Frisk sliders (Swiper): structure, arrows, dots and the slide states of
 * the slider designs. Loaded with the slider widgets (handle genixcore-slider,
 * after Swiper's own CSS). Markup: Genixcore_Slider (PHP).
 *
 *   .tg-slider            the slider (carries the design classes, e.g. .testi-slider2)
 *   > .swiper             the visible area (part slides and centeredSlides show the next ones)
 *   > .swiper-wrapper     the moving track
 *   > .swiper-slide       a slide (the active one: .swiper-slide-active); the gap between
 *                         slides is Swiper's spaceBetween (Genixcore_Slider, layout 'gap')
 *   .tg-slider-arrow      .tg-slider-prev / .tg-slider-next, also outside the slider
 *   .tg-slider-dots       ul > li(.is-active) > button, or the numbers (.tg-slider-fraction)
 */

/* Structure ---------------------------------- */
.tg-slider {
  position: relative;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.tg-slider > .swiper {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  z-index: auto;
  transform: translateZ(0); /* its own layer, as the sliders always had (same text rendering) */
}
.tg-slider .swiper-slide img {
  display: inline-block;
}
.tg-slider [hidden] {
  display: none !important;
}
/* After a drag the slide settles quickly, easing out. */
.tg-slider--release > .swiper > .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dots ---------------------------------- */
.tg-slider-dots {
  list-style-type: none;
  padding: 0;
  margin: 54px 0 0 0;
  line-height: 0;
  text-align: center;
  height: max-content;
}
.tg-slider-dots li {
  display: inline-block;
  margin-inline-end: 12px;
}
.tg-slider-dots li:last-child {
  margin-inline-end: 0;
}
.tg-slider-dots button {
  font-size: 0;
  padding: 0;
  width: 10px;
  height: 10px;
  line-height: 0;
  border-radius: 9999px;
  border: 1px solid var(--title-color);
  background-color: transparent;
  transition: all ease 0.4s;
  position: relative;
}
.tg-slider-dots .is-active button {
  background-color: var(--title-color);
}
.tg-slider-dots button:focus-visible {
  outline: 2px solid var(--title-color);
  outline-offset: 3px;
}
.tg-slider-dots.tg-slider-fraction {
  line-height: 1.5;
  font-family: var(--title-font);
  font-size: 16px;
  color: var(--title-color);
}

.dot-style2 .tg-slider-dots button {
  border: 1px solid var(--smoke-color);
}
.dot-style2 .tg-slider-dots .is-active button {
  background-color: var(--smoke-color);
}

/* Arrows ---------------------------------- */
.tg-slider-arrow {
  display: inline-block;
  padding: 0;
  background-color: var(--white-color);
  color: var(--title-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  right: var(--pos-x, 58px);
  width: var(--icon-size, 80px);
  height: var(--icon-size, 80px);
  line-height: var(--icon-size, 80px);
  font-size: var(--icon-font-size, 18px);
  z-index: 2;
  opacity: 1;
}
.tg-slider-arrow.default {
  position: relative;
  --pos-x: 0;
  margin-top: 0;
}
.tg-slider-arrow.tg-slider-prev {
  right: auto;
  left: var(--pos-x, 58px);
}
.tg-slider-arrow:hover {
  opacity: 1;
}
.tg-slider-arrow:focus-visible {
  outline: 2px solid var(--title-color);
  outline-offset: 3px;
}
.tg-slider-arrow.is-locked {
  display: none;
}
.tg-slider-arrow.is-disabled {
  opacity: 0.5;
  cursor: default;
}
.tg-slider-arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.arrow-margin .tg-slider-arrow {
  top: calc(50% - 30px);
}

@media (max-width: 1200px) {
  .tg-slider-arrow {
    --pos-x: 42px;
  }
}
@media (max-width: 1199px) {
  .tg-slider-arrow {
    --icon-size: 60px;
  }
}
@media (max-width: 991px) {
  .tg-slider-dots {
    margin: 40px 0 0 0;
  }
  .icon-box .tg-slider-arrow {
    margin-right: 0;
  }
}

/* Arrows in the flow (.tg-slider-arrow.default), e.g. the Home 18 hero */
.tg-slider-arrow.default {
  transform: none;
}

/* Designs ---------------------------------- */
.tg-slider.slider-shadow > .swiper {
  padding: 30px 0px 40px 0px !important;
  margin: -30px 0px -40px 0px;
}

/* Testimonial 1 */
.testi-slider1 .tg-slider-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  text-align: end;
}
.testi-slider1 .tg-slider-dots li {
  margin-inline-end: 12px;
}
.testi-slider1 .tg-slider-dots li:last-child {
  margin-inline-end: 0;
}
.testi-slider1 .tg-slider-dots li button {
  border: 1px solid var(--title-color);
  height: 10px;
  width: 10px;
}
.testi-slider1 .tg-slider-dots li.is-active button {
  background: var(--title-color);
}
@media (max-width: 767.98px) {
  .testi-slider1 .tg-slider-dots {
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: left;
    display: flex;
    align-items: center;
  }
}

/* Testimonial 2 and 4: one centered slide, the next ones faded at the sides */
.testi-slider2 .swiper-slide,
.testi-slider4 .swiper-slide {
  opacity: 0.1;
  transition: 0.4s;
}
.testi-slider2 .swiper-slide.swiper-slide-active,
.testi-slider2 .swiper-slide.swiper-slide-duplicate-active,
.testi-slider4 .swiper-slide.swiper-slide-active,
.testi-slider4 .swiper-slide.swiper-slide-duplicate-active {
  opacity: 1;
}

/* Testimonial 5 (Home 15): dots under the visible cards */
.testi-slider5 .tg-slider-dots {
  padding-inline-end: 340px;
}

/* Testimonial 6 (Home 17): glass arrows */
.testi-slider6 .tg-slider-arrow {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  color: var(--white-color);
  font-size: 24px;
  /* As the HTML: the arrow ends at the middle (slick margin-top: -size) */
  transform: none;
  margin-top: calc(var(--icon-size, 80px) / -1);
}

/* Portfolio 2 and 14: the active card shows its details, and so does any card under the pointer or with focus */
.portfolio-slider .swiper-slide-active .portfolio-wrap.style2:after,
.portfolio-slider .swiper-slide-duplicate-active .portfolio-wrap.style2:after,
.portfolio-slider14 .swiper-slide-active .portfolio-wrap.style2::after,
.portfolio-slider14 .swiper-slide-duplicate-active .portfolio-wrap.style2::after,
.portfolio-slider .portfolio-wrap.style2:hover::after,
.portfolio-slider .portfolio-wrap.style2:focus-visible::after,
.portfolio-slider14 .portfolio-wrap.style2:hover::after,
.portfolio-slider14 .portfolio-wrap.style2:focus-visible::after {
  opacity: 1;
  height: 100%;
}
.portfolio-slider .swiper-slide-active .portfolio-wrap.style2 .portfolio-details,
.portfolio-slider .swiper-slide-duplicate-active .portfolio-wrap.style2 .portfolio-details,
.portfolio-slider14 .swiper-slide-active .portfolio-wrap.style2 .portfolio-details,
.portfolio-slider14 .swiper-slide-duplicate-active .portfolio-wrap.style2 .portfolio-details,
.portfolio-slider .portfolio-wrap.style2:hover .portfolio-details,
.portfolio-slider .portfolio-wrap.style2:focus-visible .portfolio-details,
.portfolio-slider14 .portfolio-wrap.style2:hover .portfolio-details,
.portfolio-slider14 .portfolio-wrap.style2:focus-visible .portfolio-details {
  bottom: 0;
  opacity: 1;
}

/* Portfolio 8 and 9: full-screen showcase */
.project-slider-showcase-wrap .project-slider-showcase > .swiper,
.project-slider-showcase-wrap .project-slider-showcase .swiper-wrapper,
.project-slider-showcase-wrap .project-slider-showcase .swiper-slide {
  height: 100%;
}
.project-slider-showcase-wrap.style2 .project-slider-showcase > .swiper {
  height: 100vh;
}
.project-slider-showcase-wrap.style2 .project-slider-showcase .swiper-slide {
  height: 100vh;
}

/* Picture transitions (slider.js fxStage(), data-tg-fx): the slide pictures show on a stage behind the slides,
   the slides (texts) fade over it. */
.tg-fx-on > .swiper > .tg-fx-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.tg-fx-on > .swiper > .swiper-wrapper {
  z-index: 1;
}
.tg-fx-on .swiper-slide img.tg-fx-src {
  visibility: hidden;
}
.tg-fx-stage .tg-fx-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.tg-fx-stage .tg-fx-strip {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  will-change: clip-path;
}
.tg-fx-stage .tg-fx-strip .tg-fx-img {
  will-change: transform;
}
.tg-fx-stage .tg-fx-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.tg-fx-stage.is-liquid .tg-fx-canvas {
  visibility: visible;
}

/* Portfolio 9 with a picture transition: the dark fade over the picture sits on the stage, one for both slides while
   their texts cross-fade (two fading copies would lighten it half way). */
.project-slider-showcase-wrap.style2 .tg-fx-on .portfolio-wrap.style12::after {
  display: none;
}
.project-slider-showcase-wrap.style2 .tg-fx-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 12, 0, 0) 0%, #0A0C00 100%);
}

/* Portfolio 9 navigation (off by default; Slider > Navigation): glass arrows pointing up and down at the end side, the
   dots down the start side, both over the pictures and clear of the slide texts. */
.project-slider-showcase-wrap.style2 .tg-slider-arrow {
  --icon-size: 56px;
  left: auto;
  right: auto;
  inset-inline-end: 40px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white-color);
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s;
}
.project-slider-showcase-wrap.style2 .tg-slider-arrow:hover,
.project-slider-showcase-wrap.style2 .tg-slider-arrow:focus-visible {
  background: var(--white-color);
  color: var(--title-color);
}
.project-slider-showcase-wrap.style2 .tg-slider-prev {
  transform: translateY(calc(-100% - 6px));
}
.project-slider-showcase-wrap.style2 .tg-slider-next {
  transform: translateY(6px);
}
/* the default left / right arrows turn to point up / down (a vertical slider: up is up in every language, so no
   right-to-left mirror) */
.project-slider-showcase-wrap.style2 .tg-slider-prev .fa-arrow-left,
.project-slider-showcase-wrap.style2 .tg-slider-next .fa-arrow-right {
  rotate: 90deg;
  scale: none;
}
.project-slider-showcase-wrap.style2 .tg-slider-dots {
  position: absolute;
  z-index: 2;
  top: 50%;
  inset-inline-start: 40px;
  margin: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.project-slider-showcase-wrap.style2 .tg-slider-dots li {
  margin: 0;
  line-height: 0;
}
.project-slider-showcase-wrap.style2 .tg-slider-dots button {
  border-color: var(--white-color);
}
.project-slider-showcase-wrap.style2 .tg-slider-dots .is-active button {
  height: 28px;
  background-color: var(--white-color);
}
.project-slider-showcase-wrap.style2 .tg-slider-dots button:focus-visible {
  outline-color: var(--white-color);
}
.project-slider-showcase-wrap.style2 .tg-slider-dots.tg-slider-fraction {
  display: block;
  color: var(--white-color);
}
@media (max-width: 767px) {
  .project-slider-showcase-wrap.style2 .tg-slider-arrow {
    --icon-size: 44px;
    inset-inline-end: 15px;
    font-size: 15px;
  }
  .project-slider-showcase-wrap.style2 .tg-slider-dots {
    inset-inline-start: 15px;
  }
}

/* Home 18 hero: glass arrows at the bottom corner */
.hero-18 .icon-box .tg-slider-arrow {
  --icon-size: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  color: var(--white-color);
}
.hero-18 .icon-box .tg-slider-arrow:hover {
  background: var(--white-color);
  color: var(--title-color);
}
@media (max-width: 575px) {
  .hero-18 .icon-box .tg-slider-arrow {
    --icon-size: 40px;
    font-size: 16px;
  }
}
