#main>.header {
    display: flex;
    flex-direction: column;
    margin: 0 auto 20px auto;
    align-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#main>.content {
    display: flex;
    align-content: center;
    flex: 1;
    min-height: 0;
}


.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    animation: intro-screen 10s ease forwards;
}

.intro-screen .intro-image,
.intro-screen .intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.intro-screen .intro-image {
    width: 30%;
    animation: intro-image 10s ease forwards;
}

.intro-screen .intro-text {
    color: #fff;
    font-size: clamp(1rem, 4vw, 4rem);
    text-transform: uppercase;
    animation: intro-text 10s ease forwards;
}

@keyframes intro-screen {

    0%,
    80% {
        background: #000;
        opacity: 1;
    }

    95% {
        background: #fff;
    }

    100% {
        opacity: 0;
    }
}

@keyframes intro-image {

    0%,
    20% {
        opacity: 0
    }

    40% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes intro-text {

    0%,
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(5px);
    }

    80%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(-5px);
    }
}


.filter-bar {
    margin: 0;
}

.filter-bar ul li {
    display: inline-block;
    position: relative;
    padding: 8px 0;
}

.filter-bar ul li button {
    border-left: 1px solid #dedede;
    padding: 0 8px;
    text-wrap: nowrap;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    z-index: 1000;
    opacity: 90%;
    border-radius: 5px;
}


@keyframes slideInSidebar {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar {
    animation: slideInSidebar 0.5s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    width: 280px;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.sidebar-resize-handle {
    flex: 0 0 auto;
    width: 6px;
    margin-right: -3px;
    cursor: col-resize;
    background: transparent;
    position: relative;
    z-index: 1;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.resizing {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar.removed+.sidebar-resize-handle {
    display: none;
}

body.sidebar-resizing {
    cursor: col-resize;
    user-select: none;
}

.sidebar .search-bar input {
    width: 180px;
}


.artwork-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    flex: 1 1 0;
    min-width: 0;
}

.artwork-list {
    flex: 1;
}

.artwork-item {
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease;
    will-change: transform, opacity;
    display: block;
}

.artwork-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.artwork-item.hidden-animation {
    opacity: 0;
}

.artwork-item.removed-animation {
    display: none;
}

.artwork-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.artwork-list.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, 30px);
    gap: 3px;
}

.artwork-list.grid-layout .artwork-item {
    aspect-ratio: 1;
}

.artwork-list.grid-layout .artwork-item .artwork-image {
    display: none;
}

.artwork-list.image-layout {
    position: relative;
}

.artwork-list.image-layout .artwork-item {
    aspect-ratio: var(--aspect-ratio, 1);
    position: absolute;
    width: 240px;
    margin-bottom: 10px;
}

.artwork-list.image-layout .artwork-item .thumbnail {
    display: none;
}

.artwork-list.image-layout .artwork-item .artwork-details {
    display: none;
}

.artwork-list.list-layout .artwork-item {
    display: flex;
    aspect-ratio: auto;
    margin: 1rem auto;
}

.artwork-list.list-layout .artwork-item .thumbnail {
    display: none;
}

.artwork-list.list-layout .artwork-item img {
    max-height: 300px;
    width: auto;
}


.text-artwork-list {
    margin-left: auto;
    margin-right: auto;
}

.text-artwork-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #0000003d;
    padding: 10px;
}

.text-artwork-item .text-artwork-content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.text-artwork-item .text-artwork-content.expanded {
    max-height: none;
}

.text-artwork-item .text-artwork-content .title {
    font-size: 1.4em;
    color: #607D8B;
    margin-bottom: 10px;
    padding: 0;
}

.text-artwork-item .text-artwork-content p {
    margin: 0;
    padding: 0;
}

.text-artwork-item .text-artwork-content iframe,
.text-artwork-item .text-artwork-content .pdf-download {
    display: none;
}

.text-artwork-item .text-artwork-content.expanded iframe,
.text-artwork-item .text-artwork-content.expanded .pdf-download {
    display: block;
    margin: 10px 0 10px 0;
}