/* TEKST */

.jgf-gul {
	color: rgba(247,198,61,1.00);
}

.jgf-mork {
	color: #1e1e1e;
}

.jgf-lys {
	color: #e8e8e8;
}


/* BUTTONS */

.btn-jgfgul {
	background: #fac93f;
	color: #1E1E1E;
}

.btn-jgfgul:hover {
	background: rgba(247,198,61,1.00);
	color: #1e1e1e;
}

.btn-jgfmork {
	background-color: #1e1e1e;
	color: #e8e8e8;
}

.btn-jgfmork:hover {
	background-color: #212121;
	color: #fac93f;
}

.btn-jgfoutline {
	background-color: transparent;
	border: 2px solid #1e1e1e;
	color: #1e1e1e;
	border-radius: 15px;
}

.btn-jgfoutline:hover {
	background-color: transparent;
	border: 2px dotted #1e1e1e;
	color: #1e1e1e;
	border-radius: 15px;
}

.btn-jgfdark {
	background-color: transparent;
	border: 2px solid #1e1e1e;
	color: #1e1e1e;
	border-radius: 15px;
}

.btn-jgfdark:hover {
	background-color: #1e1e1e;
	border: 2px solid #1e1e1e;
	color: #e8e8e8;
	border-radius: 15px;
}

.btn-jgfny {
	background-color: #1e1e1e;
	color: #e8e8e8;
	border-radius: 15px;
}

.btn-jgfny:hover {
	background-color: transparent;
	border: 2px solid #1e1e1e;
	border-radius: 15px;
	color: #1e1e1e;
}

.btn-jgfrund {
  width: 180px;
  height: 180px;
  display: inline-flex;         /* enkel sentrering */
  align-items: center;
  justify-content: center;
  background-color: #1e1e1e;
  color: #e8e8e8;
  border-radius: 50%;
  border: 2px dotted transparent; /* reserver plass -> ingen layout-jump */
  box-sizing: border-box;       /* border trekkes innenfor */
  
}

.btn-jgfrund:hover {
  background-color: #2D2D2D;
  color: #e8e8e8;
        /* samme bredde, bare endre farge */
}


/* BAKGRUNNER */

.jgf-bakgrunn-gul {
	background-color: #fac93f;
}

.jgf-bakgrunn-oransje {
	background-color: #da5606;
}

.jgf-card-light {
	background: rgba(250,201,63,0.01);
	border: 0px solid #fac93f; 
	border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* eller hva du bruker */
}


/* --- Grayscale to color hover --- */
.img-thumbnail.img-thumbnail-hover-icon img {
	filter: grayscale(100%) contrast(130%);
	transition: filter 0.5s ease;
}

.img-thumbnail.img-thumbnail-hover-icon:hover img {
	filter: grayscale(0%) contrast(130%);
}


/* Countdown - juster mobilvisning */
@media (max-width: 576px) {
  .home-intro .countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem; /* litt større tekst */
    line-height: 1.2;
    text-align: center;
  }

  .home-intro .countdown > span {
    flex: 0 0 45%; /* to elementer per rad */
    display: inline-block;
  }

  .home-intro .countdown .font-weight-extra-bold {
    font-size: 2.2rem; /* gjør tallene betydelig større */
    line-height: 1.1;
  }
}


/* Juster bildebredde sponsorer */
/* Begrens logo-størrelse og sentrer i sliden */
.sponsor-carousel .sponsor-logo {
  display: block;
  max-width: 140px;   /* cap på desktop – motvirker “store tomrom” */
  max-height: 70px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.95;
}

/* Sørg for at innholdet er sentrert i hvert item */
.sponsor-carousel .owl-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* fjern ekstra padding som kan skape store gap */
}

/* Skaler ned på små skjermer, men behold 2 per visning */
@media (max-width: 575.98px) {
  .sponsor-carousel .sponsor-logo {
    max-width: 110px;
    max-height: 55px;
  }
}

/* Litt større på > md */
@media (min-width: 768px) {
  .sponsor-carousel .sponsor-logo {
    max-width: 150px;
    max-height: 80px;
  }
}
@media (min-width: 1200px) {
  .sponsor-carousel .sponsor-logo {
    max-width: 170px;
    max-height: 90px;
  }
}

/* OWL carosel for mobil */
/* Owl Carousel – mobil med Lightbox og jevn høyde */
.owl-carousel .item {
  aspect-ratio: 4 / 3;   /* juster etter behov */
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.owl-carousel .item > a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

.owl-carousel .item img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}


html .divider.divider-jgf.divider-small hr {
	background: #fac93f;
}

.bg-grayscale {
  position: relative;
  overflow: hidden;
}

.bg-grayscale::before {
  content: "";
  position: absolute;
  inset: 0; /* dekker hele div */
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: 1;
}
.bg-grayscale > * {
  position: relative;
  z-index: 2; /* sørger for at teksten ligger over filteret */
}


/* Rustikk stripe */
.rustic-bg {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 0.25em;
}

.rustic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../../assets/img/1_jgf/bilder/striper/rustikk2.png') no-repeat left center;
  background-size: contain;
  z-index: -1;
  mix-blend-mode: multiply; /* gir mer organisk følelse */
  opacity: 0.95;
  left: -0.25em;   /* gir litt start før teksten */
  right: 0.25em;   /* lar det stikke litt ut på høyre side */	
}
