:root {
  --kk-color-background: #1e1e1e;
  --kk-color-background-accent: #333333;
  --kk-color-foreground: #fcfcfc;
  --kk-background-secondary: #fba600;
  /* --kk-color-foreground-yellow: #373737; */

  --kk-color-primary: #fba600;
  --kk-color-primary-hover: #d79001;

  --kk-color-nav-hover-active: #fcfcfc;
}

@media (min-width: 1500px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1420px;
  }
}

body {
  --bs-body-font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;

  --bs-body-bg: var(--kk-color-background);
  --bs-body-color: var(--kk-color-foreground);
}

.bg-primary {
  background-color: var(--kk-color-background) !important;
}

.bg-yellow {
  background-color: var(--kk-background-secondary);
}

/* =-= Navigation =-= */

.navbar {
  --bs-navbar-color: var(--kk-color-foreground);
  --bs-navbar-hover-color: var(--kk-color-nav-hover-active);
}

.btn-primary {
  --bs-btn-color: var(--kk-color-background);
  --bs-btn-bg: var(--kk-color-primary);
  --bs-btn-border-color: var(--kk-color-primary);
  --bs-btn-hover-color: var(--kk-color-background);
  --bs-btn-hover-bg: var(--kk-color-primary-hover);
  --bs-btn-hover-border-color: var(--kk-color-primary-hover);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #0d6efd;
  --bs-btn-disabled-border-color: #0d6efd;

  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.navbar .navbar-brand img {
  width: 350px;
  height: auto;
  /*height: 80px;*/
}

@media screen and (max-width: 768px) {
  .navbar .navbar-brand img {
    height: 50px;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    display: flex;
    justify-content: start;

    width: 10px;
  }
}

.c-yellow {
  color: var(--kk-color-primary);
}

/* =-= Buttons =-= */
.btn-primary.phone-button,
.btn-primary.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 42px;
}

.phone-button .icon.up-right-arrow {
  transition: transform 0.15s ease-in-out;
}

.phone-button:hover>.icon.up-right-arrow {
  transition: transform 0.15s ease-in-out;
  transform: rotate(45deg);
}

footer hr {
  border-top: 4px solid var(--kk-color-primary);
  margin-top: 0;
}

.my-8 {
  margin-top: 8rem;
  margin-bottom: 8rem;
}

.mb-8 {
  margin-bottom: 8rem;
}

.card {
  --bs-card-bg: var(--kk-color-background-accent);
  --bs-card-border-radius: 1rem;
  --bs-card-inner-border-radius: 1rem;
  height: 100%;
}

.card-title {
  hyphens: auto;
}

img.img-fluid {
  border-radius: 1rem;
}

header {
  position: relative;
}

header::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  background: url("/templates/images/kozijnkenners.nl.webp") no-repeat center center;
  background-size: cover;
  /* opacity: 0.5; */
}

header::before {
  content: "";
  width: 100%;
  height: 50%;
  position: absolute;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(30, 30, 30) 0%, rgba(2, 0, 36, 0) 100%);
}

h1 {
  font-weight: 600;
}

h1.header {
  font-size: 3rem;
  font-weight: 900;
}

@media screen and (max-width: 768px) {
  h1.header {
    font-size: 2rem;
  }
}

h2 {
  font-weight: 600;
  font-size: 2rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }
}

.card-icon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-link a {
  text-decoration: underline;
  color: var(--kk-color-foreground);
  text-decoration-color: var(--kk-color-primary);
  text-decoration-thickness: 3px;
  font-weight: 600;
}

.contact-link p {
  color: var(--kk-color-foreground);
  text-decoration-color: var(--kk-color-primary);
  text-decoration-thickness: 3px;
  font-weight: 600;
}

.carousel {
  background: var(--kk-background-secondary);
  margin-bottom: 40px;
  /* padding: 2rem 5rem; */
  padding: 2rem 0;
}

.main-carousel .carousel-cell {
  width: 33.333%;
  padding: 10px;
  box-sizing: border-box;
  cursor: pointer;
}

.carousel-cell img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(251, 166, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1.5rem;
  box-sizing: border-box;
}

.lightbox.open {
  display: flex;
}

.lightbox-carousel {
  width: 80vw;
  max-width: 1000px;
  background: transparent;

}

.lightbox-carousel .video-slide{
  background-color: black;
}

.lightbox-carousel .carousel-cell {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.lightbox-carousel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .main-carousel .carousel-cell {
    width: 100%;
    padding: 5px;
  }

  .carousel-cell img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }

  .lightbox-carousel {
    width: 95vw;
  }

  .lightbox-carousel .carousel-cell {
    padding: 5px;
  }

  .close-lightbox {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box;
}


.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-thumbnail-wrapper {
  position: relative;
  display: inline-block;
}

.video-thumb {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.custom-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  width: 70px;
}

.custom-play-icon:hover {
  background: rgba(0, 0, 0, 0.9);
}