#galleryViewContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgb(0,0,0,0.25);
    z-index: 2;
}

#galleryView {
    padding: 5px;
    border: 1px solid white;
    background-color: rgb(0,0,0,0.75);
    display: flex;
    gap: 5px;
}

#galleryViewLeft {
    width: 500px;
}

#galleryViewRight {
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#galleryViewMainImg {
    height: 300px;
    border: 1px solid white;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(/media/buddy.png);
    image-rendering: initial;
    position: relative;
}

#galleryViewMainImg:hover #galleryViewNext, #galleryViewMainImg:hover #galleryViewPrev {
    opacity: 1;
}

#galleryViewMainImgLabel {
    padding: 5px;
    border: 1px solid grey;
    display: flex;
    width: fit-content;
    background-color: rgb(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

#galleryViewPrev, #galleryViewNext {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    top: 0;
    opacity: 0;
    transition: opacity ease-in-out 250ms;
}

#galleryViewPrev button, #galleryViewNext button {
    background-color: rgb(0,0,0,0.75);
}

#galleryViewPrev button:hover, #galleryViewNext button:hover {
    background-color: white;
}

#galleryViewPrev {
    left: 5px;
}

#galleryViewNext {
    right: 5px;
}

#galleryViewCarousel {
    display: flex;
    margin-top: 5px;
    border: 1px solid white;
    padding: 5px;
    max-width: 100%;
    overflow-x: auto;
    gap: 5px;
    scroll-behavior: smooth;
}

.galleryViewCarouselItem {
    min-width: 75px;
    height: 50px;
    border: 1px solid white;
    background-position: center;
    background-size: cover;
    background-image: url(/media/buddy.png);
    cursor: pointer;
    image-rendering: initial;
}

#galleryViewTitleContainer {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid grey;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

#galleryViewTitle {
    font-size: 1.5em;
}

#galleryViewDate {
    color: grey;
}

#galleryViewDesc {
    color: lightgray;
}

#galleryViewLinks button {
    width: 100%;
    margin-top: 5px;
}

#galleryViewCloseButton {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#galleryViewCloseButton button {
    width: 150px;
    height: 25px;
    background-color: rgb(0,0,0,0.5);
}

#galleryViewCloseButton button:hover {
    background-color: white;
}





#galleryControls {
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 5px;
    z-index: 2;
}

#galleryControls button, #galleryControls input {
    background-color: rgb(0,0,0,0.75);
}

#galleryControls button:hover {
    background-color: white;
}

#artworksContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
    gap: 5px;
}

.artworkCard {
    max-width: 100%;
    width: 300px;
    height: 300px;
    padding: 5px;
    border: 1px solid white;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.artworkCard .artworkTags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.artworkTag {
    background-color: rgb(0,0,0,0.75);
    backdrop-filter: blur(10px);
    padding: 1px 5px;
    border: 1px solid grey;
}

.artworkCard .artworkThumbnail {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
    image-rendering: initial;
    background-image: url(../media/buddy.png);
}

.artworkCard .artworkTitle {
    display: flex;
    justify-content: space-between;
}

.artworkCard .artworkTitle strong {
    font-size: 1.25em;
}

.artworkCard .artworkTitle em {
    text-align: right;
}

.artworkListItem {
    border: 1px solid grey;
    padding: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    user-select: none;
    cursor: pointer;
}

.artworkListItem em {
    color: grey;
}

.artworkListItem .artworkDesc {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(300px);
    display: block;
    overflow: hidden;
}

.artworkListItem .artworkTags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.artworkListItem .artworkThumbnail {
    height: 100%;
    width: 100px;
    min-width: 100px;
    background-size: cover;
    background-position: center;
    background-image: url(../media/buddy.png);
    image-rendering: initial;
}

.artworkCard:hover, .artworkListItem:hover {
    background-color: rgb(25,25,25);
}

.artworkCard:active, .artworkListItem:active {
    background-color: rgb(35,35,35);
}

@media (max-width: 800px) {
    #galleryView {
        flex-direction: column;
    }

    #galleryViewRight {
        width: 500px;
    }
}

@media (max-width: 500px) {
    #galleryViewLeft, #galleryViewRight {
        width: 80dvw;
    }
}