div.wrapper-footer {
    margin-top: 0 !important;
}

/* Widget: Header */
div.wrapper-widget-hero {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    margin-top: -56px;
    padding-top: 56px;
    border-bottom: 2px solid var(--background-layer-0);
}

div.widget-hero {
    margin: auto;
    width: 100%;
    max-width: 1024px;
    padding: 64px 0;
    text-align: center;
    background: url('file://images/background-cat.png') no-repeat left;
}

/* Widget: Project Layout */
div.widget-project {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    padding: 0;
    border-bottom: 2px solid var(--accent);
}

div.project-background,
div.project-foreground {
    grid-column: 1;
    grid-row: 1;
}

div.project-background {
    width: 100%;
    height: 100%;
    opacity: var(--brightness);
    background-image: var(--background);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

div.project-foreground {
    max-width: 1024px;
    padding: 16px;
    margin: auto;
}

div.project-content {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

/* Project: Metadata  */
div.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    gap: 16px;
}

div.project-header p.text-header {
    color: var(--accent);
    font-size: x-large;
}

div.project-platforms {
    height: fit-content;
    width: fit-content;
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 8px;
}

img.platform-icon {
    height: 16px;
}

div.project-info,
div.project-gallery,
div.project-actions,
div.project-gallery-actions {
    flex-basis: 50%;
    max-width: 50%;
}

div.project-info {
    background-color: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 8px;
}

div.project-description {
    padding: 0 8px;
}

/* Project: Screenshots */
div.project-gallery {
    margin: auto;
}

div.project-gallery-upper {
    display: flex;
    flex-wrap: nowrap;
}

div.project-gallery-scroll {
    scroll-behavior: smooth;
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    flex-basis: 100%;
    margin-bottom: 8px;
    gap: 8px;
}

div.project-gallery-scroll::-webkit-scrollbar {
    display: none;
}

img.gallery-image {
    border: 2px solid var(--accent);
    box-sizing: border-box;
    border-radius: 8px;
    min-width: 100%;
    aspect-ratio: 16 / 9;
}

button.project-gallery-button {
    min-height: 100%;
    flex-basis: 100%;
    max-width: 7.5%;
    font-size: xx-large;
    cursor: pointer;
    background-color: transparent;
    border: none;
    transition: var(--transition-time) ease-in-out color;
}

button.project-gallery-button:hover,
button.project-gallery-button:focus-visible {
    color: var(--accent);
}

/* Project: Actions */
div.project-actions {
    display: flex;
    gap: 8px;
}

/* Project: Screenshot Controls */
div.project-gallery-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 12px;
}

div.gallery-dot {
    width: 4px;
    height: 4px;
    margin: 0 8px;
    border-radius: 100%;
    background-color: var(--text-layer-1);
    transition: var(--transition-time) ease-in-out all;
}

div.gallery-dot-active {
    width: 8px;
    height: 8px;
    margin: 0 6px;
    background-color: var(--accent);
}

/* Mobile Styling */
@media (max-width: 640px) {

    /* Not redoing all divs so yeah */
    div.project-gallery-actions {
        display: none;
    }

    div.project-info,
    div.project-gallery,
    div.project-actions,
    div.project-gallery-actions {
        flex-basis: 100%;
        max-width: 100%;
    }

    div.project-content,
    div.project-foreground {
        display: grid;
        gap: 8px;
    }

    div.project-lower {
        display: flex;
    }

    div.project-header {
        display: block
    }

    img.gallery-image {
        width: 100%;
    }
}