/* .piskel-widget */

.piskel-widget {
    display: block;
    /* Used when fitting  non-square images that might not fit in the container square. */
    overflow: hidden;
}

.piskel-widget.with-checkered-background {
    --color-1: #808080;
    --color-2: #a9a9a9;
    --size: 8px;

    background-image: conic-gradient(var(--color-1) 25%, var(--color-2) 25%, var(--color-2) 50%, var(--color-1) 50%, var(--color-1) 75%, var(--color-2) 75%);
    background-size: calc(var(--size)*2) calc(var(--size)*2);
}

.piskel-widget .piskel-widget-image {
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Attributed piskel */

.attributed-piskel-widget .atttribution-subtitle {
    font-size: 10px;
    padding-top: 3px;
    color: #aaa
}

.attributed-piskel-widget .attribution-link {
    color: #ccc
}

/* Piskel gallery section */

.piskel-gallery-section-widget {
    display: flex;
    padding: 30px 0;
}

.piskel-gallery-section-widget .content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 700px;
}

.piskel-gallery-section-widget .title {
    padding: 0 0 10px 0;
    margin: 0;
    font-size: 22px;
}

.piskel-gallery-section-widget ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.piskel-gallery-section-widget .footer-label {
    display: block;
    margin-top: 8px;
    padding: 4px 0;
    border-top: 1px solid #444;
    text-align: right;
    font-size: 12px;
    color: #aaa;
}

@media (max-width: 800px) {
    .piskel-gallery-section-widget .title {
        padding-bottom: 20px;
    }
    
    .piskel-gallery-section-widget .content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .piskel-gallery-section-widget ul {
        max-width: 450px;
        justify-content: space-around;
    }
}