﻿.Novost{
    display: flex;
    flex-direction: column;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.Novost:active {
    transform: scale(0.985);
}
.NovovstImg{
    --img-radius: 16px;
    width: calc(100% - 20px);
    height: 200px;
    margin: 10px;
    object-fit: cover;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    /* 9-slice mask: радиус углов фиксированный в px, не сплющивается */
    -webkit-mask-box-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='black'%3E%3Crect width='48' height='48' rx='16' ry='16'/%3E%3C/svg%3E");
    -webkit-mask-box-image-slice: 16 fill;
    -webkit-mask-box-image-width: 16px;
    -webkit-mask-box-image-repeat: stretch;
    mask-border-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='black'%3E%3Crect width='48' height='48' rx='16' ry='16'/%3E%3C/svg%3E");
    mask-border-slice: 16 fill;
    mask-border-width: 16px;
    mask-border-repeat: stretch;
    -webkit-clip-path: inset(0 round var(--img-radius));
    clip-path: inset(0 round var(--img-radius));
}

.NovostTextinfo{
    padding: 4px 16px 16px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
}
.NovostTitle{
    font-family: "Onest", sans-serif;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
}
.NovostDesc{
    font-family: "Onest", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
}
.DateTime{
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.28);
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
    overflow: visible;
    text-overflow: unset;
}
.morePostsButton{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-family: "Onest", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    text-decoration: underline;
    padding: 12px 0 24px;
}
.posts-empty {
    margin-top: 48px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-family: "Onest", sans-serif;
    font-size: 18px;
}

/* Post detail drawer */
#drawerNovost{
    background: #121212;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
    max-height: 90vh;
}
#drawerNovost .drawer-handle{
    background: #3a3a3a;
}
#drawerNovost .NovostDrawerInfo{
    height: auto;
    max-height: 90vh;
    border-bottom: none;
    align-items: stretch;
    padding: 12px 16px 24px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.novost-drawer-close{
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.novost-drawer-scroll{
    width: 100%;
    max-height: calc(90vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
#drawerNovost .novost-drawer-img,
#drawerNovost #novostOpenImage.NovovstImg{
    width: 100%;
    height: auto;
    max-height: 280px;
    margin: 0 0 14px;
    border-radius: 18px;
    object-fit: cover;
    -webkit-clip-path: none;
    clip-path: none;
    -webkit-mask-box-image: none;
    mask-border: none;
}
#novostTitleDrawer{
    font-family: "Onest", sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}
#novostDescriptionDrawer{
    width: 100%;
    font-family: "Onest", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    text-align: left;
    overflow: visible;
    max-height: none;
    margin-top: 10px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
#novostDateTime{
    font-family: "Onest", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: 3px;
}
.titleNovostWithTime{
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
}
