/*
 * TinyGalleryInsert — GPL-2.0-only.
 * Copyright (C) 2013 FredM
 * Copyright (C) 2023 Nicolas Roudaire
 * Copyright (C) 2026 Bertrand Roc
 * Copyright (C) contributors
 * Modified for Dotclear 2.39.3 compatibility and maintenance.
 */
.tinygalleryinsert {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0 auto 1.5em;
    list-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.tinygalleryinsert li {
    list-style: none;
    margin: 0;
    /* 2.0 — correctif 6 : the browser stops laying out off-screen
       thumbnails. "auto" makes it remember the real rendered size once
       known, 160px being the fallback for never-rendered items. On a
       1000-picture gallery this is dramatic; unsupported browsers just
       ignore the declaration. */
    content-visibility: auto;
    contain-intrinsic-size: auto 160px;
}
.tinygalleryinsert li a,
.tinygalleryinsert li span {
    display: block;
    overflow: hidden;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    line-height: 0;
}
.tinygalleryinsert img {
    display: block;
    max-width: 100%;
    height: auto;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 0;
    transform: scale(1);
    transition: transform .25s ease, opacity .2s ease, filter .2s ease;
}
.tinygalleryinsert a:hover img,
.tinygalleryinsert a:focus-visible img {
    transform: scale(1.06);
    opacity: .88;
    filter: brightness(1.04);
}
@media (max-width: 480px) {
    .tinygalleryinsert {
        gap: 8px;
    }
}
