* { box-sizing: border-box; }

/* force scrollbar */
html { overflow-y: scroll; }

body {
  font-family: sans-serif;
  margin: 0;
}

.header {
    background-color: #DDD;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    margin-bottom: 2em;;
}

.header h1 {
    color: darkslateblue;
}

.help {
    margin-bottom: 2rem;
}

.help p {
    text-align: center;
    color: rgb(139, 138, 138);
}

#gallery-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    row-gap: 2rem;
    column-gap: 2rem;
} 

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    max-width: 150px;
}

@media only screen and (min-width: 700px) {
    .gallery-item {
        max-width: 300px;
    }

}

@media only screen and (min-width: 900px) {
    .gallery-item {
        max-width: 400px;
    }
}

.gallery-item img {
    max-width: 90%;
    max-height: 90%;
}

.pswp__custom-caption {
    background: rgba(43, 59, 106, 0.75);
    font-size: 16px;
    color: #fff;
    width: calc(100% - 32px);
    max-width: 400px;
    padding: 2px 8px;
    border-radius: 4px;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    text-align: center;
  }
  .pswp__custom-caption a {
    color: #fff;
    text-decoration: underline;
  }
  .hidden-caption-content {
    display: none;
  }

