*,
*:before,
*:after {
    box-sizing: border-box;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: center;
}

#all-button, .category-button {
    background-color: #EBEBEB;
    color: black;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    margin: 2px;
}

#all-button {
    border-right: 1px solid #BCBCBC;
}

button:hover, .category-button:hover {
    background-color: #D9D9D9;
}

.version-filters {
    display: flex;
    justify-content: center;
    width: 50%;
    margin: 0 auto;
    padding: 20px 0;
}

.version-filters input[type="radio"] {
    display: none;
}

.version-filters label {
    position: relative;
    padding-left: 25px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #8B8B8B;
}

.version-filters label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #D9D9D9;
    border-radius: 0;
}

.version-filters input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 7px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gallery-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-item {
    width: 33.33%;
    padding: 2px;
    box-sizing: border-box;
    clear: both;
}

.portfolio-item-inner {
    padding: 2px;
}

.grid-sizer {
    width: 33.33%;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.portfolio-image a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-width: 600px) {
    .portfolio-item, .grid-sizer {
        width: 50%;
    }
}

@media (min-width: 900px) {
    .portfolio-item, .grid-sizer {
        width: 33.33%;
    }
}

@media (min-width: 1200px) {
    .portfolio-item, .grid-sizer {
        width: 25%;
    }
}

.portfolio-filters {
    margin-bottom: 20px;
    width: 100%;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
