.gallery {
    max-width: 800px;
    margin: auto;
}
.gallery h1 {
    padding-left: 30px;
}
.gallery > .gallery__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-flow: dense;
    padding: 0;
    column-gap: 5px;
    justify-content: stretch;
    margin: auto;
}
.gallery > .gallery__list.small {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.gallery > .gallery__list li {
    list-style: none;
    padding-bottom: 5px;
}
.gallery > .gallery__list.small li {
    border: 2px solid lightgrey;
}

/* filter_desc */

.header_container {
    display: flex;
    align-items: center;
    margin: 0;
}
.header_container h1 {
    margin-right: 30px;
}
.filter_desc {
    border: 1px solid grey;
    font-size: 0.7em;
    padding: 2px 10px;
    background-color: white;
    height: 16px;
    margin: 0 4px;
    cursor: pointer;
}

/* gallery search */

.gallery_search {
    background-color: white;
    border: 1px solid black;
    display: none;
    left: 50%;
    margin: auto;
    padding: 10px 30px 30px;
    position: fixed;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 300px;
}
#gallery_search_close {
    display: inline-block;
    position: absolute;
    right: 14px;
    top: 16px;
    font-size: 30px;
    z-index: 102;
    padding: 11px 11px 9px;
    line-height: 15px;
    font-size: 18px;
    cursor: pointer;
}
#gallery_search_close:hover {
    color: grey;
}
.gallery_search .element {
    color: grey;
    padding: 10px;
}
.gallery_search .element label {
    display: inline-block;
    width: 100px;
}
.gallery_search .element select {
    background-color: white;
    border: 0;
    font-size: 16px;
    outline: 1px solid #CCC;
    padding: 10px;
    width: 150px;
}
.gallery_search .element input {
    background-color: white;
    border: 0;
    color: grey;
    font-size: 16px;
    margin: 40px 10px 20px 0;
    outline: 1px solid #CCC;
    padding: 10px;
    width: 100px;
}
.gallery_search input[name=accept] {
    color: green;
}
@media (max-width: 767px) {
  .gallery > .gallery__list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
