* {
    box-sizing: border-box;
  }
  
#pg-image-gallery {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 4px;
    padding-right: 4px;
}

.pg-image-column {
    flex: 33%;
    max-width: 33%;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 4px;
    padding-right: 4px;
}

.pg-image-column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}

/* Use a two column layout when width is 800px or less */
@media screen and (max-width: 800px) {
    .pg-image-column {
      flex: 50%;
      max-width: 50%;
    }
}

/* Use a one column layout when width is 600px or less */
@media screen and (max-width: 600px) {
    .pg-image-column {
      flex: 100%;
      max-width: 100%;
    }
}

.pg-close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

#pg-photo-viewer {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 10px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}
  
#pg-photo-viewer-content {
    position: relative;
    background-color: black;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 100%;
}

#pg-photo-viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
  
#pg-photo-viewer-close-button:hover,
#pg-photo-viewer-close-button:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.pg-image-preview {
    cursor: pointer;
}

#pg-photo-viewer-prev,
#pg-photo-viewer-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 24px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  border-radius: 0 5px 5px 0;
  user-select: none;
}

#pg-photo-viewer-prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

#pg-photo-viewer-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

#pg-photo-viewer-prev:hover,
#pg-photo-viewer-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* The following adjust styles in main.css used in the footer. */
/* When this stylesheet sets box-sizing: border-box it messes  */
/* with the footer's alignment. These changes fix that by increasing */
/* the percentage width of footer-col-2 */
.footer-col-1 {
  width: calc(30% - (30px / 2));
}

.footer-col-2 {
  width: calc(25% - (30px / 2));
}

.svg-icon {
  box-sizing: content-box;
}
