        .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) {
            .container {
                padding: 10px;
            }
            .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%;
            }
        }