.play-triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 0 30px 50px;
    border-color: transparent transparent transparent white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

#videoModal .modal-content,
#paintingModal .modal-content,
#galleryModal .modal-content {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

#videoModal .modal-dialog,
#paintingModal .modal-dialog,
#galleryModal .modal-content {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

#galleryModal .modal-dialog {
    margin: 0;
}

#galleryModal .carousel-item {
    text-align: center;
    background-color: transparent;
}

#galleryModal .carousel-item img {
    max-height: 90vh;
    max-width: 90%;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

#galleryModal .carousel-inner {
    height: 100vh;
    display: flex;
    align-items: center;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 10%;
}
.card {
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.card:last-child {
    margin-bottom: 0;
}

/* Сворачивание текста поста */
.post-text-container {
    position: relative;
}

.post-text {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.post-text.expanded {
    max-height: none;
}

.expand-btn {
    background-color: #212529;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.expand-btn:hover {
    background-color: #000000;
}
