@font-face {
  font-family: "Roboto Slab"; /* set name */
  src: url(/assets/fonts/roboto-slab/RobotoSlab-VariableFont_wght.ttf); /* url of the font */
}

:root {
  --kk-bold: 600;
  --kk-menu-text-color: 255, 255, 255;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* ----- bigger-picture.js changes ----- */

/* small fix for bigger-picture.js scroll bug */
.bp-lock body {
  overflow: visible;
}

/* replace bigger-picture.js control icons */
.bp-prev::before, .bp-next::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.bp-x:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}


/* ----- Main ----- */

main {
  margin: 50px auto 0;
  padding-top: 1rem;
  flex: 1 0 auto;
}

main.w900px {
  max-width: 900px;
}

main.w700px {
  max-width: 700px;
}


/* ----- Menu/Header ----- */

/* Fix not working minstyle animation */
@media screen and (max-width: 768px) {
  .ms-menu .ms-menu-link ul {
    -webkit-transition: none;
    transition: none;
  }
}

.ms-menu {
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgb(var(--primary-bg-color));
  color: rgb(var(--kk-menu-text-color));
}

.ms-menu .ms-menu-logo a {
  font-family: "Roboto Slab", serif;
  color: rgba(var(--kk-menu-text-color), 1);
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
}

.ms-menu .ms-menu-icon {
  color: rgba(var(--kk-menu-text-color), 1);
}

.ms-menu .ms-menu-link {
  background-color: rgba(var(--primary-bg-color), 1);
}

.ms-menu .ms-menu-link ul li a {
  color: rgba(var(--kk-menu-text-color), 1);
}

.ms-menu .ms-menu-link ul li.kk-social-icon-links
{
  padding-left: 20px;
  padding-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;

}

.ms-menu .ms-menu-link ul li.kk-social-icon-links a
{
  padding: 0;
  display: inline;
  height: fit-content;

}

.ms-menu .ms-menu-link ul li.kk-social-icon-links a svg
{
  vertical-align: middle;
}

.ms-menu .ms-menu-link ul li a:hover {
  color: rgba(var(--kk-menu-text-color), 0.8);
}


/* ----- Footer ----- */

.ms-footer {
  flex-shrink: 0;
  margin-top: 3rem;
}

.ms-footer .kk-footer-logo {
  margin-bottom: 2rem;
}

.ms-footer .kk-footer-logo h1 {
  font-family: "Roboto Slab", serif;
  text-transform: uppercase;
  font-size: 25px;
  font-weight: normal;
  letter-spacing: 2px;
}

.ms-footer .kk-footer-social-links a {
  margin: auto 0.5rem;
}


/* ----- Other general styling ----- */

hr {
  margin: 2rem 0;
}

blockquote, .ms-blockquote {
  p {
    font-size: 1.1rem;
  }

  footer {
    margin-top: 0.5rem;
    margin-left: 1rem;
    font-size: 0.85rem;
    font-style: italic;
  }
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.6rem;
}

h5 {
  font-size: 1.4rem;
}

h6 {
  font-size: 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--kk-bold);
}

.kk-shape-rect-circled {
  border-radius: 9999px;
}

.kk-text-bg {
  color: rgb(var(--main-bg));
}


/* ----- error 404 ----- */

img.error404 {
  display: block;
  margin: auto;
  max-width: 300px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

p.error404 {
  display: block;
  margin: auto;
  text-align: center;
}


/* ----- Steplist styling ----- */
.kk-steplist {
  display: grid;
  grid-template-columns: 1fr fit-content(100%) 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: 1rem;
  margin: 1.5rem 1rem;
}

.kk-steplist .kk-step-number {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1.5rem;
  font-size: 1.2rem;
  text-align: center;
  grid-column: 2/3;
}

.kk-steplist .kk-step-number.ms-shape-circle
{
  padding: 0;
}

.kk-steplist .kk-step-number.kk-fontsize-medium
{
  font-size: 1.2rem;
}

.kk-steplist .kk-step-number.kk-fontsize-large
{
  font-size: 1.5rem;
}

.kk-steplist .kk-step-number.kk-fontsize-xlarge
{
  font-size: 2rem;
}

.kk-steplist .kk-step-description
{
  grid-column: 1 / -1;
  justify-self: center;
  padding-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 576px) {
  .kk-steplist {
    grid-template-columns: fit-content(33%) 1fr;
  }

  .kk-steplist .kk-step-number {
    grid-column: 1/2;
  }

  .kk-steplist .kk-step-description
  {
    grid-column: 2 / -1;
    justify-self: start;
    padding-bottom: 0;
    text-align: left;
  }
}


/* ----- Details styling ----- */

details {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  padding: 1rem 0;
  margin: 0 1rem;
  border-bottom: 1px solid rgb(var(--ligth-bg-color));
}

details:last-of-type {
  border-bottom: none;
}

details > summary {
  font-weight: bold;
  line-height: 24px;
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-column-gap: 1rem;
  align-items: center;
}

details > summary {
  list-style-type: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Create a new custom triangle on the right side */
details > summary::before {
  width: 24px;
  height: 24px;
  display: inline-block;
  content: '';
  background-color: currentColor;
  -webkit-mask: url(/assets/icons/circle-chevron-right.svg) no-repeat 50% 50%;
  mask: url(/assets/icons/circle-chevron-right.svg) no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
  transform-origin: center;
  transition: transform 0.2s ease-out;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

details > .accordion-text {
  padding: 1rem 0 0 calc(24px + 1rem);
}



/* ----- Gallery ----- */

.kk-gallery {
  margin: auto;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 2fr);
}

.kk-gallery .kk-imgbox {
  height: auto;
  display: inline-block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--default-border-radius);
  cursor: pointer;
}

.kk-gallery .kk-imgbox img {
  width: 100%;
  transform: scale(1);
  transition: all 0.25s ease-in-out;
  border-radius: var(--default-border-radius);
}

.kk-gallery .kk-imgbox img:hover{
  transform: scale(1.1);
}

.kk-gallery .kk-imgbox .img-overlay {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.kk-gallery .kk-imgbox .img-maximize {
  display: none;
}

.kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) {
  grid-column: 1 / -1;
  aspect-ratio: 6 / 1;
}

.kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) img {
  filter: blur(2em);
}

