html,
.about_main body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%; /* Ensure the body doesn't exceed the viewport */
}

.about_main img {
  height: auto;
  width: 100%;
  border-radius: 20px;
}

/* MOBILE */
@media only screen {
  main {
    margin: auto;
  }

  #ABOUT {
    display: none;
  }

  p {
    font-family: "inter", sans-serif;
    color: #3d093a;
    text-align: justify;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* 162.5% */
  }

  h1,
  h2 {
    font-family: "Oswald", serif;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.4px;
  }

  h1 {
    color: white;
  }

  .about_header {
    display: block;
    background-image: url(../assets/about_header.webp);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
  }
  .about_header h2 {
    color: #f2b757;
  }

  .about_header_undertext {
    text-align: center;
    margin-top: -5px;
    margin-bottom: 10px;
  }

  h3 {
    color: #f28057;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .about_gallery p {
    text-align: center;
  }

  h4 {
    color: #c42345;
    text-align: center;
    font-family: Righteous;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px; /* 62.5% */
  }

  h5 {
    color: #000;
    text-align: center;
    font-family: Oswald;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  h6 {
    color: #000;
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .about_content3 {
    background-color: #e8e8e8;
    border-radius: 20px;
    padding-bottom: 30px;
  }

  .about_content3 p,
  h6 {
    margin-left: 20px;
  }

  .about_content3 img {
    border-radius: 20px 20px 0px 0px;
  }

  body,
  html {
    margin: 0;
    padding: 0;
  }

  /* GALLERY MOBILE SLIDER */
  * {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    /* }
  html,
  body {
    height: 100%;
  }
  body {
    margin: 0;
    font: 16px/1.3 sans-serif;
  } */

    /*
  PURE RESPONSIVE CSS3 SLIDESHOW GALLERY by Roko C. buljan
  http://stackoverflow.com/a/34696029/383904
  */

    .CSSgal {
      position: relative;
      overflow: hidden;
      height: 100%; /* Or set a fixed height */
    }

    .CSSgal img {
      border-radius: 0%;
    }

    /* SLIDER */

    .CSSgal .slider {
      height: 100%;
      white-space: nowrap;
      font-size: 0;
      transition: 0.8s;
    }

    /* SLIDES */

    .CSSgal .slider > * {
      font-size: 1rem;
      display: inline-block;
      white-space: normal;
      vertical-align: top;
      height: 100%;
      width: 100%;
      background: none 50% no-repeat;
      background-size: cover;
    }

    /* PREV/NEXT, CONTAINERS & ANCHORS */

    .CSSgal .prevNext {
      position: absolute;
      z-index: 1;
      top: 50%;
      width: 100%;
      height: 0;
    }

    .CSSgal .prevNext > div + div {
      visibility: hidden; /* Hide all but first P/N container */
    }

    .CSSgal .prevNext a {
      background: #fff;
      position: absolute;
      width: 60px;
      height: 60px;
      line-height: 60px; /* If you want to place numbers */
      text-align: center;
      opacity: 0.7;
      -webkit-transition: 0.3s;
      transition: 0.3s;
      -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
      left: 0;
    }
    .CSSgal .prevNext a:hover {
      opacity: 1;
    }
    .CSSgal .prevNext a + a {
      left: auto;
      right: 0;
    }

    /* NAVIGATION */

    .CSSgal .bullets {
      position: absolute;
      z-index: 2;
      bottom: 0;
      padding: 10px 0;
      width: 100%;
      text-align: center;
    }

    .bullets {
      display: none;
    }

    .CSSgal .bullets > a {
      display: inline-block;
      width: 30px;
      height: 30px;
      line-height: 30px;
      text-decoration: none;
      text-align: center;
      background: rgba(255, 255, 255, 1);
      -webkit-transition: 0.3s;
      transition: 0.3s;
    }
    .CSSgal .bullets > a + a {
      background: rgba(255, 255, 255, 0.5); /* Dim all but first */
    }
    .CSSgal .bullets > a:hover {
      background: rgba(255, 255, 255, 0.7) !important;
    }

    /* NAVIGATION BUTTONS */
    /* ALL: */
    .CSSgal > s:target ~ .bullets > * {
      background: rgba(255, 255, 255, 0.5);
    }
    /* ACTIVE */
    #s1:target ~ .bullets > *:nth-child(1) {
      background: rgba(255, 255, 255, 1);
    }
    #s2:target ~ .bullets > *:nth-child(2) {
      background: rgba(255, 255, 255, 1);
    }
    #s3:target ~ .bullets > *:nth-child(3) {
      background: rgba(255, 255, 255, 1);
    }
    #s4:target ~ .bullets > *:nth-child(4) {
      background: rgba(255, 255, 255, 1);
    }
    #s5:target ~ .bullets > *:nth-child(5) {
      background: rgba(255, 255, 255, 1);
    }
    #s6:target ~ .bullets > *:nth-child(6) {
      background: rgba(255, 255, 255, 1);
    }
    #s7:target ~ .bullets > *:nth-child(7) {
      background: rgba(255, 255, 255, 1);
    }
    /* More slides? Add here more rules */

    /* PREV/NEXT CONTAINERS VISIBILITY */
    /* ALL: */
    .CSSgal > s:target ~ .prevNext > * {
      visibility: hidden;
    }
    /* ACTIVE: */
    #s1:target ~ .prevNext > *:nth-child(1) {
      visibility: visible;
    }
    #s2:target ~ .prevNext > *:nth-child(2) {
      visibility: visible;
    }
    #s3:target ~ .prevNext > *:nth-child(3) {
      visibility: visible;
    }
    #s4:target ~ .prevNext > *:nth-child(4) {
      visibility: visible;
    }
    #s5:target ~ .prevNext > *:nth-child(5) {
      visibility: visible;
    }
    #s6:target ~ .prevNext > *:nth-child(6) {
      visibility: visible;
    }
    #s7:target ~ .prevNext > *:nth-child(7) {
      visibility: visible;
    }
    /* More slides? Add here more rules */

    /* SLIDER ANIMATION POSITIONS */

    #s1:target ~ .slider {
      transform: translateX(0%);
      -webkit-transform: translateX(0%);
    }
    #s2:target ~ .slider {
      transform: translateX(-100%);
      -webkit-transform: translateX(-100%);
    }
    #s3:target ~ .slider {
      transform: translateX(-200%);
      -webkit-transform: translateX(-200%);
    }
    #s4:target ~ .slider {
      transform: translateX(-300%);
      -webkit-transform: translateX(-300%);
    }
    #s5:target ~ .slider {
      transform: translateX(-400%);
      -webkit-transform: translateX(-400%);
    }
    #s6:target ~ .slider {
      transform: translateX(-500%);
      -webkit-transform: translateX(-500%);
    }
    #s7:target ~ .slider {
      transform: translateX(-600%);
      -webkit-transform: translateX(-600%);
    }
    /* More slides? Add here more rules */

    /* YOU'RE THE DESIGNER! 
     ____________________
     All above was mainly to get it working :)
     CSSgal CUSTOM STYLES / OVERRIDES HERE: */

    .CSSgal {
      color: #fff;
      text-align: center;
    }
    .CSSgal .slider h2 {
      margin-top: 40vh;
      font-weight: 200;
      letter-spacing: -0.06em;
      word-spacing: 0.2em;
      font-size: 3em;
    }
    .CSSgal a {
      border-radius: 50%;
      margin: 0 3px;
      color: rgba(0, 0, 0, 0.8);
      text-decoration: none;
    }

    /* fjerner desktop galleri */
    .wrapper {
      display: none;
    }
  }
}
/* TABLET */
@media only screen and (min-width: 1000px) {
  p {
    color: #3d093a;
    text-align: justify;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px; /* 170% */
  }

  #ABOUT_OOS {
    display: none;
  }

  #ABOUT {
    display: block;
  }

  .about_header {
    height: 320px;
  }

  h1 {
    font-size: 65px;
  }

  .about_header h2 {
    font-size: 40px;
    margin-top: 90px;
  }

  .about_header_undertext h2 {
    font-size: 35px;
  }

  .about_paragraph_image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1300px;
    margin: auto;
    gap: 50px;
  }

  .about_biography2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    justify-content: center;
    margin: auto;
  }

  .about_content3 {
    background-color: #e8e8e8;
    border-radius: 20px;
    padding-bottom: 30px;
  }

  .about_content3 p,
  h6 {
    margin-left: 20px;
    display: inline-block;
  }

  .about_content3 img {
    border-radius: 20px 20px 0px 0px;
  }
  /* GALLERY I TABLET */

  .wrapper {
    display: grid;
    align-items: center;
    width: 90%;
    height: 300px;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
  }

  @keyframes scrollLeft {
    to {
      left: -1200px;
    }
  }

  .item {
    width: 600px;
    /* height: 8cqw; */
    height: 100%;
    /* background-color: red; */
    border-radius: 6px;
    position: absolute;
    left: max(calc(300px * 7), 100%);
    animation-name: scrollLeft;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  .item img {
    height: 100%;
    width: auto;
    border-radius: 0px;
  }

  .item1 {
    animation-delay: calc(30s / 7 * (7 - 1) * -1);
  }

  .item2 {
    animation-delay: calc(30s / 7 * (7 - 2) * -1);
  }

  .item3 {
    animation-delay: calc(30s / 7 * (7 - 3) * -1);
  }

  .item4 {
    animation-delay: calc(30s / 7 * (7 - 4) * -1);
  }

  .item5 {
    animation-delay: calc(30s / 7 * (7 - 5) * -1);
  }

  .item6 {
    animation-delay: calc(30s / 7 * (7 - 6) * -1);
  }

  .item7 {
    animation-delay: calc(30s / 7 * (7 - 7) * -1);
  }

  /* FJERNER MOBILE GALLERY */
  .CSSgal {
    display: none;
  }

  .container {
    display: none;
  }
}

