/*
Theme Name: BlankSlate
Theme URI: https://opencollective.com/blankslate
Author: Bryan Hadaway
Author URI: https://opencollective.com/blankslate#section-contributors
Description: Donate: https://opencollective.com/blankslate. Learn: https://blankslate.me/. BlankSlate is the definitive WordPress boilerplate starter theme. I've carefully constructed the most clean and minimalist theme possible for designers and developers to use as a base to build websites for clients or to build completely custom themes from scratch. Clean, simple, unstyled, semi-minified, unformatted, and valid code, SEO-friendly, jQuery-enabled, no programmer comments, standardized and as white label as possible, and most importantly, the CSS is reset for cross-browser-compatability, with no intrusive visual CSS styles added whatsoever. A perfect skeleton theme. For support and suggestions, go to: https://github.com/bhadaway/blankslate/issues. Thank you.
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 9044.2
Requires at least: 5.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: blankslate

BlankSlate WordPress Theme 2011-2024
BlankSlate is distributed under the terms of the GNU GPL
*/

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{scroll-behavior:smooth}body{line-height:1}a{text-decoration-skip-ink:auto}a[href^="tel"]{color:inherit;text-decoration:none}button{outline:0}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}q{display:inline;font-style:italic}q:before{content:'"';font-style:normal}q:after{content:'"';font-style:normal}textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}input[type="search"]{-webkit-appearance:textfield}table{border-collapse:collapse;border-spacing:0}th,td{padding:2px}big{font-size:120%}small,sup,sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd,tt{font-family:courier;font-size:12px}ins{text-decoration:underline}del,strike,s{text-decoration:line-through}dt{font-weight:bold}address,cite,var{font-style:italic}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;word-break:normal}
.screen-reader-text:focus{background-color:#f7f7f7;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#007acc;display:block;font-size:14px;font-size:.875rem;font-weight:700;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link{left:-9999rem;top:2.5rem;z-index:999999999;text-decoration:underline}
.skip-link:focus{display:block;left:6px;top:7px;font-size:14px;font-weight:600;text-decoration:none;line-height:normal;padding:15px 23px 14px;z-index:100000;right:auto}
.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active){position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}

/*
Theme Name: LightGallery
Theme URI: https://yourdomain.com
Description: Светлая тема для демонстрации фотографий и картин
Version: 1.0
Author: Ваше имя
Author URI: https://yourdomain.com
Text Domain: lightgallery
*/

/* Основные стили */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sold-page-info {
    background: #ff0000b8;
    color: #fff;
    padding: 4px;
    /* top: 0; */
    /* left: 0; */
    width: 100%;
    font-weight: bold;
    text-align: center;
    margin-bottom: 14px;
    border-radius: 4px;
}
.site-branding {
    text-align: center;
}
.qr-code {
    width: 300px;
    margin: 0 auto;
}
.qr-code img {
    width: 100%;
    height: auto;
}
.site-title {
    margin: 0;
    font-size: 2.2em;
    font-weight: 300;
}

.site-description {
    margin: 5px 0 0;
    font-weight: 300;
    color: #777;
}
figure.wp-block-image.size-large img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 24px;
}
/* Навигация */
.main-navigation {
    margin-top: 20px;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin: 0 15px;
}
.nav-links {
    font-size: 26px;
    text-align: center;
}
.main-navigation a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #000;
}
span.soldout {
    position: absolute;
    background: #ff0000;
    color: #fff;
    padding: 4px;
    top: 0;
    left: 0;
    width: 100%;
    font-weight: bold;
    text-align: center;
}
/* Галерея и посты */
/* Стили для галереи на главной */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
}
a.link-to-work {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: block;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-info {
    padding: 20px;
    background: #fff;
}

.gallery-item-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
	
}

.gallery-item-title a{
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
	text-decoration:none;
}
img.attachment-full.size-full.wp-post-image {
	
	    width: 100%;
    height: auto;
}

.featured-image img {
    width: 100%;
    height: auto;
}

h1.entry-title {
    font-size: 24px;
}

article {
    margin-top: 34px;
}

.entry-meta a {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    text-decoration:none;
}

header.entry-header {
    margin-bottom: 34px;
}
.gallery-item-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    justify-content: space-between;
}
.gallery-item-meta a{
    font-size: 0.85rem;
    color: #777;
    display: flex;
    justify-content: space-between;
	text-decoration:none;
}

.gallery-item-author {
    font-style: italic;
}

.gallery-item-date {
    color: #999;
}

/* Эффект наведения с затемнением */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Кнопка "Посмотреть" */
.gallery-item-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-item-link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gallery-item img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Подвал сайта */
.site-footer {
    background-color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 5px 0;
    }
}


/* Обновленный стиль шапки */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: #0073aa;
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.5px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    font-size: 1.2em;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover {
    color: #0073aa;
}

.main-navigation a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0073aa;
    transition: width 0.3s;
}

.main-navigation a:hover:after {
    width: 100%;
}

/* Адаптивность для шапки */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .site-branding {
        margin-bottom: 15px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-navigation li {
        margin: 0 10px 5px;
    }
}

