﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #222;
}

.partneri {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

    .partneri h1 {
        margin: 0 0 30px;
        font-size: 36px;
        color: white;
    }

.partneri-sekce {
    margin-bottom: 50px;
}

    .partneri-sekce h2 {
        margin: 0 0 20px;
        font-size: 28px;
        color: white;
    }

.medailony {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.medailon {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.medailon-logo {
    text-align: center;
    margin-bottom: 18px;
}

    .medailon-logo img {
        max-width: 75%;
        max-height: 120px;
        width: auto;
        height: auto;
        display: inline-block;
    }

.medailon-nazev {
    margin: 0 0 12px;
    font-size: 24px;
    text-align: center;
}

.medailon-popis {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}
    .medailon-popis strong {
        font-weight: bold;
        color: orangered;
    }

.vice-info {
    position: relative;
    z-index: 3;
    display: inline-block;
    align-self: flex-start;
    margin-top: 14px;
    margin-bottom: 12px;
    color: royalblue;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    text-decoration:underline;
    letter-spacing:0.3;
}

    .vice-info:hover {
        text-decoration: underline;
        color: rgb(150,150,150);
    }

.medailon-info {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgba(0,0,0,0.8);
    padding: 24px 46px 24px 24px;
    overflow-y: auto;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
    color: white;
}

    .medailon-info.aktivni {
        opacity: 1;
        visibility: visible;
    }

    .medailon-info p {
        margin: 0;
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .partneri {
        padding: 20px 15px 40px;
    }

        .partneri h1 {
            font-size: 30px;
        }

    .partneri-sekce h2 {
        font-size: 24px;
    }

    .medailony {
        grid-template-columns: 1fr;
    }

    .medailon {
        padding: 20px;
    }

    .medailon-nazev {
        font-size: 22px;
    }
}
.zavrit {
    position: absolute;
    z-index: 31;
    right: 12px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: white;
}

/* CAROUSEL DESKTOP */
.medailon-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0 auto;
    z-index: 0;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
}

.carousel-okno {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 280px;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
    min-width: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    justify-content: center;
    align-items: center;
}

    .carousel-slide.aktivni {
        opacity: 1;
        pointer-events: auto;
    }

    .carousel-slide img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        cursor: pointer;
    }

.carousel-sipka {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .carousel-sipka:hover {
        background: rgba(0, 0, 0, 0.85);
    }

.carousel-sipka-vlevo {
    left: 10px;
}

.carousel-sipka-vpravo {
    right: 10px;
}

.carousel-fullscreen {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: none;
}

    .carousel-fullscreen:hover {
        background: rgba(0, 0, 0, 0.85);
    }

/* FULLSCREEN GALLERY */
.fullscreen-galerie {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
}

    .fullscreen-galerie.aktivni {
        display: block;
    }

.fullscreen-obsah {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 100px;
}

    .fullscreen-obsah img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.fullscreen-sipka {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fullscreen-sipka:hover {
        background: rgba(255, 255, 255, 0.28);
    }

.fullscreen-sipka-vlevo {
    left: 24px;
}

.fullscreen-sipka-vpravo {
    right: 24px;
}

.fullscreen-zavrit {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10001;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fullscreen-zavrit:hover {
        background: rgba(255, 255, 255, 0.28);
    }

/* RESPONSIVE CAROUSEL/GALLERY */
@media (min-width: 769px) {
    .carousel-fullscreen {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .medailon-carousel {
        max-width: 100%;
    }

    .carousel-okno {
        height: 220px;
    }

    .carousel-sipka {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .fullscreen-obsah {
        padding: 20px 60px;
    }

    .fullscreen-sipka {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .fullscreen-zavrit {
        width: 42px;
        height: 42px;
        font-size: 24px;
        top: 14px;
        right: 14px;
    }
}

.medailon-info a {
    color: white;
    text-decoration: underline;
    letter-spacing:1px;
}
    .medailon-info a:hover {
        color: rgb(200,200,200);
    }
    .medailon-info a::after {
        content: " ↗";
        font-size: 0.9em;
    }
