@import url(root.css);

:root {
    --gallery-item-width: 240px;
}

.page.art .art-gallery {
    width: 100%;
    background: transparent;
    overflow: visible;
    pointer-events: all;
}

.art-gallery .category-modal {
    width: 100%;
    height: 50px;
    margin-top: var(--nav-height);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-media-button {
    width: 40px;
    height: 30px;
    margin: 0 10px;
    border-radius: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #9f9f9f;
}

.model-media-button.active {
    background-color: #141311;
    color: #fff;
}

.model-media-button:hover {
    color: #fff;
}

.gallery-items-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--gallery-item-width));
    grid-auto-rows: minmax(20px, auto);
    justify-content: center;
}

.gallery-item {
    position: relative;
    width: var(--gallery-item-width);
    height: var(--gallery-item-width);
    background-color: #141311;
    overflow: hidden;
}

.gallery-item img {
    vertical-align: middle;
}

.gallery-item:hover {
    background-color: #373737;
    transition: background-color .1s ease-in;
}

.gallery-item.scale-in {
    animation-name: scale-in;
    animation-duration: .4s;
    transition: background-size .4s;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)) 0 102% no-repeat;
    background-size: 100% 62%;
    z-index: 4;
    opacity: 0;
    transition: opacity .2s linear;
}

@keyframes scale-in {
    0% {
        background-size: 0;
    }
    100% {
        background-size: 100%;
    }
}
