body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #f2f4f8;
}

.navbar {
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  height: auto;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid black;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar img {
  height: 40px;
}

.buttons button {
  background-color: transparent;
  color: black;
  border: 1px solid black;
  padding: 8px 18px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.main {
  display: flex;
  max-width: 1400px;
  margin: 20px auto;
  gap: 20px;
}

.viewer {
  flex: 4;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
}

.sidebar {
  flex: 1;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.thumb {
  margin-bottom: 15px;
  cursor: pointer;
  text-align: center;
}

.thumb img {
  width: 100%;
  max-width: 140px;
  border: 2px solid transparent;
  border-radius: 4px;
}

.thumb.active img {
  border-color: #0041f5;
}

.thumb span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #333;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }
  .navbar img {
  height: 20px;
}

.buttons button {
  background-color: transparent;
  color: black;
  border: 1px solid black;
  padding: 4px 10px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
}


  .sidebar {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-left: none;
    border-top: 1px solid #ddd;
  }

  .thumb {
    flex: 0 0 auto;
    margin-right: 10px;
  }
}
/* Hide sidebar and center viewer when toggled */
.main.sidebar-hidden .sidebar {
  display: none;
}

.main.sidebar-hidden .viewer {
  flex: unset;
  margin: 0 auto;
}
.icon-btn {
  background-color: transparent;
  color: black;
  border: none;
  padding: 12px 18px;
  font-size: 20px;
  cursor: pointer;
}
.icon-btn:hover {
  background-color: transparent;
}