/* DESKTOP */
@media only screen and (min-width: 1920px) {
  p {
    color: #3d093a;
    text-align: justify;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px; /* 170% */
  }

  #ABOUT_OOS {
    display: none;
  }

  #ABOUT {
    display: block;
  }

  .about_header {
    height: 320px;
  }

  h1 {
    font-size: 65px;
  }

  .about_header h2 {
    font-size: 40px;
    margin-top: 150px;
  }

  .about_header_undertext h2 {
    font-size: 35px;
  }

  .about_paragraph_image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1300px;
    margin: auto;
    gap: 50px;
  }

  .about_biography2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    justify-content: center;
    margin: auto;
  }

  .about_content3 {
    background-color: #e8e8e8;
    border-radius: 20px;
    padding-bottom: 30px;
  }

  .about_content3 p,
  h6 {
    margin-left: 20px;
    display: inline-block;
  }

  .about_content3 img {
    border-radius: 20px 20px 0px 0px;
  }

  /* GALLERY I DESKTOP */
  /* https://www.youtube.com/watch?v=Reu0hHbis5w&t */

  .wrapper {
    display: grid;
    align-items: center;
    width: 90%;
    height: 600px;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
  }

  @keyframes scrollLeft {
    to {
      left: -1200px;
    }
  }

  .item {
    width: 600px;
    /* height: 8cqw; */
    height: 100%;
    /* background-color: red; */
    border-radius: 6px;
    position: absolute;
    left: max(calc(600px * 7), 100%);
    animation-name: scrollLeft;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  .item img {
    height: 100%;
    width: auto;
  }

  .item1 {
    animation-delay: calc(30s / 7 * (7 - 1) * -1);
  }

  .item2 {
    animation-delay: calc(30s / 7 * (7 - 2) * -1);
  }

  .item3 {
    animation-delay: calc(30s / 7 * (7 - 3) * -1);
  }

  .item4 {
    animation-delay: calc(30s / 7 * (7 - 4) * -1);
  }

  .item5 {
    animation-delay: calc(30s / 7 * (7 - 5) * -1);
  }

  .item6 {
    animation-delay: calc(30s / 7 * (7 - 6) * -1);
  }

  .item7 {
    animation-delay: calc(30s / 7 * (7 - 7) * -1);
  }

  /* FJERNER MOBILE GALLERY */
  .CSSgal {
    display: none;
  }
}
