        .subtitle {
            font-size: 18px;
            color: #ccc;
            max-width: 600px;
            margin: 0 auto;
            font-style: italic;
            font-weight: 300;
        }
        
        /* Новая структура галереи с центральным большим элементом */
        .gallery-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 50px;
        }
        
        .main-gallery {
            display: grid
;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 277px);
    gap: 34px;
    flex: 1;
    min-width: 300px;
        }
        
        .side-gallery {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 280px;
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        
        /* Центральный большой элемент */
        .main-item {
            grid-column: 2 / 3;
            grid-row: 1 / 3;
        }
        
        /* Боковые элементы */
        .side-item {
            height: 190px;
        }
        
        /* Верхние и нижние элементы */
        .top-item {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
        }
        
        .bottom-item {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
        }
        
        .top-right-item {
            grid-column: 3 / 4;
            grid-row: 1 / 2;
        }
        
        .bottom-right-item {
            grid-column: 3 / 4;
            grid-row: 2 / 3;
        }
        
        .item-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
			transform: rotate3d(0, 0, 1, 45deg) scale3d(1, 0, 1);
        }
        
        .gallery-item:hover .item-overlay {
            opacity: 1;
    transform: rotate3d(0, 0, 1, 39deg) scale3d(1, 1, 1);
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
    content: "";
	z-index: 99;
	transition: opacity 0.35s ease 0s, transform 0.35s ease 0s;
        }
        
        .item-title {
            font-size: 30px;
            font-weight: 600;
            margin-bottom: 5px;
            transform: translateY(20px);
            transition: transform 0.3s ease;
			color: #ffffff;
            text-transform: uppercase;
        }
        
        .item-category {
            font-size: 16px;
            color: #ffffff;
            transform: translateY(20px);
            transition: transform 0.3s ease 0.1s;
        }
        
        .gallery-item:hover .item-title,
        .gallery-item:hover .item-category {
            transform: translateY(0);
        }
        
        /* Эффект затемнения при наведении */
        .gallery-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(248, 195, 0, 0);
            transition: background-color 0.3s ease;
            pointer-events: none;
        }
        
        .gallery-item:hover::after {
            background-color: #00000087;
			
        }
  
