

/* About Section */
.about {
    padding: 60px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    padding: 0 30px;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-img {
    flex: 1;
    min-width: 300px;
    height: 350px;
    background-image: url('../images/about-img.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    background-color: #f5f2e9;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

/* Media query pro mobilní zařízení */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Media query pro tablety */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #c8a97e;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #3a2e1f;
}

.feature-card p {
    color: #666;
}

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sloupce */
    grid-template-rows: repeat(2, 250px); /* 2 řádky, každý 250px vysoký */
    gap: 20px; /* Mezera mezi obrázky */
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    height: 100%;
    background-size: contain; /* Změna z 'cover' na 'contain' */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5; /* Přidání světlého pozadí pro obrázky */
}

.gallery-item:hover {
    transform: scale(1.02); /* Ještě menší zvětšení při hoveru */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Media query pro tablety */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce na tabletech */
        grid-template-rows: repeat(3, 200px); /* 3 řádky */
        gap: 15px;
    }
}

/* Media query pro mobilní zařízení */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce místo 1 */
        grid-template-rows: repeat(3, 150px); /* 3 řádky s menší výškou */
        gap: 10px; /* Menší mezery */
    }
    
    .gallery-item {
        height: 100%;
    }
}

/* Ještě menší zařízení */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Zachováme 2 sloupce */
        grid-template-rows: repeat(3, 120px); /* Ještě menší výška */
        gap: 8px; /* Ještě menší mezery */
    }
}

/* Lightbox pro galerii */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #c8a97e;
}

/* Kurzor ukazující, že na obrázky lze kliknout */
.gallery-item {
    cursor: pointer;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background-color: #f5f2e9;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 30px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 30px; /* Zvětšení spodního okraje */
    position: relative;
    padding: 0 30px 20px 30px; /* Přidání spodního paddingu */
    color: #555;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 50px;
    color: #c8a97e;
    position: absolute;
    opacity: 0.3;
}

.testimonial-text::before {
    top: -20px;
    left: 0;
}

.testimonial-text::after {
    bottom: -10px; /* Upravení pozice spodních uvozovek */
    right: 0;
}

.testimonial-author {
    font-weight: bold;
    color: #3a2e1f;
    margin-bottom: 25px; /* Přidání spodního okraje */
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: #c8a97e;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.slider-dot.active {
    opacity: 1;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-img {
        margin: 20px 0;
        width: 100%;
        height: 250px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 150px);
        gap: 10px;
        margin-bottom: 0; /* Odstranění mezery pod galerií */
    }
    
    .gallery {
        padding-bottom: 30px; /* Zmenšení spodního paddingu */
    }
}

/* Úprava pro logo na mobilních zařízeních */
@media (max-width: 768px) {
    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .logo {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .about-text {
        padding: 0 15px;
    }
    
    .about-img {
        height: 200px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .gallery-item {
        height: 120px;
    }
    
    .testimonial-text {
        padding: 0 15px;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 30px;
    }
}
