/*************** Font import ***************/
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400&display=swap"); /* overskrifter*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap"); /* brødtekst */

/*************** selects all elements ***************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/***************************************************************************/
/********************************* general *********************************/
/***************************************************************************/

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  color: #050f30;
  min-width: 320px;
}

#wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

img {
  width: 100%;
  display: block;
}

/*************** navigation ***************/

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  width: 100%;
  margin-bottom: 3rem;
}

.menu {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  border-bottom: 2px solid #dedede;
}

.next_logo {
  max-width: 66px;
}

.menu_item {
  list-style: none;
}

.menu_link {
  text-decoration: none;
  text-transform: uppercase;
  font-family: Oswald;
  font-size: 1.5rem;
  color: #050f30;
}

.menu_link:hover {
  color: #ff027c;
}

.active {
  color: #ff027c;
}

#menu_button {
  display: none;
}

/*************** main ***************/

h2,
h3 {
  font-family: Oswald;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: 2.25rem;
}

p {
  font-family: Montserrat;
  text-align: justify;
}

/*****************************************************************************/
/********************************* front page *********************************/
/*****************************************************************************/

section,
.gallery {
  margin-bottom: 6rem;
}

section#global_goals,
.gallery {
  border-bottom: 2px solid #dedede;
}

section h2,
section p {
  margin-bottom: 1rem;
}

section > *:last-child,
.gallery > *:last-child {
  margin-bottom: 4rem;
}

/*************** global goals ***************/

.width_1000 {
  max-width: 1000px;
  margin: 0 auto;
}

#global_goals::before {
  content: "";
  display: block;
  height: 120px;
  margin-top: -120px;
  visibility: hidden;
}

.global_goals_container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(auto, 274px));
  column-gap: 88.5px;
  row-gap: 30px;
}

.global_goals_figure {
  max-width: 274px;
  display: grid;
  grid-template: 1fr / 1fr;
}

.global_goals_figure img {
  grid-area: 1/1/-1/-1;
  max-width: 274px;
}

.global_goals_figure figcaption {
  grid-area: 1/1/-1/-1;
  display: none;
  font-size: 1.2rem;
  color: #fff;
  padding: 1.3rem 1rem 0 1.5rem;
}

.global_goals_figure:hover figcaption {
  display: block;
}

.goal5 figcaption,
figure.goal5 {
  background-color: #ff2c14;
}

.goal8 figcaption,
figure.goal8 {
  background-color: #ac112e;
}

.goal10 figcaption,
figure.goal10 {
  background-color: #ff027c;
}

/*************** interview ***************/

.width_992 {
  max-width: 992px;
  margin: 0 auto;
}

#interview::before {
  content: "";
  display: block;
  height: 120px;
  margin-top: -120px;
  visibility: hidden;
}

.video_and_background_container {
  display: grid;
  grid-template: 1fr/ 1fr;
}

.video_background {
  grid-area: 1/1/-1/-1;
  place-self: center;
  background-color: #ff2c14;
  width: 100%;
  height: 400px;
}

.video_container {
  grid-area: 1/1/-1/-1;
  max-width: 992px;
  max-height: 558px;
  margin: 0 auto;
  box-shadow: -1px 10px 25px -13px rgba(0, 0, 0, 0.75);
}

.video {
  height: 100%;
  width: 100%;
}

/*************** process ***************/

#process::before {
  content: "";
  display: block;
  height: 120px;
  margin-top: -120px;
  visibility: hidden;
}

.width_620 {
  max-width: 620px;
  margin: 0 auto;
}

.process_and_background_container {
  display: grid;
  grid-template: 1fr/ 1fr;
}

.process_background {
  grid-area: 1/1/-1/-1;
  place-self: center;
  background-color: #ac112e;
  width: 100%;
  height: 500px;
}

.process_container {
  grid-area: 1/1/-1/-1;
  margin: 0 auto;
  max-width: 620px;
  box-shadow: -1px 10px 25px -13px rgba(0, 0, 0, 0.75);
}

.process_container img {
  border-top: 1px solid rgba(236, 236, 236, 0.904);
}

/*************** footer ***************/

footer {
  margin: 10rem auto 5rem;
}

footer h3 {
  margin-bottom: 4rem;
}

.team_members {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(auto, 208px));
  gap: 55.5px;
}

.team_member {
  max-width: 208px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);
}

.name {
  font-family: Oswald;
  text-transform: uppercase;
  font-size: 1.5rem;
}

/***************************************************************************/
/********************************* gallery *********************************/
/***************************************************************************/

.gallery {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery_section_one,
.gallery_section_two {
  display: flex;
  justify-content: space-between;
}

.gallery_section_one {
  margin-top: 5rem;
  margin-bottom: 3.5rem;
}

.gallery_image_large {
  max-width: 500px;
}

.gallery_small_container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery_image_small {
  max-width: 451px;
}

.gallery img {
  cursor: pointer;
}

/*************** lightbox ***************/
#lightbox_mask {
  background-color: #ffffffd1;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 125;
  display: none;
}
#lightbox {
  position: fixed;
  inset: 1rem;
  z-index: 150;
  justify-content: center;
  display: none;
}

#lightbox img {
  object-fit: contain;
  pointer-events: none;
}

#previous,
#next {
  position: absolute;
  color: #ff027c;
  font-size: 6em;
  top: 50%;
  transform: translateY(-50%);
}

#previous {
  left: 0.5em;
}

#next {
  right: 0.5em;
}

.disable_scroll {
  overflow: hidden;
}

/*******************************************************************************/
/********************************* media query *********************************/
/*******************************************************************************/

@media screen and (max-width: 1050px) {
  body {
    margin: 0 2%;
  }

  section h2 {
    margin-bottom: 0.8rem;
  }

  .global_goals_container {
    grid-template-columns: repeat(auto-fill, minmax(auto, 200px));
  }

  .global_goals_figure {
    max-width: 200px;
  }

  .video_background {
    display: none;
  }

  /************** gallery *************/

  .gallery_section_one {
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }

  .gallery_section_two {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2em;
  }

  .gallery_small_container {
    gap: 2em;
  }

  .gallery img {
    cursor: auto;
  }
}

@media screen and (max-width: 850px) {
  .global_goals_container {
    grid-template-columns: repeat(auto-fill, minmax(auto, 170px));
    column-gap: 50px;
  }

  .global_goals_figure {
    max-width: 170px;
  }
}

@media screen and (max-width: 800px) {
  .process_background {
    display: none;
  }
}

/* tablet */
@media screen and (max-width: 700px) {
  /* general */

  body {
    margin: 0 4%;
  }

  nav {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #dedede;
    margin: 0 -4%;
    width: initial;
  }

  nav > ul {
    flex-direction: column;
    padding-bottom: 100vh;
  }

  nav > ul li {
    display: flex;
    justify-content: center;
  }

  nav ul {
    gap: 1.5em;
  }

  .menu {
    display: none;
    background-color: #fff;
  }

  #menu_button {
    display: flex;
    justify-content: flex-end;
    padding: 1em 1.3em 1em;
  }

  .fa-bars {
    font-size: 1.6em;
  }
  .fa-times {
    font-size: 2em;
  }

  /* global goals */
  .global_goals_container {
    column-gap: 30px;
  }

  /* footer */
  .team_members {
    grid-template-columns: repeat(auto-fill, minmax(auto, 150px));
  }

  .team_member {
    max-width: 150px;
  }
}
