html {
  font-family: Verdana, sans-serif;
  line-height: 0.8;
  text-align: center;
  margin: auto;
}

/* divider lines */
hr {
  width: min(820px, 95%);
  color: #ddd;
}

.title {
  color: black;
  text-decoration: none;
}

.contactlink {
  color: #444; 
}

.gallery-grid {
  margin: 8px auto;
  width: min(900px, 95%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  justify-content: center;
  gap: 4px 4px;
}

.gallery-item {
  width: min(550px, 100%);
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  padding: 50px;
}

#selectedImage {
  max-width: 100%;
  max-height: 100%;
}

#arrow-left, #arrow-right, #close-button {
  margin: 10px;
  font-family: Consolas;
  font-size: 2rem;
  color: #fff9;
  height: 50px;
  width: 50px;
  cursor: pointer;
  /* prevent text selection */
 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#close-button {
  position: absolute;
  top: 0;
  right: 0;
  padding-top: 0.1em;
}