.header-divider {
    margin: 8px auto 10px;
    border: 0;
    border-top: 1px solid #ccc;
    max-width: 200px;
}

.site-title {
    font-family: 'Molodost', Cambria, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 0px;
}

.news-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.news-row:last-child {
    border-bottom: none;
}

.news-text {
    flex: 1 1 auto;
}

.news-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.news-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

.news-description {
    font-size: 25px;
    color: #555;
    line-height: 1.6;
}

.news-photo {
    position: relative;
    width: 140px;
    height: 140px;
    align-self: center;
    cursor: pointer;
    flex-shrink: 0;
}

.news-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .news-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-photo {
        width: 100px;
        height: 100px;
    }

    .news-photo img {
        width: 100px;
        height: 100px;
    }
}

/* Carousel navigation */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
    opacity: 0.9;
}

.modal-prev:hover,
.modal-next:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    opacity: 1;
}

.modal-prev:active,
.modal-next:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(-60px) scale(0.95); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(60px) scale(0.95); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.slide-out-left { animation: slideOutLeft 0.3s ease forwards; }
.slide-out-right { animation: slideOutRight 0.3s ease forwards; }
.slide-in-right { animation: slideInRight 0.3s ease forwards; }
.slide-in-left { animation: slideInLeft 0.3s ease forwards; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    color: #333;
    transition: all 0.25s ease;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
}