.kk-gallery[data-max-show="3"] .kk-imgbox:nth-child(4) img,
.kk-gallery[data-max-show="5"] .kk-imgbox:nth-child(6) img {
  width: 200%;
  filter: blur(2em);
}

.kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) img:hover,
.kk-gallery[data-max-show="3"] .kk-imgbox:nth-child(4) img:hover,
.kk-gallery[data-max-show="5"] .kk-imgbox:nth-child(6) img:hover {
  transform: none;
}

.kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) .img-overlay,
.kk-gallery[data-max-show="3"] .kk-imgbox:nth-child(4) .img-overlay,
.kk-gallery[data-max-show="5"] .kk-imgbox:nth-child(6) .img-overlay {
  display: block;
}

.kk-gallery[data-max-show="3"] .kk-imgbox:nth-child(n+5),
.kk-gallery[data-max-show="5"] .kk-imgbox:nth-child(n+7) {
  display: none;
}

@media (min-width: 576px) {

  .kk-gallery[data-img-count="3"] {
    grid-template-columns: repeat(3, 2fr);
  }

  .kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) {
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }

  .kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) img {
    filter: none;
  }

  .kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) img:hover {
    transform: scale(1.1);
  }

  .kk-gallery[data-img-count="3"] .kk-imgbox:nth-child(3) .img-overlay {
    display: none;
  }

  .kk-gallery[data-max-show="3"]:not([data-img-count="3"]) {
    grid-template-columns: repeat(3, 2fr) 1fr;
  }

  .kk-gallery[data-max-show="3"]:not([data-img-count="3"]) .kk-imgbox:nth-child(4) {
    aspect-ratio: 1/2;
  }

  .kk-gallery[data-max-show="5"] {
    grid-template-columns: repeat(3, 2fr);
  }
}

@media (min-width: 768px) {

  .kk-gallery[data-max-show="5"] {
    grid-template-columns: repeat(3, 2fr);
  }
}

@media (min-width: 1200px) {

  .kk-gallery[data-max-show="5"] {
    grid-template-columns: repeat(5, 2fr) 1fr;
  }

  .kk-gallery[data-max-show="5"] .kk-imgbox:nth-child(6) {
    aspect-ratio: 1/2;
  }
}


/* ----- Article ----- */

.ms-article .ms-article-title h1,
.ms-article .ms-article-title h2,
.ms-article .ms-article-title h3,
.ms-article .ms-article-title h4,
.ms-article .ms-article-title h5,
.ms-article .ms-article-title h6,
.ms-article .ms-article-title a {
  font-weight: var(--kk-bold);
}

.ms-article .ms-article-text h1,
.ms-article .ms-article-text h2,
.ms-article .ms-article-text h3,
.ms-article .ms-article-text h4,
.ms-article .ms-article-text h5,
.ms-article .ms-article-text h6 {
  padding: 1.7rem 0 1rem;
}
.ms-article .ms-article-text h1 {
  font-size: 1.7rem;
}
.ms-article .ms-article-text h2 {
  font-size: 1.6rem;
}
.ms-article .ms-article-text h3 {
  font-size: 1.5rem;
}
.ms-article .ms-article-text h4 {
  font-size: 1.4rem;
}
.ms-article .ms-article-text h5 {
  font-size: 1.3rem;
}
.ms-article .ms-article-text h6 {
  font-size: 1.2rem;
}

.ms-article .ms-article-picture {
  --kk-img-ratio: auto;
  margin: 1rem auto;
  border-radius: 0;
}

.ms-article .ms-article-picture .kk-imgbox {
  max-height: 85svh;
  width: 100%;
  aspect-ratio: var(--kk-img-ratio);
}

.ms-article .ms-article-picture .kk-imgbox img {
  margin: 0 auto;
  width: auto;
  height: 100%;
  border-radius: var(--default-border-radius);
}

.ms-article .ms-article-picture iframe {
  margin: auto;
  border: none;
  border-radius: var(--default-border-radius);
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 85svh;
}

.ms-article .ms-article-picture .img-maximize {
  display: none;
  position: absolute;
  top: var(--default-border-radius);;
  right: var(--default-border-radius);;
  height: 32px;
  width: 32px;
  color: white;
  background-color: #00000040;
  border-radius: var(--default-border-radius);
}

.ms-article .ms-article-picture[data-expandable] .img-maximize {
  display: flex;
  justify-content: center;
  align-items: center;
}


.ms-article .ms-article-picture figcaption {
  margin: 0.3rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.ms-article .ms-article-picture[data-crop] .kk-imgbox img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}



/* ----- Cards ----- */

.kk-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.kk-card-list .ms-card{
  margin: 0;
}

.kk-card-list .ms-card .ms-card-title h4{
  font-size: 1.4rem;
}


@media (min-width: 768px) {
  .kk-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .kk-card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