.item-overlay-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-39deg); /* Компенсируем вращение родителя */
    text-align: center;
    width: max-content;
}

  
        /* Кнопка фильтрации */
        .filter-buttons {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .filter-btn {
            background: transparent;
            color: #fff;
            border: 2px solid #f8c300;
            padding: 10px 20px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 14px;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background: #f8c300;
            color: #000;
        }
        
        /* Lightbox - улучшенная версия */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lightbox.active {
            display: flex;
            opacity: 1;
        }
        
        .lightbox-content {
position: relative;
    width: 90%;
    height: 79%;
    display: flex;
    justify-content: center;
    align-items: center;
        }
        
        .lightbox-image-container {
            position: relative;
            max-width: 100%;
            max-height: 80vh;
        }
        
        .lightbox-content img {
            width: 1300px;
    height: 80vh;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
        }
        
        .lightbox-close {
            position: absolute;
            top: -50px;
            right: 0;
            color: #fff;
            font-size: 30px;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10001;
        }
        
        .lightbox-close:hover {
            background: rgba(248, 195, 0, 0.8);
            transform: scale(1.1);
        }
        
       .lightbox-caption {
                color: #fff;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    display: none;
        }
        
        /* Кнопки навигации */
        .lightbox-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            pointer-events: none;
			z-index: 99;
        }
        
        .lightbox-prev, .lightbox-next {
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 20px;
            pointer-events: auto;
        }
        
        .lightbox-prev:hover, .lightbox-next:hover {
            background: rgba(248, 195, 0, 0.8);
            transform: scale(1.1);
        }
        
        /* Счетчик изображений */
        .lightbox-counter {
            position: absolute;
            top: -45px;
            left: 0;
            color: #fff;
            font-size: 16px;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px 15px;
            border-radius: 20px;
        }
        
        /* Анимация появления */
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Анимация смены изображений */
        .lightbox-fade-enter {
            opacity: 0;
            transform: scale(0.9);
        }
        
        .lightbox-fade-enter-active {
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .lightbox-fade-exit {
            opacity: 1;
            transform: scale(1);
        }
        
        .lightbox-fade-exit-active {
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        /* Адаптивность */
        @media (max-width: 1200px) {
            .gallery-container {
                flex-direction: column;
            }
            
            .side-gallery {
                flex-direction: row;
                width: 100%;
                flex-wrap: wrap;
            }
            
            .side-item {
                flex: 1;
                min-width: calc(50% - 10px);
            }
        }
        
        @media (max-width: 768px) {
            .main-gallery {
                grid-template-columns: 1fr;
                grid-template-rows: auto;
            }
            
            .main-item {
                grid-column: 1;
                grid-row: 1;
            }
            
            .top-item, .bottom-item, .top-right-item, .bottom-right-item {
                grid-column: 1;
                grid-row: auto;
                height: 200px;
            }
            
            .side-item {
                min-width: 100%;
            }
            
            h1 {
                font-size: 32px;
            }
            
            .subtitle {
                font-size: 16px;
            }
            
            .lightbox-prev, .lightbox-next {
                width: 40px;
                height: 40px;
                font-size: 18px;
                margin: 0 10px;
            }
        }
        
        @media (max-width: 480px) {
            .wpfable-main-slider .swiper-button-next, .wpfable-main-slider .swiper-button-prev {
            display: none;
			}
            header {
                padding: 20px 0;
            }
            
            h1 {
                font-size: 28px;
            }
            
            .filter-btn {
                padding: 8px 16px;
                font-size: 13px;
            }
            
            .lightbox-prev, .lightbox-next {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
            
            .lightbox-close {
                top: -40px;
                right: 0;
                width: 35px;
                height: 35px;
                font-size: 24px;
            }
        } 
	        /* Общие стили для блоков */
        .wf-row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
            box-sizing: border-box;
        }
        
        .wf-g-4 {
            margin: -15px;
        }
        
        .wf-mt-0 {
            margin-top: 0 !important;
        }
        
        
        .wf-cell {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
            position: relative;
            width: 100%;
            padding: 15px;
            box-sizing: border-box;
        }
        
        .banner-thumb {
            position: relative;
            overflow: hidden;
            border-radius: 5px;
        }
        
        .banner-thumb a {
            display: block;
            position: relative;
        }
        
        .banner-thumb img {
           width: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    height: 253px;
        }
        
        .banner-thumb:hover img {
            transform: scale(1.05);
        }
        
        .banner-content {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 30px;
            z-index: 1;
        }
        
        .banner-content h4 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #ffffff;
        }
        
        .banner-content a {
            display: inline-block;
            font-size: 22px;
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            position: relative;
        }
        
        /* Адаптивность */
        @media (max-width: 992px) {
            .wf-cell {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }
        
        @media (max-width: 768px) {
            .wf-cell {
                flex: 0 0 100%;
                max-width: 100%;
            }
        }
		
/* Jazz Lightbox Fixed Size */
.jazz-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.jazz-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.jazz-lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jazz-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Контролы */
.jazz-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.jazz-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.jazz-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.jazz-lightbox-prev {
    left: 15px;
}

.jazz-lightbox-next {
    right: 15px;
}

.jazz-lightbox-toolbar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 25px;
}

.jazz-lightbox-tool {
    background: none;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jazz-lightbox-tool:hover {
    background: rgba(255, 255, 255, 0.2);
}

.jazz-lightbox-tool.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.jazz-lightbox-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 15px;
}

/* Анимации */
.jazz-lightbox.loading .jazz-lightbox-img {
    opacity: 0.3;
}

.jazz-lightbox.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

body.jazz-lightbox-open {
    overflow: hidden;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .jazz-lightbox-content {
        width: 95%;
        height: 85%;
    }
    
    .jazz-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .jazz-lightbox-prev {
        left: 10px;
    }
    
    .jazz-lightbox-next {
        right: 10px;
    }
    
    .jazz-lightbox-tool {
        width: 35px;
        height: 35px;
    }
    
    .jazz-lightbox-toolbar {
        bottom: 10px;
    }
    
    .jazz-lightbox-counter {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .jazz-lightbox-content {
        width: 100%;
        height: 80%;
        border-radius: 0;
    }
    
    .jazz-lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .jazz-lightbox-nav {
        width: 35px;
        height: 35px;
    }
    
    .jazz-lightbox-toolbar {
        padding: 8px;
    }
    
    .jazz-lightbox-tool {
        width: 30px;
        height: 30px;
    }
}
/* Jazz Lightbox Controls */
.jazz-lightbox-controls {
    position: absolute;
    top: 48px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.jazz-control-btn {
width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #79797980;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    line-height: 18px;
}

.jazz-control-btn:hover {
    background: #434343cc;
    transform: scale(1.1);
}

.jazz-control-btn:active {
    transform: scale(0.95);
}

.jazz-zoom-in, .jazz-zoom-out {
    font-weight: bold;
}

.jazz-close-btn {
    background: #ed143dbd;
}

.jazz-close-btn:hover {
    background: #ed143dbd;
}

/* Адаптивность для панели управления */
@media (max-width: 768px) {
    .jazz-lightbox-controls {
        top: 15px;
        right: 15px;
    }
    
    .jazz-control-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .jazz-lightbox-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .jazz-control-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
<style>
/* Анимация смены главного изображения */
.letu-main-image-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.letu-main-img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.letu-main-img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.letu-main-img.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Индикатор загрузки */
.letu-main-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
</style>