body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: sans-serif;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
  gap: 16px;
  justify-content: center;
  padding: 10px;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 100, 0.6);
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.hidden { display: none; }

#lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* ser till att hela bilden syns */
  border-radius: 0;     /* tar bort rundade hörn */
  box-shadow: none;     /* tar bort skugga om du vill */
  animation: zoomin 0.3s ease;
}


.lightbox-content img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(255,255,255,0.3);
  animation: zoomin 0.3s ease;
  object-fit: contain;
}


@keyframes zoomin {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
#close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  cursor: pointer;
}


.folder {
  display: inline-block;
  max-width: 320px;
  padding: 14px 20px;
  text-align: center;
  background: #222;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: Orbitron, sans-serif;
  font-weight: bold;
  font-size: clamp(16px, 4vw, 20px);
  letter-spacing: 1px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
  justify-self: center; /* centrera i sin cell */
  width: auto;          /* tar bara så mycket plats texten kräver */
}

.folder:hover {
  background: #333;
  box-shadow: 0 0 15px rgba(255,0,100,0.6);
  transform: scale(1.05);
}


.folder-overlay {
  background: none;
  padding: 0;
}
.folders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px 20px; /* mellanrum både rader & kolumner */
  margin-top: 30px;
  width: 100%;
}


.back-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: Orbitron, sans-serif;
  font-weight: bold;       /* gör den som Galleri */
  font-size: 18px;         /* lite större så den matchar */
  letter-spacing: 1px;     /* konsekvent spacing */
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

.back-btn:hover {
  background: #333;
  box-shadow: 0 0 15px rgba(255,0,100,0.6);
  transform: translateX(-4px);
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
}
.title {
  margin: 0;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border-radius: 8px;
  font-family: Orbitron, sans-serif;
  font-size: 22px;
  transition: box-shadow 0.3s ease, transform 0.2s;
}
.title:hover {
  box-shadow: 0 0 15px rgba(255,0,100,0.6);
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .folders {
    display: flex;          /* byt till flex på mobil */
    flex-direction: column; /* stapla */
    align-items: center;    /* centrera */
    gap: 12px;
  }

  .folder {
    width: 90%;             /* fyller nästan hela skärmen */
    font-size: 18px;
    padding: 16px 20px;     /* större touchyta */
  }
}

#nav-left, #nav-right {
  position: absolute;
  top: 50%;
  font-size: 60px;
  cursor: pointer;
  user-select: none;
  padding: 20px;
  transform: translateY(-50%);
  color: #b400ff;                /* lila pil */
  -webkit-text-stroke: 2px #000; /* tjockare svart kontur */
  text-stroke: 2px #000;
}



#nav-left { left: 10px; }
#nav-right { right: 10px; }

#nav-left:hover, #nav-right:hover {
  color: #b400ff; /* lila som hover-outline */
  transform: translateY(-50%) scale(1.1);
}


