/**
 * Copyright (c) Enalean, 2024 - Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.pdftemplate-admin-images-input-file {
    display: none;
}

.pdftemplate-admin-images-preview {
    text-align: center;
}

.pdftemplate-admin-template-images {
    --pdftemplate-transition-image: opacity ease-in-out 250ms;

    min-width: 30%;
    background: var(--tlp-background-color-transparent-50);
}

.pdftemplate-admin-template-images-gallery {
    display: flex;
    gap: var(--tlp-medium-spacing);
    flex-wrap: wrap;
    margin: 0 0 var(--tlp-medium-spacing);
}

.pdftemplate-admin-template-image-wrapper {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 150px;

    &:hover {
        > .pdftemplate-admin-template-image {
            opacity: 0.5;
        }

        > .pdftemplate-admin-template-copy-image-icon {
            opacity: 1;
        }
    }
}

.pdftemplate-admin-template-image {
    max-width: 200px;
    max-height: 100%;
    transition: var(--pdftemplate-transition-image);
}

.pdftemplate-admin-template-copy-image-icon {
    position: absolute;
    right: var(--tlp-small-spacing);
    bottom: var(--tlp-small-spacing);
    transition: var(--pdftemplate-transition-image);
    opacity: 0;
    color: var(--tlp-dimmed-color);
}
