/* Скелетон для изображений */
.skeleton-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 1rem;
}

/* Галерея – улучшенная навигация */
.news-gallery {
    position: relative;
    margin-bottom: 1rem;
}
.news-gallery .swiper-slide {
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
    background: #f9fafb;
}
.news-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Крупные кнопки навигации (под мобильные) */
.news-gallery .swiper-button-next,
.news-gallery .swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
    background: rgba(34,33,48,0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #C9A84B !important;
    transition: 0.2s;
}
.news-gallery .swiper-button-next:hover,
.news-gallery .swiper-button-prev:hover {
    background: rgba(34,33,48,0.9);
    transform: scale(1.05);
}
.news-gallery .swiper-button-next::after,
.news-gallery .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}
/* Улучшенные пагинационные точки */
.news-gallery .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff !important;
    opacity: 0.6;
    margin: 0 6px;
    transition: 0.2s;
}
.news-gallery .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background: #C9A84B !important;
    opacity: 1;
}
/* Счётчик фото */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 30px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 20;
    pointer-events: none;
    font-family: monospace;
}

/* Видео-обёртка */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Блок шаринга */
.share-section {
    margin: 2rem 0 1rem;
    text-align: center;
}
.share-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 0.75rem;
}
.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #222130;
    transition: 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.share-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}
.share-btn svg {
    width: 18px;
    height: 18px;
}
/* Для мобильных: скрыть текст, оставить иконки */
@media (max-width: 500px) {
    .share-btn span {
        display: none;
    }
    .share-btn {
        padding: 10px;
    }
}

/* Адаптивные кнопки галереи */
@media (max-width: 640px) {
    .news-gallery .swiper-button-next,
    .news-gallery .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }
    .news-gallery .swiper-button-next::after,
    .news-gallery .swiper-button-prev::after {
        font-size: 14px !important;
    }
    .gallery-counter {
        bottom: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}