﻿/* Soubor pro stylovÃƒÂ¡nÃƒÂ­ prvkÃ…Â¯ kterÃƒÂ© jsou specifickÃƒÂ© pro domovskou 
strÃƒÂ¡nku */

/* NÃƒÂ¡hled galerie na FP */

.gallery {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(2, 1fr)
}

.gallery-item {
    overflow: hidden;
    padding-top: calc(100% * 3 / 4);
    position: relative
}

.gallery-item img {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%
}

/* Modal pro zvÃ„â€ºtÃ…Â¡enÃƒÂ­ fotografiÃƒÂ­ */

.modal {
    background-color: #000;
    background-color: #000000e6;
    display: none;
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000
}

.modal-content {
    align-items: center;
    display: block;
    justify-content: center;
    margin: auto;
    max-height: 70vh;
    max-width: 700px;
    max-width: 70%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .3s ease;
    width: calc(70vh * 16 / 9)
}

/* TlaÃ„ÂÃƒÂ­tko pro zavÃ…â„¢enÃƒÂ­ MODALu */

.close {
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 700;
    position: absolute;
    right: 35px;
    top: 15px;
    transition: .3s
}

.close:hover,
.close:focus {
    color: #bbb;
    cursor: pointer;
    text-decoration: none
}

.modal-content img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain
}

.gallery-description {
    padding-bottom: 40px;
    text-align: center
}

/* TlaÃ„ÂÃƒÂ­tka pro pÃ…â„¢epÃƒÂ­nÃƒÂ¡nÃƒÂ­ obrÃƒÂ¡zkÃ…Â¯ */

.prev,
.next {
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    font-weight: bold;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: .6s ease;
    user-select: none;
    width: auto
}

.prev {
    left: 0
}

.next {
    right: 0
}

.stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 24px 0 32px;
}

.stat-card {
    background-color: rgba(4, 5, 5, 0.82);
    border: 1px solid rgba(125, 33, 40, 0.45);
    border-radius: 16px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-height: 200px;
}

.stat-card img {
    width: 56px;
    height: 56px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.number-animate {
    opacity: 1 !important;
}

.video {
    border: #7d2128 10px solid;
    display: block;
    /* height:calc(480px / 9 * 16 * 1); */
    margin: 20px auto;
    max-height: 480px;
    max-width: 854px;
    width: 100%
}

@media screen and (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
    .video {
        height: calc(720px / 16 * 9 * 1);
        width: 90%;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr)
    }

}

@media screen and (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
    #home-container {
        padding-top: 10%;
    }

    .video {
        height: calc(100vw / 16 * 9 * 0.5625);
        width: 100%
    }

}

