/* Layout Settings */
body {
  margin: 0;
  background-color: black;
  overflow: hidden; /* Stops the whole page from shaking */
}

.main-wrapper {
  display: flex; /* This is the magic line that fixes the overlap */
  width: 100%;
}

/* Vertical Sidebar */
#navbar-container {
  width: 80px; 
  height: 100vh;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #333;
  flex-shrink: 0;
}

#navbar-container li {
  display: block;
  writing-mode: vertical-rl;
  padding: 25px 0;
  transform: rotate(180deg);
}

#navbar-container a {
  text-decoration: none;
  font-family: sans-serif;
  color: white;
  font-weight: bold;
}

/* Gallery Section */
.container {
  flex: 1; 
  height: 100vh;
  overflow-y: scroll;
  scrollbar-width: none; /* Hides scrollbar */
}
.container::-webkit-scrollbar { display: none; }

.row { display: flex; flex-wrap: wrap; justify-content: center; padding: 20px; }
.column { flex: 0 0 25%; max-width: 25%; padding: 10px; }
.column img { width: 100%; cursor: pointer; border-radius: 5px; }

/* Modal/Popup Styles */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { width: 80%; max-height: 80vh; overflow-y: auto; }
.modal-btn { position: fixed; top: 50%; color: white; font-size: 50px; cursor: pointer; }
.prev { left: 20px; } .next { right: 20px; }