body .sub_header > .inner > .h1_wrapper > h1 {
    font: normal normal 30px / 32px "Candara", sans-serif;
}

    .news-detail {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .detail_picture {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    
    /* Стили для галереи-плитки */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .gallery-item {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .gallery-image {
        position: relative;
        overflow: hidden;
        background: #f5f5f5;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-image img {
        width: auto;
    	height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .gallery-item:hover .gallery-image img {
        transform: scale(1.05);
    }
    
    .gallery-caption {
        padding: 15px;
        background: #fff;
        border-top: 1px solid #eee;
    }
    
    .gallery-caption p {
        margin: 0;
        color: #333;
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Адаптивность */
    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .gallery-image {
            height: 200px;
        }
        
        .gallery-caption {
            padding: 12px;
        }
        
        .gallery-caption p {
            font-size: 13px;
        }
    }
    
    @media (max-width: 480px) {
        .gallery-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .gallery-image {
            height: 250px;
        }
    }
    
    /* Стили для модального окна (опционально) */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        cursor: pointer;
    }
    
    .modal-content {
        position: relative;
        margin: auto;
        padding: 20px;
        width: 90%;
        max-width: 1200px;
        height: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .modal-content img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }
    
    .modal-caption {
        color: #fff;
        text-align: center;
        margin-top: 20px;
        font-size: 16px;
    }
    
    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
    }
    
    .close:hover {
        color: #bbb;
        cursor: pointer;
    }

/*div.news-detail*/
/*{*/
/*	word-wrap: break-word;*/
/*}*/
/*div.news-detail img.detail_picture*/
/*{*/
/*	float:left;*/
/*	margin:0 8px 6px 1px;*/
/*}*/
/*.news-date-time*/
/*{*/
/*	color:#486DAA;*/
/*}*/




    /* Стили для галереи конкурсов */
    .contest-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
        margin-top: 30px;
    }
    
    .contest-gallery-item {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }
    
    .contest-gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    .contest-gallery-image {
        position: relative;
        overflow: hidden;
        background: #f5f5f5;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contest-gallery-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .contest-gallery-item:hover .contest-gallery-image img {
        transform: scale(1.05);
    }
    
    .winner-badge {
        position: relative;
    }
    
    .winner-label {
        position: absolute;
        top: 10px;
        right: 10px;
        background: linear-gradient(135deg, #ffd700, #ffb347);
        color: #000;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .contest-gallery-info {
        padding: 15px;
        text-align: center;
    }
    
    .art-title {
        margin: 0 0 8px 0;
        font-size: 20px;
        font-weight: bold;
        color: #333;
    }
    
    .standard_page .contest-gallery-info p {
        margin: 5px 0;
        font-size: 14px;
        color: #666;
        line-height: 1.2;
    }
    
    .author {
        font-weight: 500;
        color: #444;
    }
    
    .category {
        color: #007bff;
    }
    
    /* Стили для модального окна */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        overflow: auto;
    }
    
    .modal-content {
        margin: auto;
        display: block;
        width: 90%;
        max-width: 1200px;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        animation: zoom 0.3s;
    }
    
    .modal-content img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    @keyframes zoom {
        from {transform: scale(0.1); opacity: 0;}
        to {transform: scale(1); opacity: 1;}
    }
    
    .close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
        z-index: 1001;
    }
    
    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }
    
    .modal-caption {
        margin: 20px auto;
        display: block;
        width: 90%;
        max-width: 1200px;
        text-align: center;
        color: #fff;
        font-size: 18px;
        font-weight: bold;
    }
    
    .modal-details {
        margin: 10px auto;
        display: block;
        width: 90%;
        max-width: 1200px;
        text-align: center;
        color: #ddd;
        font-size: 14px;
    }
    
    .modal-details-content p {
        margin: 8px 0;
    }
    
    .winner-text {
        color: #ffd700;
        font-size: 16px;
    }
    
    @media (max-width: 768px) {
        .contest-gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .contest-gallery-image {
            height: 200px;
        }
        
        .modal-content {
            width: 95%;
        }
        
        .close {
            top: 10px;
            right: 20px;
            font-size: 30px;
        }
    }