/* Стили для блока комментариев */
.comments-area {
    margin-top: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-body {
    display: flex;
    flex-wrap: wrap;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
    width: 50px;
    height: 50px;
}

.comment-author .fn {
    font-weight: 500;
    color: #333;
    font-style: normal;
}

.comment-metadata {
    margin-left: 65px;
    font-size: 0.85em;
    color: #777;
}

.comment-content {
    width: 100%;
    margin-top: 10px;
    line-height: 1.6;
}

.reply {
    margin-top: 15px;
}

.comment-reply-title {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #333;
}

/* Стили для формы комментариев */
.comment-respond {
    margin-top: 50px;
}

.comment-form {
    display: grid;
    grid-gap: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Стили для кнопки отправки */
.comment-form .form-submit {
    margin-top: 10px;
}

.comment-form .submit {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.comment-form .submit:hover {
    background-color: #005d8c;
    transform: translateY(-2px);
}

.comment-form .submit:active {
    transform: translateY(0);
}

/* Стили для кнопки "Ответить" */
.comment-reply-link {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    font-size: 0.85em;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.comment-reply-link:hover {
    background-color: #0073aa;
    color: white;
}

/* Адаптивные стили */
@media (max-width: 600px) {
    .comments-area {
        padding: 20px 15px;
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-metadata {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .comment-form {
        grid-gap: 15px;
    }
}

/* Блок "О нас" */
.about-section {
    background-color: #ffffff;
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #0073aa;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.about-text-ua {
    font-style: italic;
    position: relative;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.about-text-en {
    font-style: normal;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 3px solid #555;
}

.about-signature {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    color: #333;
    margin-top: 20px;
    font-style: italic;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
        padding: 15px;
    }
}


/* Футер */
.site-footer {
    background-color: #f8f8f8;
    padding: 50px 0 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0073aa;
}

.footer-text {
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0073aa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #e0e0e0;
    color: #555;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #0073aa;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.copyright, .developer {
    margin: 0;
}

.heart {
    color: #e74c3c;
}

/* Адаптация */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Страница контактов */
.contact-page {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info, .contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0073aa;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #0073aa;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #444;
}

.contact-item p, .contact-item a {
    margin: 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #0073aa;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #444;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #0073aa;
    color: white;
    transform: translateY(-3px);
}

/* Форма контактов */
.wpcf7-form {
    display: grid;
    gap: 20px;
}

.custom-contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.submit-btn,
.wpcf7-submit {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover,
.wpcf7-submit:hover {
    background-color: #005d8c;
}

/* Карта */
.contact-map {
    margin-top: 40px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Адаптация */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
	.qr-code {
    width: 144px;
	}
}

/* Блок с портретами художников */
.artists-portraits {
    padding: 60px 0;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 50px 0;
}

.artists-portraits .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.artists-portraits .section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #0073aa;
}

.portraits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.artist-portrait {
    text-align: center;
}

.portrait-frame {
    width: 250px;
    height: 250px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portrait-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portrait-frame:hover .portrait-image {
    transform: scale(1.05);
}

.artist-name {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: #f5f5f5;
}

.artist-bio {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Адаптация */
@media (max-width: 768px) {
    .artists-portraits {
        padding: 40px 0;
    }
    
    .portraits-grid {
        gap: 40px;
    }
    
    .portrait-frame {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .portraits-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .artist-portrait {
        margin-bottom: 30px;
    }
    
    .artist-portrait:last-child {
        margin-bottom: 0;
    }
}



span.page-numbers.current {
    color: #000;
    font-size: 26px;
    font-weight: bold;
}

a.page-numbers {
    text-decoration: none;
    color: #0375ab;
}

/* Блок с уведомлением о цветопередаче */
.color-notice {
    background-color: #fff8f0;
    border-left: 5px solid #ffa000;
    padding: 30px 0;
    margin: 40px 0;
    position: relative;
}

.color-notice .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-text {
    line-height: 1.7;
    color: #5a4a3a;
}

.notice-text-ua {
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.notice-text-ua:before {
    content: "🇺🇦";
    position: absolute;
    left: -5px;
}

.notice-text-en {
    padding-left: 20px;
    position: relative;
}

.notice-text-en:before {
    content: "🇬🇧";
    position: absolute;
    left: -5px;
}

.notice-text p {
    margin: 0;
}

/* Адаптация */
@media (max-width: 768px) {
    .color-notice {
        padding: 20px 0;
        margin: 30px 0;
    }
    
    .notice-text-ua, 
    .notice-text-en {
        padding-left: 25px;
    }
    
    .notice-text-ua:before,
    .notice-text-en:before {
        left: 0;
    }
	.grecaptcha-badge {
    right: 83% !important;
    margin-right: -186px !important;
    overflow: hidden !important;
}
	.container{owerflow:hidden;}
}


/* Блок новостей */
.news-section {
    padding: 60px 0;
    background-color: #fff;
}

.news-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.news-section .section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #0073aa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #0073aa;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #777;
}

.news-meta i {
    margin-right: 5px;
    color: #0073aa;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.news-read-more:hover {
    color: #005d8c;
}

.news-archive-link {
    text-align: center;
    margin-top: 40px;
}

.btn-news-archive {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-news-archive:hover {
    background-color: #005d8c;
}

.no-news {
    text-align: center;
    padding: 40px;
    color: #777;
}

/* Адаптация */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-section {
        padding: 40px 0;
    }
}

/* Стили для архивной страницы новостей */
.news-archive-page {
    padding: 60px 0;
}

.news-archive-page .page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.news-archive-page .page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #0073aa;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-archive-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-archive-thumbnail {
    height: 200px;
    overflow: hidden;
}

.news-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-archive-item:hover .news-archive-thumbnail img {
    transform: scale(1.05);
}

.news-archive-content {
    padding: 25px;
}

.news-archive-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.news-archive-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-archive-title a:hover {
    color: #0073aa;
}

.news-archive-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.news-archive-meta i {
    margin-right: 5px;
    color: #0073aa;
}

.news-archive-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-archive-read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.news-archive-read-more:hover {
    color: #005d8c;
}

.news-pagination {
    text-align: center;
    padding: 20px 0;
}

.no-news-found {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #777;
}

/* Стили для отдельной новости */
.single-news-page {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.single-news-page .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.single-news-page .entry-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.single-news-page .entry-meta {
    color: #777;
    font-size: 0.9rem;
}

.single-news-page .entry-meta span {
    margin: 0 15px;
    display: inline-block;
}

.single-news-page .entry-meta i {
    margin-right: 5px;
    color: #0073aa;
}

.single-news-page .entry-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-news-page .entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-news-page .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.single-news-page .entry-content p {
    margin-bottom: 20px;
}

.single-news-page .entry-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .news-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .single-news-page {
        padding: 30px 15px;
    }
    
    .single-news-page .entry-title {
        font-size: 1.6rem;
    }
}

/* Блок соцсетей на главной */
.social-connect {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.social-connect:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #833AB4, #1877F2, #0088cc);
}

.social-connect .section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
    font-weight: 300;
}

.social-connect .section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #833AB4, #1877F2, #0088cc);
    border-radius: 2px;
}

.social-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

.social-icons-main {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 35px 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 180px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #833AB4, #E1306C);
    transition: height 0.4s, opacity 0.4s;
}

.social-link.facebook:before {
    background: linear-gradient(90deg, #1877F2, #00B2FF);
}

.social-link.telegram:before {
    background: linear-gradient(90deg, #0088cc, #34b7f1);
}

.social-link:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.social-link:hover:before {
    height: 100%;
    opacity: 0.08;
}

.social-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-link:hover .social-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

/* Instagram стили */
.instagram .social-icon-wrapper {
    background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
    color: white;
}

/* Facebook стили */
.facebook .social-icon-wrapper {
    background: linear-gradient(135deg, #1877F2 0%, #00B2FF 100%);
    color: white;
}

/* Telegram стили */
.telegram .social-icon-wrapper {
    background: linear-gradient(135deg, #0088cc 0%, #34b7f1 100%);
    color: white;
}

.social-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.social-follow {
    font-size: 0.95rem;
    color: #666;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
    display: inline-block;
}

.social-link:hover .social-name {
    color: #222;
}

.social-link:hover .social-follow {
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}

.social-note {
    color: #777;
    font-size: 1.05rem;
    margin-top: 40px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #1877F2;
}

/* Анимация пульсации для привлечения внимания */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
}

.social-link {
    animation: gentlePulse 4s infinite ease-in-out;
}

.social-link.facebook {
    animation-delay: 0.2s;
}

.social-link.telegram {
    animation-delay: 0.4s;
}

.social-link:hover {
    animation: none;
}

/* Эффект свечения при наведении */
.social-link:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, 
        rgba(131, 58, 180, 0.2), 
        rgba(24, 119, 242, 0.2), 
        rgba(0, 136, 204, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.social-link:hover:after {
    opacity: 1;
}

/* Адаптация для разных устройств */
@media (max-width: 1024px) {
    .social-icons-main {
        gap: 25px;
    }
    
    .social-link {
        width: 160px;
        padding: 30px 20px;
    }
    
    .social-icon-wrapper {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .social-connect {
        padding: 50px 20px;
    }
    
    .social-icons-main {
        gap: 20px;
    }
    
    .social-link {
        width: calc(50% - 30px);
        min-width: 150px;
        padding: 25px 15px;
    }
    
    .social-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .social-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .social-icons-main {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .social-link {
        width: 100%;
        max-width: 250px;
        padding: 30px 25px;
    }
    
    .social-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .social-connect .section-title {
        font-size: 1.8rem;
    }
}

/* Дополнительный эффект при клике */
.social-link:active {
    transform: translateY(-5px) scale(0.98);
    transition: transform 0.1s;
}


/* Стили для статистики записи */
.post-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 1.2rem;
    color: #666;
    width: 30px;
    text-align: center;
}

.stat-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Стили кнопки лайка */
.like-button {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #666;
    outline: none;
}

.like-button:hover {
    border-color: #ff4757;
    background: #fff5f5;
    color: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.1);
}

.like-button.liked {
    border-color: #ff4757;
    background: #ff4757;
    color: white;
}

.like-button.liked:hover {
    background: #ff3742;
    border-color: #ff3742;
}

.like-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.like-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.like-button:hover .like-icon {
    transform: scale(1.2);
}

.like-button.liked .like-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.like-label {
    font-size: 0.9rem;
}

/* Адаптация */
@media (max-width: 768px) {
    .post-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 15px;
    }
    
    .stat-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .like-button {
        width: 100%;
        justify-content: center;
    }
}

/* Альтернативный вариант расположения */
.post-meta-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.post-likes {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Стили для сообщений */
.like-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}







/* ========== СТРАНИЦА ГАЛЕРЕИ ========== */
.gallery-main-page {
    padding: 60px 0;
    background: #fafafa;
    min-height: 70vh;
}

.gallery-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-main-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 300;
    position: relative;
    padding-bottom: 20px;
}

.gallery-main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #005d8c);
}

.gallery-main-description {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Сетка галереи 3x3 */
.gallery-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 60px;
}

.gallery-main-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.gallery-main-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-main-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.gallery-main-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: #f5f5f5;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main-item:hover .gallery-main-image {
    transform: scale(1.1);
}

.gallery-main-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

.gallery-main-placeholder span {
    font-size: 1rem;
    margin-top: 10px;
}

.gallery-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 30px;
}

.gallery-main-item:hover .gallery-main-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: white;
    transform: translateY(30px);
    transition: transform 0.5s ease;
    width: 100%;
}

.gallery-main-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.gallery-overlay-artist,
.gallery-overlay-year,
.gallery-overlay-technique {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
    color: white;
}

.gallery-view-details-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #0073aa;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-view-details-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.gallery-main-info {
    padding: 25px;
    background: white;
}

.gallery-item-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.gallery-item-artist,
.gallery-item-year,
.gallery-item-technique {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.gallery-item-artist i,
.gallery-item-year i,
.gallery-item-technique i {
    color: #0073aa;
    font-size: 0.8rem;
}

.gallery-item-excerpt {
    margin-top: 10px;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Состояние "нет картин" */
.gallery-no-items {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.gallery-no-items p {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 30px;
}

.gallery-back-home-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-back-home-btn:hover {
    background: #005d8c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.2);
}

/* Пагинация */
.gallery-main-pagination {
    text-align: center;
    margin-top: 40px;
}

.gallery-main-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.gallery-main-pagination li {
    margin: 0;
}

.gallery-main-pagination a,
.gallery-main-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-main-pagination a {
    background: #f0f0f0;
    color: #555;
}

.gallery-main-pagination a:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
}

.gallery-main-pagination .current {
    background: #0073aa;
    color: white;
}

.gallery-main-pagination .prev,
.gallery-main-pagination .next {
    font-weight: 600;
}

/* ========== АДАПТИВНЫЕ СТИЛИ ДЛЯ ГАЛЕРЕИ ========== */

/* Планшеты и небольшие ноутбуки */
@media (max-width: 1200px) {
    .gallery-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-main-title {
        font-size: 2.5rem;
    }
    
    .gallery-main-image-wrapper {
        height: 280px;
    }
}

/* Планшеты (портретная ориентация) */
@media (max-width: 900px) {
    .gallery-main-page {
        padding: 50px 0;
    }
    
    .gallery-main-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .gallery-main-title:after {
        width: 120px;
        height: 2px;
    }
    
    .gallery-main-description {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .gallery-main-grid {
        gap: 25px;
    }
    
    .gallery-main-image-wrapper {
        height: 250px;
    }
    
    .gallery-main-info {
        padding: 20px;
    }
    
    .gallery-item-title {
        font-size: 1.1rem;
    }
}

/* Мобильные устройства (ландшафтная ориентация) */
@media (max-width: 768px) {
    .gallery-main-page {
        padding: 40px 0;
    }
    
    .gallery-main-container {
        padding: 0 15px;
    }
    
    .gallery-main-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .gallery-main-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 35px;
    }
    
    .gallery-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .gallery-main-image-wrapper {
        height: 300px;
    }
    
    .gallery-main-overlay {
        padding: 25px;
    }
    
    .gallery-overlay-title {
        font-size: 1.2rem;
    }
    
    .gallery-view-details-btn {
        padding: 7px 18px;
        font-size: 0.9rem;
    }
    
    .gallery-main-pagination {
        margin-top: 30px;
    }
    
    .gallery-main-pagination a,
    .gallery-main-pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

/* Небольшие мобильные устройства */
@media (max-width: 576px) {
    .gallery-main-page {
        padding: 30px 0;
    }
    
    .gallery-main-title {
        font-size: 1.8rem;
        padding-bottom: 12px;
    }
    
    .gallery-main-title:after {
        width: 100px;
        height: 2px;
    }
    
    .gallery-main-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .gallery-main-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .gallery-main-image-wrapper {
        height: 250px;
    }
    
    .gallery-main-placeholder {
        font-size: 2.5rem;
    }
    
    .gallery-main-overlay {
        padding: 20px;
    }
    
    .gallery-overlay-content {
        transform: translateY(20px);
    }
    
    .gallery-overlay-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .gallery-overlay-artist,
    .gallery-overlay-year,
    .gallery-overlay-technique {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    .gallery-main-info {
        padding: 18px;
    }
    
    .gallery-item-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .gallery-item-artist,
    .gallery-item-year,
    .gallery-item-technique {
        font-size: 0.85rem;
        gap: 6px;
        margin-bottom: 3px;
    }
    
    .gallery-item-excerpt {
        font-size: 0.85rem;
        margin-top: 8px;
    }
    
    .gallery-no-items {
        padding: 40px 15px;
    }
    
    .gallery-no-items p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .gallery-back-home-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .gallery-main-pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-main-pagination a,
    .gallery-main-pagination span {
        min-width: 30px;
        height: 30px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

/* Очень маленькие мобильные устройства */
@media (max-width: 400px) {
    .gallery-main-title {
        font-size: 1.6rem;
    }
    
    .gallery-main-description {
        font-size: 0.85rem;
    }
    
    .gallery-main-image-wrapper {
        height: 220px;
    }
    
    .gallery-main-placeholder {
        font-size: 2rem;
    }
    
    .gallery-main-placeholder span {
        font-size: 0.9rem;
    }
    
    .gallery-main-info {
        padding: 15px;
    }
    
    .gallery-item-title {
        font-size: 0.95rem;
    }
    
    .gallery-item-artist,
    .gallery-item-year,
    .gallery-item-technique {
        font-size: 0.8rem;
    }
    
    .gallery-item-excerpt {
        font-size: 0.8rem;
    }
    
    .gallery-main-pagination a,
    .gallery-main-pagination span {
        min-width: 25px;
        height: 25px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
}

/* Портретная ориентация на очень маленьких устройствах */
@media (max-width: 350px) {
    .gallery-main-title {
        font-size: 1.5rem;
    }
    
    .gallery-main-grid {
        gap: 15px;
    }
    
    .gallery-main-image-wrapper {
        height: 200px;
    }
    
    .gallery-main-overlay {
        padding: 15px;
    }
    
    .gallery-overlay-title {
        font-size: 1rem;
    }
    
    .gallery-view-details-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}

/* Высокое разрешение (ретина) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-main-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .gallery-main-page {
        background: #1a1a1a;
    }
    
    .gallery-main-title {
        color: #f0f0f0;
    }
    
    .gallery-main-description {
        color: #aaa;
    }
    
    .gallery-main-item {
        background: #2a2a2a;
    }
    
    .gallery-main-info {
        background: #2a2a2a;
    }
    
    .gallery-item-title {
        color: #f0f0f0;
    }
    
    .gallery-item-artist,
    .gallery-item-year,
    .gallery-item-technique,
    .gallery-item-excerpt {
        color: #bbb;
    }
    
    .gallery-no-items p {
        color: #aaa;
    }
    
    .gallery-main-pagination a {
        background: #333;
        color: #bbb;
    }
    
    .gallery-main-pagination a:hover {
        background: #0073aa;
        color: white;
    }
}







/* ========== ПРОМО-БЛОК ГАЛЕРЕИ НА ГЛАВНОЙ ========== */

.gallery-promo {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, 
        #0a1929 0%, 
        #0d2236 30%, 
        #102a43 60%, 
        #0a1929 100%);
    overflow: hidden;
    margin: 80px 0;
}

.gallery-promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Контентная часть */
.gallery-promo-content {
    color: white;
}

.gallery-promo-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #bbdefb, #90caf9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.gallery-promo-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #90caf9, #42a5f5);
    border-radius: 2px;
}

.gallery-promo-subtitle {
    font-size: 1.2rem;
    color: #bbdefb;
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 500px;
}

/* Статистика */
.gallery-promo-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.promo-stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #42a5f5;
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #bbdefb;
    opacity: 0.9;
}

/* Описание */
.gallery-promo-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e3f2fd;
    margin-bottom: 16px;
    max-width: 500px;
}

/* Кнопка */
.gallery-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}

.gallery-promo-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

.gallery-promo-btn:hover .btn-icon {
    transform: translateX(10px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-icon svg {
    display: block;
}

.btn-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.gallery-promo-btn:hover .btn-hover-effect {
    left: 100%;
}

/* Визуальная часть */
.gallery-promo-visual {
    position: relative;
    height: 400px;
}

/* Холст с анимацией */
.promo-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 0 50px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Анимированные элементы */
.canvas-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(66, 165, 245, 0.3), 
        rgba(33, 150, 243, 0.2));
    animation: floatElement 15s infinite ease-in-out;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 15%;
    animation-delay: -3s;
}

.element-3 {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 65%;
    animation-delay: -6s;
}

.element-4 {
    width: 30px;
    height: 30px;
    top: 70%;
    left: 70%;
    animation-delay: -9s;
}

.element-5 {
    width: 45px;
    height: 45px;
    top: 40%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, 15px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(-20px, -15px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Центральный элемент */
.canvas-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.center-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(33, 150, 243, 0.4), 
        rgba(66, 165, 245, 0.6));
    animation: pulseCircle 4s infinite ease-in-out;
    box-shadow: 
        0 0 40px rgba(33, 150, 243, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.center-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: rotateDots 10s infinite linear;
}

.dot-1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.dot-2 {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation-delay: -3.33s;
}

.dot-3 {
    top: 50%;
    left: 90%;
    transform: translateY(-50%);
    animation-delay: -6.66s;
}

@keyframes rotateDots {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(40px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

/* Предпросмотр картин */
.promo-preview {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 15px;
    transform: translateY(50%);
}

.preview-item {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: previewFloat 8s infinite ease-in-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-1 {
    animation-delay: 0s;
    background: linear-gradient(45deg, 
        rgba(255, 87, 34, 0.3), 
        rgba(255, 138, 101, 0.2));
}

.preview-2 {
    animation-delay: -2s;
    background: linear-gradient(45deg, 
        rgba(76, 175, 80, 0.3), 
        rgba(129, 199, 132, 0.2));
}

.preview-3 {
    animation-delay: -4s;
    background: linear-gradient(45deg, 
        rgba(156, 39, 176, 0.3), 
        rgba(186, 104, 200, 0.2));
}

@keyframes previewFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

.preview-image {
    width: 100%;
    height: 70%;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-label {
    font-size: 0.7rem;
    color: white;
    text-align: center;
    padding: 5px;
    opacity: 0.9;
}

/* Декоративные элементы */
.promo-decoration {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(66, 165, 245, 0.1) 0%, 
        rgba(66, 165, 245, 0) 70%);
    z-index: 1;
}

.decor-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: decorFloat 20s infinite ease-in-out;
}

.decor-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: decorFloat 25s infinite ease-in-out reverse;
}

.decor-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: decorFloat 18s infinite ease-in-out;
}

@keyframes decorFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-15px, 15px) scale(0.9);
    }
    75% {
        transform: translate(-20px, -15px) scale(1.05);
    }
}

/* Анимация счетчика чисел */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.5s ease-out forwards;
    opacity: 0;
}

/* ========== АДАПТИВНЫЕ СТИЛИ ========== */

@media (max-width: 1024px) {
    .gallery-promo-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .gallery-promo-visual {
        height: 300px;
    }
    
    .promo-canvas {
        width: 280px;
        height: 280px;
    }
    
    .gallery-promo-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-promo {
        padding: 70px 0;
        margin: 60px 0;
    }
    
    .gallery-promo-title {
        font-size: 2.3rem;
    }
    
    .gallery-promo-subtitle {
        font-size: 1.1rem;
    }
    
    .gallery-promo-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-promo-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .promo-preview {
        display: none;
    }
    
    .decor-1, .decor-2, .decor-3 {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .gallery-promo {
        padding: 50px 0;
        margin: 40px 0;
    }
    
    .gallery-promo-title {
        font-size: 1.8rem;
    }
    
    .gallery-promo-subtitle {
        font-size: 1rem;
    }
    
    .gallery-promo-stats {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .promo-stat {
        text-align: left;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gallery-promo-description {
        font-size: 1rem;
    }
    
    .gallery-promo-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-promo-visual {
        height: 250px;
    }
    
    .promo-canvas {
        width: 220px;
        height: 220px;
    }
    
    .center-circle {
        width: 80px;
        height: 80px;
    }
    
    .canvas-element {
        display: none;
    }
    
    .element-1, .element-5 {
        display: block;
    }
}

/* Анимация появления блока */
@keyframes promoAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-promo {
    animation: promoAppear 0.8s ease-out forwards;
}

/* Для пользователей, предпочитающих уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .gallery-promo,
    .canvas-element,
    .center-circle,
    .dot,
    .preview-item,
    .promo-decoration,
    .gallery-promo-btn,
    .stat-number {
        animation: none !important;
    }
    
    .gallery-promo-btn:hover {
        transform: none;
    }
    
    .gallery-promo-btn:hover .btn-icon {
        transform: none;
    }
    
    .btn-hover-effect {
        display: none;
    }
}

/* Темная тема по умолчанию */
@media (prefers-color-scheme: light) {
    .gallery-promo {
        background: linear-gradient(135deg, 
            #e3f2fd 0%, 
            #bbdefb 30%, 
            #90caf9 60%, 
            #e3f2fd 100%);
    }
    
    .gallery-promo-content {
        color: #0a1929;
    }
    
    .gallery-promo-title {
        background: linear-gradient(90deg, #0a1929, #1565c0, #42a5f5);
    }
    
    .gallery-promo-subtitle {
        color: #1565c0;
    }
    
    .stat-number {
        color: #1565c0;
    }
    
    .stat-label {
        color: #1565c0;
    }
    
    .gallery-promo-description {
        color: #0a1929;
    }
    
    .promo-canvas {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .promo-item {
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
    
    .preview-label {
        color: #0a1929;
    }
}

/* Стили для заблокированной кнопки */
.like-button:disabled,
.like-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-button.loading {
    position: relative;
    color: transparent !important;
}

.like-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Стили для сообщения об ошибке */
.like-message.error {
    background: #f44336;
}

.like-message.warning {
    background: #ff9800;
}













/* ========== БЛОК С QR КОДОМ ========== */
.qr-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6b8cff 100%);
    overflow: hidden;
    margin: 60px 0 0;
}

/* Анимированный фон */
.qr-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: qrBackgroundRotate 20s linear infinite;
    z-index: 1;
}

.qr-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.05) 0%, 
        rgba(255,255,255,0) 50%,
        rgba(255,255,255,0.05) 100%);
    animation: qrBackgroundShimmer 8s ease-in-out infinite;
    z-index: 2;
}

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

@keyframes qrBackgroundShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        opacity: 0.8;
        transform: translateX(100%) rotate(45deg);
    }
}

.qr-section-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
}

.qr-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.qr-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: qrTitleFloat 6s ease-in-out infinite;
}

