.open-photomodal-btn {
    background: #4a76a8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.open-photomodal-btn:hover {
    background: #5a86b8;
}

.photomodal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.photomodal-overlay.active {
    display: flex;
}

.photomodal {
    background: white;
    border-radius: 32px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.photomodal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    flex-shrink: 0;
}

.photomodal-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5a5a5a;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.photomodal-header-info {
    flex: 1;
}

.photomodal-header-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 4px;
}

.photomodal-header-subtitle {
    font-size: 12px;
    color: rgba(153, 153, 153, 1);
}

.photomodal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #818c99;
    font-size: 24px;
    line-height: 1;
    margin-left: 12px;
    transition: color 0.2s;
}

.photomodal-close:hover {
    color: #2c2d2e;
}

.photomodal-content {
    overflow-y: auto;
    flex: 1;
    padding: 16px 60px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photomodal-content::-webkit-scrollbar {
    display: none;
}
.photomodal-image {
    width: 100%;
    display: block;
    background: #000;
}

.photomodal-description {
    padding: 21px 0px;
    border-bottom: 1px solid rgba(217, 217, 217, 1);
}

.photomodal-description-text {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 1);
    font-weight:650;
}

.photomodal-description-menu {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    float: right;
    color: #818c99;
    font-size: 20px;
    line-height: 1;
}

.photomodal-reactions {
    padding: 25px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: rgba(0, 0, 0, 1);
    font-weight:450;
}

.photomodal-reactions-count {
    display: flex;
    gap: 20px;
}

.react-count{
    font-size: 12px;
}

.photomodal-reaction-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.photomodal-comments {
    padding: 24px 0px;
}

.photomodal-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.photomodal-comments-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
}

.photomodal-add-comment-btn {
    color: rgba(0, 0, 0, 1);
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    text-decoration: underline;
}

.photomodal-add-comment-btn:hover {
    text-decoration: underline;
}

.photomodal-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.photomodal-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dfe2e8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818c99;
    font-size: 14px;
}

.photomodal-comment-content {
    flex: 1;
}

.photomodal-comment-author {
    font-size: 13px;
    font-weight: 500;
    color: #2c2d2e;
    margin-bottom: 2px;
}

.photomodal-comment-time {
    font-size: 12px;
    color: #818c99;
    margin-left: 6px;
}

.photomodal-comment-text {
    font-size: 13px;
    line-height: 1.5;
    color: #2c2d2e;
    margin-top: 6px;
    padding: 8px 12px;
    background: #f4f5f7;
    border-radius: 12px;
}

.photomodal-comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.photomodal-show-more-comments {
    color: #4a76a8;
    background: transparent;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 12px;
}

.photomodal-show-more-comments:hover {
    text-decoration: underline;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.photomodal-content::-webkit-scrollbar {
    width: 8px;
}

.photomodal-content::-webkit-scrollbar-track {
    background: transparent;
}

.photomodal-content::-webkit-scrollbar-thumb {
    background: #c4c8ce;
    border-radius: 4px;
}

.photomodal-content::-webkit-scrollbar-thumb:hover {
    background: #a8adb5;
}


@media (max-width: 768px) {
    .photomodal{
        max-width:100%;
        max-height:100%;
        border-radius:0;
    }
    .photomodal-overlay{
        padding:0;
    }
    .photomodal-content{
        padding:16px 0;
    }
    .photomodal-description{
        padding:12px;
        box-sizing: border-box;
        font-size:15px;
        border-bottom:none;
    }
    .photomodal-reactions{
        flex-direction: column;
        gap:12px;
        justify-content: flex-start;
        align-items: flex-start;
        padding:12px;
    }
    .photomodal-comments{
        padding:12px;
    }
    .photomodal-add-comment-btn{
        display:none;
    }
}
.photomodal-navigation{
    position: absolute;
    width: 100%;
    top: 50%;
}
.photomodal-navigation .photomodal-prev{
    position: absolute;
    left: -186px;
    cursor: pointer;
}
.photomodal-navigation .photomodal-next{
    position: absolute;
    right: -66px;
    cursor: pointer;
}