:root {
  --gallery-page-main-bg: #ffffff;
  --gallery-page-header-color: #3d658f;
  --gallery-page-photos-cont-bg: #f2f4f8;
  --gallery-page-photos-cont-highlight: #add8e6;
}

#main-wrapper {
  background: var(--gallery-page-main-bg);
}

#gallery-header {
  color: var(--gallery-page-header-color);
}

#photos-cont {
  background: var(--gallery-page-photos-cont-bg)
}

.photo-item {
  padding: 5px;
  width: 175px;
}

.photo-item:hover {
  cursor: pointer;
  background-color: var(--gallery-page-photos-cont-highlight);
}


#photos-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 4; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#photos-modal-content {
  position: relative;
  background-color: #f9f9f9;
  box-shadow: 1px 1px 4px 2px #5b5b5b;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 5px 0 0;
  margin-left: 5px;
  margin-right: 5px;
}

#photm-modal-close {
  position: absolute;
  top: 7px;
  right: 5px;
  z-index: 1;
  background-color: #666666;
  color: white;
  border: 1px solid lightgray;
}

#photm-modal-close:hover {
  background-color: #222222;
  color: white;
}

#photm-main img {
  max-width: 100%;
  max-height: calc(100vh - 60px);
}

/* The Close Button */
.close {
  color: #595959;
  float: right;
  font-size: 24px;
  font-weight: bold;
  padding-right: 8px;
  padding-left: 8px;
  margin-right: 5px;
  margin-top: 5px;
  background-color: #d2d2d2;
  border-radius: 16px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  background-color: gray;
}

@media screen and (max-width: 825px), screen and (max-height: 825px) {
  #photos-modal {
    padding-top: 25px;
  }

  .glide__arrow, .glide__slide {
    transform: scale(1.15);
  }

  .close {
    transform: scale(1.15);
  }
  
}