/* ==== GENERELL ==== */
* {
  font-family: "Noto Sans Mono", monospace;
  text-decoration: none;
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/icons/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  opacity: 0.5;
  z-index: -1;
}
footer {
  margin-top: auto;
  min-height: 15em;
  background-color: rgba(0, 0, 0, 0.678);
  color: white;
  font-weight: lighter;
  align-content: center;
}
.footer-inner {
  width: 100%;
  min-height: 15em;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}
.footer-image {
  height: 100%;
  overflow: hidden;
  justify-self: start;
}
.footer-image img {
  height: 100%;
  max-height: 15em;
  width: auto;
  object-fit: contain;
}
.footer-col h4 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.4rem;
  opacity: 0.9;
}
#projekt,
#fotografier,
#kontakt {
  scroll-margin-top: 4em;
}

/* ==== HEADER ==== */
header {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.678);
  height: 5em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-items {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}
.logo {
  font-size: 1.3em;
  font-weight: 100;
  margin-right: auto;
  padding-right: 22em;
}
.nav-buttons {
  display: flex;
  gap: 3em;
  font-size: 1.3em;
  font-weight: 100;
}
.nav-items li:first-child {
  margin-right: 5em;
}
li a {
  text-decoration: none;
  color: #ffffff;
}
li a:visited {
  text-decoration: none;
  color: #ffffff;
}
li a:hover {
  text-decoration: none;
  color: #000;
}
li a:focus {
  text-decoration: none;
  color: #ffffff;
}
li a:hover,
.navBtn:active {
  text-decoration: none;
  color: #a3a3a3;
}

/* ==== TITEL ==== */
.category-title {
  font-size: 2.3em;
  font-weight: 350;
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}
.page {
  min-height: calc(100vh - 5em);
  padding: 2rem;
  position: relative;
}
.slider-box {
  width: min(1100px, 92vw);
  height: min(600px, 60vh);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
}
.mySwiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
}
.swiper-slide {
  height: 100%;
}
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
  color: #ffffff;
  text-shadow:
    -1px -1px 0 #686868,
    1px -1px 0 #686868,
    -1px 1px 0 #686868,
    1px 1px 0 #686868,
    -2px 0 0 #686868,
    2px 0 0 #686868;
}
.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
  font-size: 30px;
}
.mySwiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.mySwiper .swiper-pagination-bullet-active {
  background: #ffffff;
}

/* ==== Kort med innehåll - PROJEKT ==== */
.card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem;
  padding-bottom: 2.4rem; 
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.card h3 {
  margin-bottom: 0.3em;
  font-size: 1.4rem;
  color: white;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.2em;
}
.card-meta {
  font-size: 0.85rem;
  color: white;
}
.play-btn-img {
  height: 24px;
}
.card h3 {
  margin-bottom: 0.3em;
  font-size: 1.3rem;
  margin: 0;
}
.card p {
  font-size: 0.75rem;
  color: white;
}

/* ==== FOTOGRAFIER ==== */
.photographs {
  width: min(1600px, 100vw);
  margin: 2rem auto 4rem;
  column-count: 3;
  column-gap: 1rem;
}
.photographs img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1rem;
  border-radius: 5px;
  break-inside: avoid;
  page-break-inside: avoid;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* =========================
   Tablets
   ========================= */
@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .page {
    padding: 1.75rem;
  }
  .nav-items {
    max-width: 92vw;
    width: 92vw;
    justify-content: space-between; 
    gap: 2rem; /
  }
  .logo {
    padding-right: 0;
    margin-right: 0; 
    font-size: 1.35em; 
    white-space: nowrap;
  }
  .nav-buttons {
    display: flex;
    gap: 2.2rem;
    font-size: 1.25em; 
    white-space: nowrap;
  }
  .nav-items li:first-child {
    margin-right: 0;
  }
  .category-title {
    font-size: 2.1em;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
  .slider-box {
    width: min(950px, 94vw);
    height: min(620px, 58vh);
    border-radius: 16px;
  }
  .card-content {
    padding: 1.15rem;
    padding-bottom: 2.4rem; 
  }
  .card h3 {
    font-size: 1.35rem; 
  }
  .card-meta {
    font-size: 0.95rem; 
  }
  .card p {
    font-size: 0.9rem; 
    line-height: 1.45;
  }
  .photographs {
    width: min(1200px, 96vw);
    column-count: 2;
    column-gap: 1rem;
  }
.footer-inner {
  flex-direction: column;
  align-items: center;
}
  .footer-image {
    margin-top: 1em;
    border-radius: 18px;
  }
  .footer-col h4 {
    font-size: 1.15rem;
  }

  .footer-col li {
    font-size: 1rem;
  }
}

/* =========================
   Mobil
   ========================= */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  .page,
  header,
  footer {
    width: 100%;
  }
  .page {
    padding: 1rem;
    margin: 0 auto;
  }
  header {
    height: auto;
    padding: 0.9rem 0;
  }
  .nav-items {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
  }
  .logo {
    margin-right: 0;
    padding-right: 0;
    font-size: 1.2em;
    text-align: center;
    width: 100%;
  }
  .nav-buttons {
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    font-size: 1.1em;
    flex-wrap: wrap;
    text-align: center;
  }
  .category-title {
    font-size: 1.75em;
    margin-top: 2.2rem;
    margin-bottom: 1.8rem;
    text-align: center;
  }
  .slider-box {
    width: 100%;
    max-width: 520px; 
    height: 70vh;
    margin: 0 auto;
    border-radius: 14px;
  }
  .mySwiper {
    width: 100%;
  }
  .mySwiper .swiper-button-next::after,
  .mySwiper .swiper-button-prev::after {
    font-size: 22px;
  }
  .card p {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .card h3 {
    font-size: 1.1rem;
  }
  .card-meta {
    font-size: 0.78rem;
  }
  .card-content {
    padding: 0.9rem;    padding-bottom: 2.4rem; 
  }
  .card-header {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .photographs {
    width: 100%;
    max-width: 520px; 
    margin: 2rem auto 4rem;
    column-count: 1;
    column-gap: 0;
  }
  .photographs img {
    margin-bottom: 0.9rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .footer-image {
    border-radius: 18px;    
    width: 95%;
  }
  .footer-col h4 {
    font-size: 1.05rem;
  }
  .footer-col li {
    font-size: 1rem;
  }
}
/* =========================
   RESPONSIVE: Laptop / MacBook Pro
   ========================= */
@media (max-width: 1600px) and (min-width: 1025px) {

  .page {
    padding: 1.8rem;
  }

  /* NAV */
  .nav-items {
    max-width: 1200px;
  }

  .logo {
    padding-right: 0;     
    margin-right: auto;
    font-size: 1.25em;
  }

  .nav-buttons {
    gap: 2.5rem;
    font-size: 1.25em;
  }


  .category-title {
    font-size: 2.2em;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }


  .slider-box {
    width: min(1200px, 92vw);
    height: min(620px, 62vh);
    border-radius: 16px;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .card-meta {
    font-size: 0.9rem;
  }

  .card p {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* FOTON */
  .photographs {
    width: min(1400px, 96vw);
  }

}