@keyframes qrTitleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.qr-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Обертка QR кода с анимацией */
.qr-code-wrapper {
    position: relative;
    margin: 40px auto;
    max-width: 300px;
}

.qr-code-animation {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.qr-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10;
    animation: qrCodePulse 3s ease-in-out infinite;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.qr-code:hover img {
    transform: scale(1.05);
}

@keyframes qrCodePulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 30px 60px rgba(102, 126, 234, 0.5);
    }
}

/* Эффект свечения */
.qr-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 40px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255,255,255,0.8) 0%, 
        rgba(102, 126, 234, 0.4) 50%, 
        transparent 80%);
    animation: qrGlowPulse 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes qrGlowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Пульсирующие точки вокруг QR */
.qr-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.4) 0%, 
        transparent 70%);
    animation: qrPulseExpand 3s ease-out infinite;
    z-index: 1;
}

@keyframes qrPulseExpand {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Текст под QR */
.qr-text {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-label {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 2px;
}

.qr-url {
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: qrUrlGlow 3s ease-in-out infinite;
}

@keyframes qrUrlGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255,255,255,0.4);
    }
}

/* Блок с преимуществами */
.qr-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.qr-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.qr-feature:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.qr-feature i {
    font-size: 2rem;
    color: white;
}

.qr-feature span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Декоративные элементы */
.qr-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: decorationFloat 15s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

