/*
 * This file is part of the AP project.
 * @version 5.1.0
 * @author Jan Koša <jackinello@gmail.com>
 * @copyright (c) 2022 Jan Koša. All rights reserved.
 */

/*
 * -----------------------------------------------------------------------------
 * --- EmailVariables ---------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
:root {
}

/*
 * --------------------------------------------------------------------------------
 * --- Headline -------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.c-headline {
}

/*
 * -----------------------------------------------------------------------------
 * --- Button back -------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.c-button-back {
    display: inline;
    width: 80px;
    height: auto;
    margin-top: 1.0em;
    margin-bottom: 1.0em;
}

/*
 * -----------------------------------------------------------------------------
 * --- Download file -----------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.c-download-file {
}

.c-download-file__list {
    display: block;
    width: 100%;
    margin: 0 0 1.5em 0;
}

@media screen and (min-width: 600px) {
    .c-download-file__list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px 30px;
    }
}

.c-download-file__item {
    display: flex;
    align-items: center;
    height: 65px;
    margin: 0 0 1.0em 0;
    padding: 0 0 0 65px;
    list-style: none;
    background-image: url("../images/icon_file.svg");
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: contain;
}

@media screen and (min-width: 600px) {
    .c-download-file__item {
        width: calc(50% - 20px);
        min-width: calc(50% - 20px);
        margin: 0;
    }
}

@media screen and (min-width: 1000px) {
    .c-download-file__item {
    }
}

@media screen and (min-width: 1400px) {
    .c-download-file__item {
        width: calc(33% - 20px);
        min-width: calc(33% - 20px);
    }
}

.c-download-wide__file:last-child {
    margin-bottom: 0;
}

/*
 * -----------------------------------------------------------------------------
 * --- File object -------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.c-file {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.c-file--icon {
    max-height: 65px;
}

.c-file__link,
.c-file__link:active,
.c-file__link:link,
.c-file__link:visited {
    text-decoration: underline;
    color: var(--color-red);
}

.c-file__link:hover {
    text-decoration: underline;
    color: var(--color-red);
}

.c-file__info {
    color: #666666;
}

.c-file__description {
    color: #000000;
}

/*
 * -----------------------------------------------------------------------------
 * --- Gallery grid ------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.c-gallery-grid {
    display: block;
    margin: 0 0 1.5em 0;
}

@media screen and (min-width: 450px) {
    .c-gallery-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .c-gallery-grid::after {
        content: '';
        display: block;
        flex-grow: 10;
    }
}

.c-gallery-grid__item {
    display: block;
    overflow: hidden;
    margin: 0 0 15px 0;
    border-radius: var(--image-border-radius);
    xborder: 1px solid #dddddd;
}

.c-gallery-grid__item a {
    width: 100%;
}

.c-gallery-grid__item--youtube iframe {
    aspect-ratio: 16/9;
}

@media screen and (min-width: 450px) {
    .c-gallery-grid__item--image {
        flex-grow: 1;
        height: 24vmin;
        margin: 0;
    }

    .c-gallery-grid__item--video {
        flex-grow: 0;
        height: 24vmin;
        margin: 0;
    }

    .c-gallery-grid__item--youtube {
        flex-grow: 0;
        height: 24vmin;
        margin: 0;
    }
}

@media screen and (min-width: 600px) {
    .c-gallery-grid__item {
    }
}

@media screen and (min-width: 750px) {
    .c-gallery-grid__item {
    }
}

.c-gallery-grid__medium {
    width: 100%;
    height: auto;
    transition: var(--image-trasform-speed);
}

.c-gallery-grid__medium:hover {
    transform: var(--image-trasform-scale);
}

@media screen and (min-width: 450px) {
    .c-gallery-grid__medium {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
