.reviews-widget *{
    margin:0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.reviews-widget{
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 0;
}

.review-widgget-handeler{
  margin: 0 auto;
  
  padding: 60px 0;
  background: white;
  transition: max-height 0.2s ease;
}
.review-widgget-handeler .reviews-widget-with-mask {
    position: relative;
    max-height: 1500px;
    overflow: hidden;
    transition: max-height 1s ease-in-out;
}
.reviews-widget .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.review-widgget-handeler .fade-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 450px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    align-content: end;
}
.review-widgget-handeler .show-more-btn,
.review-widgget-handeler .show-less-btn {
    position: relative;
    background: var(--gradient-cta);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 20px auto 0;
    text-align: center;
}

.review-widgget-handeler .show-more-btn:hover,
.review-widgget-handeler .show-less-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.review-widgget-handeler .show-less-btn {
    display: none;
}

.review{
    padding: 24px;
    border: 1px solid rgba(121, 72, 156, 0.15);
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review:hover {
    box-shadow: 0 8px 24px rgba(121, 72, 156, 0.12);
    transform: translateY(-4px);
    border-color: rgba(121, 72, 156, 0.25);
}
.image-handeler{
    display:flex;
}
.stars {
    color: #e4c953;
    line-height: 1;
    font-weight: 900;
    text-align: start;
    font-size: 1.5rem;
    margin: 8px 0 12px 0;
    filter: drop-shadow(0 1px 2px rgba(243, 231, 106, 0.3));
}
.title-handeler{
    display: flex;
    flex-direction: column;
    padding: 0 6px;
    line-height: 1.4;
    justify-content: center;
    min-height: 50px;
    margin: 0;
}

.title{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.review{
    margin-bottom: 8px;
}

.icon{
    margin: 0;
    width: 48px;
    height: 48px;
    align-self: center;
    border-radius: 50%;
    border: 2px solid rgba(121, 72, 156, 0.1);
}

.review .top{
    display: flex;
    align-items: center;
    margin: 0 0 16px 0;
    width: 100%;
    gap: 12px;
}

.basic-text, .review p{
    font-size: var(--size-body);
    font-weight: 400;
    color: #334155;
    line-height: 1.4;
    text-align: left;
    letter-spacing: -0.01em;
    margin: 12px 0;
}

.place{
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
}
 
  .image-handeler{
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default: 2 sloupce (pro 2+ obrázky) */
    gap: 8px;
    padding: 16px 0 0 0;
  }

  /* 1 obrázek = celá šířka */
  .image-handeler:has(img:only-child) {
    grid-template-columns: 1fr;
  }

  /* Přesně 2 obrázky = 50/50 */
  .image-handeler:has(img:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
  }

  /* 3+ obrázky = 2 sloupce s wrap (automaticky se zalomí) */
  .image-handeler:has(img:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-handeler img{
    border-radius: 12px;
    width: 100%; /* Grid určuje šířku */
    height: auto;
    object-fit: cover;
    aspect-ratio: 2/1;
    border: 1px solid rgba(121, 72, 156, 0.1);
    transition: all 0.3s ease;
  }

  .image-handeler img:hover {
    transform: scale(1.05);
    border-color: rgba(121, 72, 156, 0.3);
    box-shadow: 0 4px 12px rgba(121, 72, 156, 0.15);
    cursor: pointer;
  }

 .reviews-toggle-btn{
    display: flex;
    justify-self: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #79489C 0%, #995bc5 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(121, 72, 156, 0.3);
 }

 .reviews-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 72, 156, 0.4);
 }
.social-icon{
    margin-left: auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
}

.social-icon img{
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.social-icon.firmy img{
    width: 32px;
    height: 32px;
}
 .reviews-widget{
 
  margin: 50px auto;
  
 }

 .r-headline {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0;
}

.r-headline h2 {
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 700px;
   margin: var(--space-6) auto 3rem auto;
  font-size: var(--size-subtitle);
}

/* Media queries pro mobilní zobrazení */
@media (max-width: 768px) {
    .reviews-widget {
        padding: 40px 16px;
        margin: 30px auto;
    }

    .review-widgget-handeler {
        padding: 40px 0;
    }

    /* Grid na jeden sloupec */
    .reviews-widget .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Karty na celou šířku */
    .review {
        padding: 28px;
        border-radius: 20px;
    }

    /* Zvětšení nadpisů */
    .r-headline h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        padding: 0 16px;
    }

    /* Zvětšení ikon */
    .icon {
        width: 56px;
        height: 56px;
    }

    /* Zvětšení textů */
    .title {
        font-size: 1.15rem;
    }

    .basic-text {
        font-size: 0.75rem;
        line-height: 1.7;
    }

    .place {
        font-size: 0.95rem;
    }

    /* Hvězdičky větší */
    .stars {
        font-size: 1.75rem;
        margin: 10px 0 14px 0;
    }

    /* Tlačítka */
    .review-widgget-handeler .show-more-btn,
    .review-widgget-handeler .show-less-btn {
        font-size: 1.05rem;
        padding: 14px 32px;
    }

    .reviews-toggle-btn {
        font-size: 1.05rem;
        padding: 14px 36px;
    }

    /* Sociální ikony větší */
    .social-icon img {
        width: 28px;
        height: 28px;
    }

    .social-icon.firmy img {
        width: 36px;
        height: 36px;
    }

    /* Fade efekt */
    .review-widgget-handeler .fade-effect {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .reviews-widget {
        padding: 30px 12px;
    }

    .review {
        padding: 24px 20px;
    }

    .r-headline h2 {
        font-size: 1.75rem;
    }


    /* Obrázky v kartách */
    .image-handeler {
        gap: 6px;
        padding: 12px 0 0 0;
    }

    /* Na mobilu zachovat stejnou logiku */
    .image-handeler:has(img:only-child) {
        grid-template-columns: 1fr;
    }

    .image-handeler:has(img:nth-child(2):last-child) {
        grid-template-columns: 1fr 1fr;
    }

    .image-handeler:has(img:nth-child(3)) {
        grid-template-columns: repeat(2, 1fr);
    }

      .title {
        font-size: 16px;
    }
    .stars{
        font-size: 16px;
    }
    .basic-text {
        font-size: 13px;
    }
}

/* ============================================
   LIGHTBOX MODAL - Zvětšení obrázků
   ============================================ */

.review-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.review-lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Tlačítko zavřít */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigační tlačítka */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    font-weight: 300;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Counter (1/3) */
.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Cursor změna pro obrázky */
.review-thumbnail {
    cursor: zoom-in;
}

/* Responzivní design pro lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 32px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 32px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    #lightbox-image {
        max-height: 80vh;
        border-radius: 8px;
    }

    .lightbox-counter {
        bottom: -40px;
        font-size: 13px;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .lightbox-counter {
        font-size: 12px;
        padding: 5px 14px;
    }
}
