/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.4.1760688396
Updated: 2025-10-17 08:06:36

*/






/* Perusmuuttujat */
.johe-carousel {
  --jc-radius: 0;          /* ei pyöristyksiä, muuta halutessa */
  --jc-btn-bg: #111;
  --jc-btn-bg-hover: #222;
  --jc-btn-bg-active: #000;
  --jc-btn-color: #fff;
}

/* Karusellin kontti */
.johe-carousel { position: relative; width: 100%; max-width: 100%; user-select: none; -webkit-tap-highlight-color: transparent; }
.johe-carousel .jc-viewport {
  position: relative;
  overflow: hidden;
  padding: 0 var(--jc-peek);
  max-height: var(--jc-height);
  border-radius: var(--jc-radius);

  /* POIS: gradientit ja varjot */
  background: transparent !important;
  box-shadow: none !important;
}

/* Track + slides */
.johe-carousel .jc-track {
  display: flex;
  gap: var(--jc-gap);
  will-change: transform;
  transition: transform 360ms cubic-bezier(.22,.61,.36,1);
  touch-action: pan-y;
}
.johe-carousel .jc-slide {
  flex: 0 0 calc(100% - (var(--jc-peek) * 2));
  display: grid;
  place-items: center;
  max-height: var(--jc-height);
  border-radius: var(--jc-radius);

  /* POIS: varjot */
  box-shadow: none !important;
  overflow: hidden;
}
.johe-carousel .jc-img,
.johe-carousel .jc-slide img {
  max-height: var(--jc-height);
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;

  /* POIS: varjot ja turhat tehosteet */
  box-shadow: none !important;
  transition: none;
}

/* Nuolinapit: yksiväriset pallurat, nuolet keskellä */
.johe-carousel .jc-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: none;
  background: var(--jc-btn-bg); color: var(--jc-btn-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; cursor: pointer; z-index: 4;

  /* POIS: varjot / blurit */
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: background 140ms ease, transform 120ms ease;
}
.johe-carousel .jc-prev { left: 10px; }
.johe-carousel .jc-next { right: 10px; }
.johe-carousel .jc-nav:hover { background: var(--jc-btn-bg-hover); }
.johe-carousel .jc-nav:active { background: var(--jc-btn-bg-active); transform: translateY(-50%) scale(0.96); }
.johe-carousel .jc-nav:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(90,158,255,0.5); }

/* Reunahäivytys: jos haluat täysin pois, piilota nämä */
.johe-carousel .jc-fade { display: none !important; }

/* Maski pois varmuudella */
@supports (mask-image: linear-gradient(black, transparent)) {
  .johe-carousel .jc-viewport { -webkit-mask-image: none !important; mask-image: none !important; }
}

/* Mobiilinapit pienemmiksi */
@media (max-width: 768px) {
  .johe-carousel .jc-nav { width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 480px) {
  .johe-carousel .jc-nav { width: 36px; height: 36px; font-size: 16px; }
}

/* ----- LIGHTBOX ----- */
.jc-no-scroll { overflow: hidden; }

.johe-carousel .jc-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.johe-carousel .jc-lightbox.is-open { display: flex; }

.johe-carousel .jc-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
}

.johe-carousel .jc-lb-figure {
  position: relative;
  margin: 0; padding: 0;
  max-width: min(92vw, 1400px);
  max-height: min(88vh, 1000px);
  display: grid; grid-template-rows: 1fr auto;
  gap: 12px;
  z-index: 2;
}
/* Lightbox-kuvan skaalaus – max 90% selainkorkeus */
.johe-carousel .jc-lb-img {
  max-height: 90vh;   /* rajoitetaan kuva max 90% selainkorkeudesta */
  max-width: 100%;    /* leveys saa olla täysi, säilyttää mittasuhteet */
  width: auto;
  height: auto;
  object-fit: contain; /* varmistaa ettei veny väärin */
}

.johe-carousel .jc-lb-caption {
  color: #ddd; font-size: 14px; line-height: 1.4;
  text-align: center;
}

/* Lightbox-napit */
.johe-carousel .jc-lb-close,
.johe-carousel .jc-lb-prev,
.johe-carousel .jc-lb-next {
  position: absolute;
  border: none; border-radius: 999px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 20px; cursor: pointer;
  transition: background 140ms ease, transform 120ms ease;
}
.johe-carousel .jc-lb-close { top: -54px; right: 0; }
.johe-carousel .jc-lb-prev  { left: -56px; top: 50%; transform: translateY(-50%); }
.johe-carousel .jc-lb-next  { right: -56px; top: 50%; transform: translateY(-50%); }
.johe-carousel .jc-lb-close:hover,
.johe-carousel .jc-lb-prev:hover,
.johe-carousel .jc-lb-next:hover { background: rgba(0,0,0,0.7); }
.johe-carousel .jc-lb-close:active,
.johe-carousel .jc-lb-prev:active,
.johe-carousel .jc-lb-next:active { transform: translateY(-50%) scale(0.96); }
.johe-carousel .jc-lb-close:active { transform: scale(0.96); }

/* Pienillä näytöillä napit lähemmäs kuvaa */
@media (max-width: 640px) {
  .johe-carousel .jc-lb-prev  { left: 6px; }
  .johe-carousel .jc-lb-next  { right: 6px; }
  .johe-carousel .jc-lb-close { top: 6px; right: 6px; }
}


/* --- Perus: automaattinen näkymä --- */
.johe-carousel .jc-slide {
  flex: 0 0 calc(100% - (var(--jc-peek) * 2));
}

/* --- Desktop: näytä täsmälleen 3 kuvaa rinnakkain --- */
@media (min-width: 1200px) {
  .johe-carousel {
    --jc-peek: 0%;          /* ei kurkistuksia */
  }
  .johe-carousel .jc-viewport {
    padding: 0;
  }
  .johe-carousel .jc-slide {
    flex: 0 0 calc(100% / 3);   /* kolme kuvaa täsmälleen */
  }
}

/* --- Tablet: näytä 2 kuvaa rinnakkain --- */
@media (min-width: 768px) and (max-width: 1199px) {
  .johe-carousel {
    --jc-peek: 0%;
  }
  .johe-carousel .jc-viewport {
    padding: 0;
  }
  .johe-carousel .jc-slide {
    flex: 0 0 calc(100% / 2);   /* kaksi kuvaa */
  }
}

/* --- Mobiili: näytä vain yksi kuva --- */
@media (max-width: 767px) {
  .johe-carousel {
    --jc-peek: 0%;
  }
  .johe-carousel .jc-viewport {
    padding: 0;
  }
  .johe-carousel .jc-slide {
    flex: 0 0 100%;             /* yksi kuva */
  }
}


