/*
 * Kruhový slideshow – port WordPress komponenty (nggallery/gallery-circle-slideshow.php
 * + Assets/css/component.css + sass/components/_gallery.scss).
 * Vše je scopované pod .gallery-circle-slideshow, aby se styly nemíchaly se zbytkem webu.
 * Načítá se jen na stránce, kde se komponenta vyskytuje (viz GalleryCircleSlideshowLoader.cshtml).
 * Šipky jsou kreslené v CSS místo původního Entypo fontu, 3D flip je vždy zapnutý (moderní prohlížeče).
 */

.gallery-circle-slideshow {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ---- velký kruhový prohlížeč ---- */
.gallery-circle-slideshow .fc-slideshow {
    position: relative;
    width: 280px;
    height: 280px;
    background: #fff;
    border: 2px #000 solid;
    border-radius: 50%;
    margin: 0 auto 20px;
    -webkit-perspective: 1200px;
    perspective: 1200px;
}

.gallery-circle-slideshow .fc-slideshow img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-circle-slideshow ul.fc-slides {
    list-style: none !important;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

/* Zdrojové fotky galerie pro velké kolo – schované, JS je po kliknutí kopíruje do .fc-slides. */
.gallery-circle-slideshow .fc-slideshow-small ul.fc-slides-small {
    display: none;
}

.gallery-circle-slideshow ul.fc-slides li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 0;
}
    .gallery-circle-slideshow ul.fc-slides li:before {
        display: none;
    }
/* text v kruhu */
.gallery-circle-slideshow .fc-slideshow h3 {
    position: absolute;
    color: #fff;
    top: 30px;
    left: 30px;
    right: 30px;
    padding-top: 10px;
    font-size: 20px;
    margin: 0 0 10px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gallery-circle-slideshow .fc-slideshow .description {
    position: absolute;
    color: #fff;
    top: 130px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    padding-top: 10px;
    font-weight: normal;
    font-size: 16px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
}

    .gallery-circle-slideshow .fc-slideshow .description * {
        color: #fff !important;
        text-shadow: none;
    }

/* ---- navigace (prev/next) ---- */
.gallery-circle-slideshow .fc-slideshow nav {
    top: 0;
    height: 0;
    width: 100%;
    position: absolute;
    z-index: 10000;
}

.gallery-circle-slideshow .fc-slideshow nav > div {
    position: absolute;
    height: 280px;
    top: 0;
    width: 30%;
}

.gallery-circle-slideshow .fc-slideshow nav .fc-left {
    left: 0;
}

.gallery-circle-slideshow .fc-slideshow nav .fc-right {
    right: 0;
}

/* jen prostřední klikací zóna (horní/dolní jsou v originále skryté) */
.gallery-circle-slideshow .fc-slideshow nav > div span {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.gallery-circle-slideshow .fc-slideshow nav > div span:first-child,
.gallery-circle-slideshow .fc-slideshow nav > div span:nth-child(3) {
    display: none;
}

/* CSS šipky místo Entypo fontu */
.gallery-circle-slideshow .fc-slideshow nav i {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    margin-top: -20px;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.gallery-circle-slideshow .fc-slideshow nav i.icon-arrow-left {
    left: 6px;
}

.gallery-circle-slideshow .fc-slideshow nav i.icon-arrow-right {
    right: 6px;
}

.gallery-circle-slideshow .fc-slideshow nav i:before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 4px;
}

.gallery-circle-slideshow .fc-slideshow nav i:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    margin-top: -6px;
}

.gallery-circle-slideshow .fc-slideshow nav i.icon-arrow-right:after {
    transform: rotate(45deg);
    margin-left: -8px;
}

.gallery-circle-slideshow .fc-slideshow nav i.icon-arrow-left:after {
    transform: rotate(-135deg);
    margin-left: -3px;
}

.gallery-circle-slideshow .fc-slideshow nav > div:hover i {
    opacity: 1;
}

/* ---- 3D flip ---- */
.gallery-circle-slideshow .fc-flip {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.gallery-circle-slideshow .fc-flip div {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery-circle-slideshow .fc-flip .fc-back {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.gallery-circle-slideshow .fc-overlay-light,
.gallery-circle-slideshow .fc-overlay-dark {
    opacity: 0.4;
    border-radius: 50%;
}

.gallery-circle-slideshow .fc-overlay-light {
    background: rgba(255, 255, 255, 1);
}

.gallery-circle-slideshow .fc-overlay-dark {
    background: rgba(0, 0, 0, 1);
}

/* ---- mřížka kulatých náhledů ---- */
.gallery-circle-slideshow .fc-slideshow-smalls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 10px;
}

.gallery-circle-slideshow .fc-slideshow-small {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 1);
    cursor: pointer;
    transition: box-shadow 0.25s ease;
    overflow: hidden;
}

.gallery-circle-slideshow .fc-slideshow-small img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-circle-slideshow .fc-slideshow-small:hover {
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 1);
}

/* ---- responsivita ---- */
@media (min-width: 480px) {
    .gallery-circle-slideshow .fc-slideshow {
        width: 400px;
        height: 400px;
    }

    .gallery-circle-slideshow .fc-slideshow nav > div {
        height: 400px;
    }

    .gallery-circle-slideshow .fc-slideshow h3 {
        top: 60px;
        left: 60px;
        right: 60px;
        padding-top: 20px;
    }

    .gallery-circle-slideshow .fc-slideshow p {
        top: 110px;
        left: 60px;
        right: 60px;
        bottom: 60px;
        padding-top: 20px;
        font-size: 18px;
    }
}

@media (min-width: 750px) {
    .gallery-circle-slideshow .fc-slideshow-small {
        width: 190px;
        height: 190px;
        margin-bottom: 10px;
    }
}
