/* Стили для заголовков */
h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Стили для карточек */
.portfolio-card, .facade-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover, .facade-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.portfolio-card img, .facade-card img {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-card h3, .facade-card h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 0.5rem;
}

.portfolio-card p, .facade-card p {
    font-size: 1rem;
}

.portfolio-card .text-sm, .facade-card .text-sm {
    font-size: 0.875rem;
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.5rem;
}

/* Стили для лайтбокса */
#facades-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#facades-lightbox:not(.hidden) {
    display: flex;
}

.lightbox-container {
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
}

#carousel-content {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.carousel-image.opacity-100 {
    opacity: 1;
}

.carousel-image.opacity-0 {
    opacity: 0;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border: none;
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #ffffff;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.lightbox-description {
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lightbox-materials, .lightbox-processing {
    color: #4b5563;
    margin-bottom: 10px;
}

.lightbox-materials strong, .lightbox-processing strong {
    color: #1f2937;
}

/* Адаптивность */
@media (max-width: 768px) {
    #carousel-content {
        height: 400px;
    }
    
    .lightbox-container {
        padding: 15px;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .lightbox-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    #carousel-content {
        height: 300px;
    }
    
    .lightbox-container {
        padding: 10px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .lightbox-title {
        font-size: 1.125rem;
    }
}