/* Video Slider Styles */
.rw-youtuber-section {
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    background-color: #f9f9f9;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.rw-section-title {
    text-align: center;
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 500;
    color: #1d1d1f;
    position: relative;
    padding-bottom: 15px;
}
.rw-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #5fbb2e;
}
.rw-youtuber-header {
    margin-bottom: 0;
    width: 100%;
}
/* Slider styly */
.rw-videos-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
    margin: 0 -50px;
}
.rw-videos-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 10px 0 20px;
    margin: 0 10px;
    width: auto;
}
.rw-video-item {
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    margin: 0 10px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.rw-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.rw-video-wrapper {
    position: relative;
    width: 100%;
}
.rw-youtube-player-lazy {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #000;
    cursor: pointer;
}
.rw-youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.rw-youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.rw-youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(95, 187, 46, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.rw-youtube-play-button svg {
    color: #fff;
    width: 24px;
    height: 24px;
}
.rw-youtube-player-lazy:hover .rw-youtube-thumbnail img {
    transform: scale(1.05);
    opacity: 0.7;
}
.rw-youtube-player-lazy:hover .rw-youtube-play-button {
    background-color: #4a9724;
    transform: translate(-50%, -50%) scale(1.1);
}
.rw-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #5fbb2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #5fbb2e;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.rw-slider-nav:hover {
    background-color: #5fbb2e;
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.rw-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.rw-slider-prev {
    left: 5px;
}
.rw-slider-next {
    right: 5px;
}
/* Styly pro tečkovou navigaci */
.rw-mosaic-nav {
    margin-top: 15px;
    text-align: center;
}
.rw-mosaic-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}
.rw-mosaic-dots-inner {
    display: flex;
    transition: transform 0.3s ease;
}
.rw-mosaic-dot {
    width: 10px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.rw-mosaic-dot.active {
    background-color: #5fbb2e;
    transform: scale(1.2);
}
/* Video Lightbox styly */
.rw-video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.rw-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.rw-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(95, 187, 46, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.rw-lightbox-close:hover {
    background-color: #5fbb2e;
    transform: rotate(90deg);
}
.rw-lightbox-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.rw-lightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* ===== STYLY PRO ZIG-ZAG SEKCE ===== */
.rw-sections__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    padding-bottom: 5px;
}
.rw-sections__content-wrapper--left {
    flex: 1 1 40%;
    padding-right: 20px;
    box-sizing: border-box;
    order: 1;
    display: flex;
    flex-direction: column;
}
.rw-sections__img-wrapper--left {
    flex: 1 1 35%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    order: 2;
    padding-left: 20px;
    box-sizing: border-box;
}
.rw-sections__content-wrapper--right {
    flex: 1 1 40%;
    padding-left: 20px;
    box-sizing: border-box;
    order: 2;
    display: flex;
    flex-direction: column;
}
.rw-sections__img-wrapper--right {
    flex: 1 1 35%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    order: 1;
    padding-right: 20px;
    box-sizing: border-box;
}
.rw-sections__img--left,
.rw-sections__img--right {
    max-width: 100%;
    border: 10px solid white;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.rw-sections__img--left img,
.rw-sections__img--right img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.rw-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #75c014;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.rw-btn span {
    color: white;
}
.rw-btn:hover {
    background-color: #629c11;
}
/* ===== RESPONZIVNÍ NASTAVENÍ ===== */
@media (max-width: 1024px) {
    .rw-video-item {
        width: calc(50% - 20px);
    }
}
@media (max-width: 767px) {
    .rw-youtube-play-button {
        width: 50px;
        height: 50px;
    }
   
    .rw-youtube-play-button svg {
        width: 20px;
        height: 20px;
    }
   
    .rw-lightbox-content {
        width: 95%;
    }
   
    .rw-lightbox-close {
        top: -45px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
   
    .rw-mosaic-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
   
    .rw-youtuber-section {
        padding: 20px;
    }
   
    .rw-section-title {
        font-size: 20px;
    }
   
    .rw-video-item {
        width: calc(100% - 20px);
    }
   
    .rw-videos-slider {
        padding: 0 40px;
        margin: 0 -40px;
    }
   
    .rw-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    /* Responzivní styly pro zig-zag sekce */
    .rw-sections__content-wrapper--left,
    .rw-sections__content-wrapper--right,
    .rw-sections__img-wrapper--left,
    .rw-sections__img-wrapper--right {
        flex: 1 1 100%;
        padding-left: 0;
        padding-right: 0;
        order: 1;
    }
   
    .rw-sections__img-wrapper--left,
    .rw-sections__img-wrapper--right {
        margin-bottom: 10px;
        margin-top: 10px;
    }
   
    .rw-btn {
        display: block;
        text-align: center;
        margin: 20px auto 0;
    }
    /* Posouvání teček na mobilu */
    .rw-mosaic-dots {
        overflow: hidden;
        justify-content: flex-start;
        width: 80px; /* Pro cca 5 teček: 5 * (8px width + 8px margin) ≈ 80px; uprav podle potřeby */
    }
}
@media (max-width: 480px) {
    .rw-youtuber-section {
        padding: 15px;
    }
   
    .rw-section-title {
        font-size: 18px;
    }
   
    .rw-videos-slider {
        padding: 0 30px;
        margin: 0 -30px;
    }
   
    .rw-youtube-play-button {
        width: 40px;
        height: 40px;
    }
   
    .rw-youtube-play-button svg {
        width: 16px;
        height: 16px;
    }
   
    .rw-slider-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
   
    .rw-lightbox-close {
        top: -40px;
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
    /* Uprav šířku pro menší mobily, pokud chceš méně teček viditelných */
    .rw-mosaic-dots {
        width: 64px; /* Pro cca 4 tečky: 4 * (8px + 8px) ≈ 64px */
    }
}