   body {
      font-family: Quicksand, sans-serif;
      margin: 0;
      padding: 10px 33px 0px 33px; /* top  */
      background-color: #27292a;
      display: flex;
      flex-direction: column; 
      justify-content: flex-start;
      align-items: flex-start;
    }
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  color: #ffffff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: transparent;
  border-radius: 2px;
}

.menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: transparent;
}

.menu.is-open {
  display: flex;
}

.menu a {
  color: #555;
  text-decoration: none;
}

    /* 
      THE MASTER LAYOUT CONTAINER
      - grid-template-columns dynamically calculates matching tracks.
      - min-width locks the layout to exactly 5 columns wide minimum (596px).
    */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 110px);
  width: 100%;
  max-width: 1920px; /* Sätter ett snyggt max-tak för stora skärmar */
  margin: 0 auto;    /* Centrerar hela layouten på skärmen */
  box-sizing: border-box;
  padding: 0 12px; 
  justify-content: space-between
}


    /* 
      THE LOGO & NAVIGATION HEADER CONTAINER
    */
    .header-container {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap; 
      gap: 0px;
      padding: 0px 0px 32px 0px; /* 32 Pushes bubble up tightly */
      box-sizing: border-box;
      width: 100%;
      position: relative;

    }

    /* Logo grouping container */
    .logo-group {
      display: flex;
      align-items: baseline;
      gap: 10px;
    }

    /* Brand Name Style (White text) */
    .logo-group .brand-name {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: 2px;
      color: #ffffff; 
      text-transform: uppercase;
      white-space: nowrap;
    }

    /* Brand Title Style (Soft white text) */
    .logo-group .brand-title {
      font-size: 22px;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.6);
      text-transform: uppercase;
      letter-spacing: 2px;
      white-space: nowrap;
    }

    /* Navigation item wrapper */
    .nav-links {
      display: flex;
      flex-wrap: wrap;
      margin-left: auto; /* Tvingar menyn att högerjusteras om den hoppar ner på en ny rad */
      justify-content: flex-end; /* Justerar länkarna snyggt mot högerkanten */
      
    }
    

    /* NAVIGATION LINKS (Strict 110px Wide & White Text) */
    .nav-links .nav-item {
      width: 110px; 
      height: 25px; 
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      color: rgb(134, 133, 133);
      font-weight: bold;
      font-size: 14px;
      transition: background-color 0.2s ease;
    }

    /* Hover effect */
    .nav-links .nav-item:hover {
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
    }

    /* 
      THE IMAGE GALLERY BUBBLE CONTAINER ("THE PRATBUBBLA")
      - Negative horizontal margins extend the background card outward over the parent padding area.
      - Uses repeat(auto-fill, 110px) to force strict horizontal column snapping.
    */
    .pratbubbla-gallery {
  grid-column: 1 / -1;
  display: grid;
  /* Laptop: Snäpper strikt på 110px. Mobil: Skalar flytande mellan 75px och 110px för att passa skärmen */
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
  box-sizing: border-box;
  position: relative; 
  
  padding: 23px;            
  margin: 0 -23px; 
  border-radius: 20px;      
  background-color: #ffffff; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  gap: 0px; /* Behåller dina 0px så bilderna ligger helt tätt ihop */
}

/* SPEECH BUBBLE TRIANGLE ARROW */
.pratbubbla-gallery::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 62px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 24px solid #ffffff;
  pointer-events: none;
}

/* Gör bilderna flexibla inuti sina grid-rutor */
.pratbubbla-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* Garanterar att bilderna förblir perfekt kvadratiska */
  object-fit: cover;        
  border-radius: 0px;       
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}



/* Dölj lightboxen som standard (ÄNDRAD) */
.lightbox {
  visibility: hidden; /* Använd visibility istället för display */
  opacity: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex; /* Ha kvar flex så det är centrerat direkt */
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Visa lightboxen när scriptet lägger till klassen 'active' (ÄNDRAD) */
.lightbox.active {
  visibility: visible;
  opacity: 1;
}


.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Räknare */
.lightbox-counter {
  color: #fff;
  margin-top: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
}

/* Navigationsknappar */
.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 35px;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-btn:hover {
  color: #ccc;
}

.lightbox-btn.close { top: 20px; right: 20px; font-size: 50px; }
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

/* Dölj pilar på mobil om man vill förlita sig på svep-funktionen */
@media (max-width: 768px) {
  .lightbox-btn.prev, .lightbox-btn.next { display: none !important; }
}



/* NÄR MENYN INTE LÄNGRE FÅR PLATS BREVID LOGGAN (Surfplattor / Mindre Laptops) */
@media screen and (max-width: 800px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;

  }

  .nav-links {
    margin-left: 0;
    justify-content: center;
  }
  
  .pratbubbla-gallery::before {
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
  }
   .logo-group .brand-name, 
  .logo-group .brand-title {
    font-size: 28px;
  }
}

/* REN MOBILDESIGN (Skärmar under 500px, t.ex. iPhone och Android) */
@media screen and (max-width: 500px) {
  body {
    padding: 5px 10px 10px 10px; /* Lite mer luft på sidorna för mobilen */
  }

  /* Ändrar grid-strukturen i mobilen så att bilderna tillåts bli lite mindre 
     och på så sätt alltid bildar jämna, snygga rader utan att tryckas ut utanför skärmen */
  .pratbubbla-gallery {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    padding: 23px;
    /* padding: 15px; */
    margin: 0px; /* Tar bort negativa marginaler på mobilen så den inte kliver utanför skärmen */
    border-radius: 26px; 
  }

  .logo-group {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .logo-group .brand-name, 
  .logo-group .brand-title {
    font-size: 26px;
  }

  .nav-links .nav-item {
    width: 75px; /* Gör menyknapparna smalare så att alla 4 ryms på samma rad i mobilen */
    font-size: 12px;
    height: 15px; 
    color: rgb(134, 133, 133);
    /* border-radius: 2px; */
  }

}
