/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

header {
  background: #333;
  color: white;
  padding: 20px;
}

.layout {
  display: flex;
}

.sidebar {
  width: 200px;
  background: #eee;
  padding: 20px;
  min-height: 90vh
}

.sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.sidebar button:hover {
  background: #333;
}

.content {
  flex: 1;
  padding: 20px;
}

.gallery img {
  width: 15%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border-radius: 3px;
  margin: 5px;
}

.overlay {
  position: fixed;      
  top: 0;
  left: 0;
  width: 100vw;  
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;        /* ensure it's above everything */
}

.no-scroll {
    overflow: hidden;
}

.overlay img {
  max-width: 90vw; 
  max-height: 90vh;
  object-fit: contain; 
  cursor: pointer;
  pointer-events: none; /*can't click full img*/
}

img, 
#imageOverlay,
.thumbnail {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

footer {
  background: #333;
  color: white;
  padding: 20px;
  text-align: center;
}