.decoration-square {
    position: absolute;
    background: rgba(255,255,255,0.05);
    transform: rotate(45deg);
    animation: decorationFloat 20s ease-in-out infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    animation-delay: -3s;
}

.square-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -7s;
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(-5deg);
    }
    75% {
        transform: translate(-20px, -15px) rotate(3deg);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .qr-section {
        padding: 60px 0;
    }
    
    .qr-title {
        font-size: 2rem;
    }
    
    .qr-subtitle {
        font-size: 1rem;
    }
    
    .qr-features {
        gap: 20px;
    }
    
    .qr-feature {
        padding: 10px 20px;
    }
    
    .qr-feature i {
        font-size: 1.5rem;
    }
    
    .decoration-circle,
    .decoration-square {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .qr-title {
        font-size: 1.5rem;
    }
    
    .qr-code-wrapper {
        max-width: 250px;
    }
    
    .qr-url {
        font-size: 1.1rem;
    }
    
    .qr-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .qr-feature {
        width: 100%;
        max-width: 250px;
    }
}

/* Отключаем анимацию для пользователей с настройками reduced motion */
@media (prefers-reduced-motion: reduce) {
    .qr-section::before,
    .qr-section::after,
    .qr-title,
    .qr-code,
    .qr-glow,
    .qr-pulse,
    .qr-url,
    .decoration-circle,
    .decoration-square,
    .qr-feature {
        animation: none !important;
        transition: none !important;
    }
}













/* ========== СТРАНИЦА КАРТИНЫ (single.php) ========== */

.single-artwork {
    background: #f5f7fa;
    padding: 60px 0;
    min-height: 100vh;
}

.artwork-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хлебные крошки */
.artwork-breadcrumbs {
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #6c757d;
}

.artwork-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.artwork-breadcrumbs a:hover {
    color: #005d8c;
}

.artwork-breadcrumbs .separator {
    margin: 0 10px;
    color: #adb5bd;
}

.artwork-breadcrumbs .current {
    color: #495057;
}

/* Основной лейаут */
.artwork-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* ===== ЛЕВАЯ КОЛОНКА - МЕДИА ===== */
.artwork-media {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Галерея */
.artwork-gallery {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

/* Миниатюры */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #0073aa;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Одиночное изображение */
.artwork-single-image {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.artwork-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Блок статистики */
.artwork-stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.stats-item i {
    font-size: 1.3rem;
    color: #0073aa;
}

.stats-count {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.stats-like {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 2px solid #e9ecef;
    border-radius: 40px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.stats-like i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.stats-like:hover {
    border-color: #ff4757;
    color: #ff4757;
    transform: translateY(-2px);
}

.stats-like.liked {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.stats-like.liked i {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

/* ===== ПРАВАЯ КОЛОНКА - ИНФОРМАЦИЯ ===== */
.artwork-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Заголовок и статус */
.artwork-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f5;
}

.artwork-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.3;
    margin: 0;
}

.artwork-status {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-sold {
    background: #ffebee;
    color: #c62828;
}

.status-not_for_sale {
    background: #f5f5f5;
    color: #616161;
}

/* Характеристики */
.artwork-specs {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-item:first-child {
    padding-top: 0;
}

.spec-label {
    color: #6c757d;
    font-size: 0.95rem;
}

.spec-value {
    color: #212529;
    font-weight: 500;
    font-size: 1rem;
}

.spec-value.price {
    color: #0073aa;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Информация об авторе */
.artwork-artist {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
}

.artist-header {
    margin-bottom: 20px;
}

.artist-title {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.artist-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.artist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    background: white;
}

.artist-avatar.default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #667eea;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-details {
    flex: 1;
}

.artist-name {
    font-size: 1.3rem;
    margin: 0 0 8px;
    font-weight: 600;
}

.artist-bio {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 8px;
    line-height: 1.5;
}

.artist-signature {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

/* Описание */
.artwork-description {
    margin-bottom: 30px;
}

.description-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #212529;
}

.description-content {
    color: #495057;
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 15px;
}

/* Социальные кнопки */
.artwork-share {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.share-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Кнопка связи */
.artwork-cta {
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #0073aa, #005d8c);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,115,170,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,115,170,0.3);
}

.cta-button i {
    font-size: 1.2rem;
}

/* Комментарии */
.artwork-comments {
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Похожие работы */
.related-artworks {
    margin-top: 60px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #212529;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 20px;
}

.related-artwork-title {
    font-size: 1rem;
    margin: 0 0 10px;
    color: #212529;
    line-height: 1.4;
}

.related-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.related-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0073aa;
}

/* Адаптация */
@media (max-width: 1024px) {
    .artwork-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .artwork-media {
        position: static;
    }
    
    .gallery-main {
        height: 400px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-artwork {
        padding: 40px 0;
    }
    
    .artwork-info {
        padding: 30px;
    }
    
    .artwork-title {
        font-size: 1.8rem;
    }
    
    .artwork-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .artist-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .artist-avatar {
        margin-bottom: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbnails {
        justify-content: center;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .artwork-stats-card {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats-like {
        width: 100%;
        justify-content: center;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

















/* Информация об авторе - общий стиль */
.artwork-artist {
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Градиенты для разных художников */
.artist-andriy {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 50%, #2980B9 100%);
}

.artist-margarita {
    background: linear-gradient(135deg, #8E44AD 0%, #E74C3C 50%, #C0392B 100%);
}

/* Добавляем декоративные элементы */
.artist-andriy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: artistBgRotate 20s linear infinite;
}

.artist-margarita::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: artistBgRotate 20s linear infinite reverse;
}

@keyframes artistBgRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.artist-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.artist-title {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.artist-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.artist-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.artist-avatar:hover {
    transform: scale(1.05);
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-details {
    flex: 1;
}

.artist-name {
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.artist-bio {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0 0 12px;
    line-height: 1.6;
}

.artist-signature {
    display: inline-block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    padding: 5px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .artist-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .artist-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .artist-signature {
        margin-top: 10px;
    }
}

/* Обновленные стили для характеристик */
.spec-item .artist-name {
    color: #0073aa;
    font-weight: 600;
}

/* Обновленные стили для похожих работ */
.related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.85rem;
}

.related-artist {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-artist i {
    color: #0073aa;
    font-size: 0.8rem;
}

.related-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.related-status.status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.related-status.status-sold {
    background: #ffebee;
    color: #c62828;
}

.related-status.status-not_for_sale {
    background: #f5f5f5;
    color: #616161;
}



.artist-name-front {
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: #2d2d2d;
}

.artist-bio-front{
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0 0 12px;
    line-height: 1.6;
    color: #2d2d2d	
}

.pld-like-dislike-wrap .pld-common-wrap {
    font-size: 20px;
}
.pld-like-dislike-wrap{
	margin-bottom:0;
}

.pld-dislike-wrap.pld-common-wrap {
    display: none;
}



/* ========== ОФОРМЛЕНИЕ ДЛЯ ПЛАГИНА POSTS LIKE DISLIKE (СВЕТЛАЯ ТЕМА) ========== */

/* Основной контейнер */
.pld-like-dislike-wrap.pld-template-2 {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(145deg, #ffffff, #fff5f5) !important;
    border-radius: 60px !important;
    padding: 6px 20px 6px 12px !important;
    box-shadow: 0 4px 15px rgba(255, 180, 180, 0.15), 
                0 2px 5px rgba(255, 200, 200, 0.1),
                inset 0 1px 3px rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255, 200, 200, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 110px !important;
}

/* Эффект пульсации для привлечения внимания */
@keyframes pldSoftPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 150, 150, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 120, 120, 0.2);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 150, 150, 0.1);
        transform: scale(1);
    }
}

.pld-like-dislike-wrap.pld-template-2 {
    animation: pldSoftPulse 3s infinite ease-in-out !important;
}

.pld-like-dislike-wrap.pld-template-2:hover {
    animation: none !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(255, 150, 150, 0.25), 
                0 4px 10px rgba(255, 200, 200, 0.15) !important;
    border-color: rgba(255, 150, 150, 0.4) !important;
}

/* Нежный градиент при наведении */
.pld-like-dislike-wrap.pld-template-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 220, 220, 0.4) 0%, 
        rgba(255, 240, 240, 0.2) 50%,
        transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: 60px;
}

.pld-like-dislike-wrap.pld-template-2:hover::before {
    opacity: 1;
}

/* Контейнер для лайка */
.pld-like-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Кнопка лайка */
.pld-like-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(145deg, #ffffff, #fff0f0) !important;
    border-radius: 50% !important;
    color: #ff8a8a !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 6px 15px rgba(255, 150, 150, 0.2),
                0 2px 5px rgba(255, 200, 200, 0.1),
                inset 0 -2px 5px rgba(255, 200, 200, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    cursor: pointer !important;
}

/* Эффект наведения на кнопку */
.pld-like-trigger:hover {
    transform: scale(1.15) translateY(-3px) !important;
    background: linear-gradient(145deg, #ffb5b5, #ff9e9e) !important;
    color: white !important;
    box-shadow: 0 12px 20px rgba(255, 150, 150, 0.3),
                0 4px 8px rgba(255, 200, 200, 0.2) !important;
}

/* Эффект клика */
.pld-like-trigger:active {
    transform: scale(0.95) translateY(1px) !important;
    box-shadow: 0 3px 8px rgba(255, 150, 150, 0.2) !important;
    transition: transform 0.1s !important;
}

/* Анимация сердечка при клике */
@keyframes pldSoftHeartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

.pld-like-trigger:active i {
    animation: pldSoftHeartBeat 0.5s ease !important;
}

/* Иконка сердечка */
.pld-like-trigger i {
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
}

.pld-like-trigger:hover i {
    transform: scale(1.1) rotate(3deg) !important;
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.8)) !important;
}

/* Счетчик лайков */
.pld-like-count-wrap {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #a5a5a5 !important;
    min-width: 35px !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    padding: 0 5px !important;
    line-height: 1 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Анимация изменения счетчика */
@keyframes pldSoftCountPop {
    0% {
        transform: scale(1);
        color: #a5a5a5;
    }
    30% {
        transform: scale(1.3);
        color: #ff9e9e;
    }
    70% {
        transform: scale(1.1);
        color: #ff9e9e;
    }
    100% {
        transform: scale(1);
        color: #a5a5a5;
    }
}

.pld-like-count-wrap.pld-count-animate {
    animation: pldSoftCountPop 0.5s ease !important;
}

/* Состояние "уже лайкнуто" */
.pld-like-trigger[data-already-liked="1"] {
    background: linear-gradient(145deg, #ffb5b5, #ff9e9e) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.pld-like-trigger[data-already-liked="1"] i {
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.5)) !important;
}

.pld-like-trigger[data-already-liked="1"]:hover {
    transform: scale(1.12) translateY(-2px) !important;
    box-shadow: 0 12px 20px rgba(255, 150, 150, 0.3) !important;
}

/* Мерцающий эффект на кнопке */
.pld-like-trigger::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.pld-like-trigger:hover::after {
    left: 120%;
}

/* Нежная градиентная обводка при наведении */
.pld-like-dislike-wrap.pld-template-2::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 62px;
    background: linear-gradient(45deg, 
        #ffe5e5, #ffd9d9, #ffcccc, #ffe5e5);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: pldSoftGradient 4s ease infinite;
}

@keyframes pldSoftGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pld-like-dislike-wrap.pld-template-2:hover::after {
    opacity: 1;
}

/* Эффект парящих сердечек при клике */
@keyframes pldSoftFloating {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2);
    }
}

.pld-like-trigger:active::before {
    content: '❤️' !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 20px !important;
    animation: pldSoftFloating 0.8s ease-out forwards !important;
    pointer-events: none !important;
    z-index: 1000 !important;
}

/* Нежная пульсация вокруг кнопки */
@keyframes pldSoftWave {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 170, 170, 0.2);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 170, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 170, 170, 0);
    }
}

.pld-like-trigger:focus {
    animation: pldSoftWave 1.2s infinite !important;
    outline: none !important;
}

/* Состояние загрузки */
.pld-like-trigger.loading {
    pointer-events: none !important;
    opacity: 0.8 !important;
    position: relative !important;
    color: transparent !important;
}

.pld-like-trigger.loading i {
    opacity: 0 !important;
}

.pld-like-trigger.loading::before {
    content: '' !important;
    position: absolute !important;
    width: 22px !important;
    height: 22px !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: -11px !important;
    margin-top: -11px !important;
    border: 3px solid #ffb5b5 !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: pldSoftSpinner 0.8s linear infinite !important;
}

@keyframes pldSoftSpinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .pld-like-dislike-wrap.pld-template-2 {
        padding: 5px 15px 5px 10px !important;
        min-width: 90px !important;
    }
    
    .pld-like-trigger {
        width: 38px !important;
        height: 38px !important;
    }
    
    .pld-like-trigger i {
        font-size: 1.1rem !important;
    }
    
    .pld-like-count-wrap {
        font-size: 1rem !important;
        min-width: 30px !important;
    }
}

@media (max-width: 480px) {
    .pld-like-dislike-wrap.pld-template-2 {
        padding: 4px 12px 4px 8px !important;
        min-width: 80px !important;
    }
    
    .pld-like-trigger {
        width: 34px !important;
        height: 34px !important;
    }
    
    .pld-like-trigger i {
        font-size: 0.95rem !important;
    }
    
    .pld-like-count-wrap {
        font-size: 0.9rem !important;
        min-width: 25px !important;
    }
}

/* Эффект при наведении на счетчик */
.pld-like-count-wrap:hover {
    transform: scale(1.1) !important;
    color: #ff9e9e !important;
    cursor: default !important;
    transition: all 0.2s ease !important;
}

/* Анимация появления блока */
@keyframes pldSoftAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pld-like-dislike-wrap.pld-template-2 {
    animation: pldSoftAppear 0.5s ease, pldSoftPulse 3s 0.5s infinite ease-in-out !important;
}

/* Стили для disabled состояния */
.pld-like-trigger[disabled],
.pld-like-trigger.disabled {
    opacity: 0.6 !important;
    pointer-events: none !important;
    background: #f5f5f5 !important;
    color: #cccccc !important;
}

/* Убираем дублирующиеся стили */
.pld-like-dislike-wrap .pld-common-wrap {
    margin: 0 !important;
}

/* Фикс для WordPress */
.pld-like-dislike-wrap br {
    display: none !important;
}

/* Дополнительный нежный эффект при наведении на весь блок */
.pld-like-dislike-wrap.pld-template-2:hover .pld-like-count-wrap {
    color: #ff9e9e !important;
    transition: color 0.3s ease !important;
}

/* Эффект для активной кнопки */
.pld-like-trigger[data-already-liked="1"] + .pld-like-count-wrap {
    color: #ff9e9e !important;
    font-weight: 600 !important;
}














/* ========== LIGHTBOX ДЛЯ УВЕЛИЧЕНИЯ ИЗОБРАЖЕНИЙ ========== */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Кнопка закрытия */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    font-weight: 300;
    color: #ff9e9e;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(255, 150, 150, 0.2);
    z-index: 10000;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: #ff6b6b;
    background: #fff5f5;
    box-shadow: 0 6px 20px rgba(255, 150, 150, 0.3);
}

/* Изображение в lightbox */
.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(255, 150, 150, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    padding: 5px;
}

.lightbox-overlay.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

/* Подпись под изображением */
.lightbox-caption {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #888;
    text-align: center;
    max-width: 80%;
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 150, 150, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.lightbox-overlay.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопки навигации */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    color: #ff9e9e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 150, 150, 0.2);
    z-index: 10000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff5f5;
    color: #ff6b6b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 150, 150, 0.3);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Индикатор количества изображений */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #888;
    box-shadow: 0 4px 15px rgba(255, 150, 150, 0.1);
    z-index: 10000;
}

/* Анимация загрузки */
@keyframes lightbox-loading {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-image.loading {
    position: relative;
    min-width: 100px;
    min-height: 100px;
}

.lightbox-image.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 3px solid #ffe5e5;
    border-top-color: #ff9e9e;
    border-radius: 50%;
    animation: lightbox-loading 0.8s linear infinite;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        top: 15px;
        right: 15px;
    }
    
    .lightbox-image {
        max-width: 95vw;
    }
}
