/* ===== НОВОСТИ И ФОТОГАЛЕРЕЯ ===== */
.news-page,
.gallery-page,
.news-detail,
.album-detail {
    padding-top: 150px;
    padding-bottom: 80px;
    flex-shrink: 0;
}

.page-head {
    max-width: 820px;
    margin: 0 auto 50px;
    text-align: center;
}

.page-head .section-title {
    margin-bottom: 12px;
}

.page-head .page-lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--neon-purple);
}

.breadcrumbs a:hover {
    color: var(--neon-pink);
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid rgba(191, 75, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: 0 12px 35px rgba(191, 75, 255, 0.2);
}

.news-card__image {
    display: block;
    aspect-ratio: 968 / 504;
    overflow: hidden;
    background: #191922;
}

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

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(191, 75, 255, 0.5);
    font-size: 3rem;
}

.news-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-card__title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 18px;
}

.news-card__title a {
    color: #fff;
}

.news-card__title a:hover {
    color: var(--neon-purple);
}

.news-card__more {
    color: var(--neon-purple);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.news-card__more:hover {
    color: var(--neon-pink);
    gap: 10px;
}

/* Детальная новость */
.news-detail__cover {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid rgba(191, 75, 255, 0.2);
}

.news-detail__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail__meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.news-content {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto;
    overflow-wrap: anywhere;
}

.news-content p {
    margin-bottom: 1.1em;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5 {
    color: #fff;
    margin-top: 1.6em;
    margin-bottom: 0.7em;
}

.news-content a {
    color: var(--neon-purple);
    text-decoration: underline;
}

.news-content a:hover {
    color: var(--neon-pink);
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 18px 0;
}

.news-content blockquote {
    border-left: 3px solid var(--neon-purple);
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.news-content ul,
.news-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Пагинация */
.pagination-neon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.pagination-neon a,
.pagination-neon span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(191, 75, 255, 0.3);
    color: #fff;
    background: var(--card-bg);
}

.pagination-neon a:hover {
    border-color: var(--neon-purple);
    background: rgba(191, 75, 255, 0.15);
}

.pagination-neon .is-current {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    font-weight: 700;
}

.pagination-neon .is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.album-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid rgba(191, 75, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.album-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: 0 12px 35px rgba(191, 75, 255, 0.2);
    color: #fff;
}

.album-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #191922;
    position: relative;
}

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

.album-card:hover .album-card__image img {
    transform: scale(1.05);
}

.album-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(191, 75, 255, 0.5);
    font-size: 3.5rem;
}

.album-card__count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(191, 75, 255, 0.4);
    color: #fff;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.album-card__body {
    padding: 20px;
}

.album-card__title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.album-card__description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

/* Фото альбома */
.album-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.album-photo {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #191922;
    border: 1px solid rgba(191, 75, 255, 0.15);
    aspect-ratio: 1 / 1;
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.album-photo:hover img {
    transform: scale(1.06);
    opacity: 0.85;
}

.album-photo::after {
    content: '+';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 300;
    color: #fff;
    opacity: 0;
    background: rgba(10, 10, 15, 0.35);
    transition: opacity 0.3s ease;
}

.album-photo:hover::after {
    opacity: 1;
}

/* Lightbox */
.lb-data .lb-caption,
.lb-data .lb-number {
    color: rgba(255, 255, 255, 0.85);
}

.lb-outerContainer {
    border-radius: 12px;
    overflow: hidden;
}

/* Админка: сетка фото */
.admin-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(191, 75, 255, 0.25);
    background: #111;
}

.admin-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.admin-photo__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
}

.admin-photo__handle {
    cursor: grab;
}

@media (max-width: 767px) {
    .news-page,
    .gallery-page,
    .news-detail,
    .album-detail {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
