.general-content {
    margin-top: 120px;
}

.post-section {
    margin-bottom: 30px;
}

.images-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    /* height: 270px; */
    flex-wrap: wrap;
}

.other-images {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 5px;
    height: 270px;
    width: 50px !important;
    min-width: 50px !important;
    overflow-y: scroll;
    padding: 0 !important;
}

.other-images::-webkit-scrollbar {
    display: none;
}

.other-images {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.other-images-item {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    border: 3px solid rgba(90, 153, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.other-images-item:has(img.selected) {
    border: 3px solid rgba(90, 153, 255, 0.7);
}

.other-images-item img {
    border-radius: 2px;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.post-main-image {
    border: 1px solid #fff;
    width: calc(100% - 60px) !important;
    min-width: calc(100% - 60px) !important;
    height: 270px;
    border: 3px solid rgba(90, 153, 255, 0.3);
    border-radius: 5px;
    object-fit: cover;
}

.post-main-image.single-image {
    width: 100% !important;
    min-width: 100% !important;
}

.post-title {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.post-title h1 {
    font-size: 32px;
}

.like-post-wrapper {
    margin-left: auto;
}

.like-post {
    font-size: 18px;
    border: none;
    color: var(--main-red);
    padding: 2px 6px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.like-post.liked {
    color: var(--main-red);
}

.post-statuses {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8px;
    margin-left: 20px;
}

.post-likes-count {
    color: var(--main-red);
    border-bottom: 1px solid var(--main-red);
    padding: 0 4px;
    font-size: 14px;
}

.post-views-count {
    color: var(--main-green);
    border-bottom: 1px solid var(--main-green);
    padding: 0 4px;
    font-size: 14px;
}

.post-comments-count {
    color: var(--light-blue);
    border-bottom: 1px solid var(--light-blue);
    padding: 0 4px;
    font-size: 14px;
}

.post-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    gap: 4px;
    width: 100%;
    min-width: 100%;
}

.post-downloads-item {
    background: var(--light-blue);
    width: auto;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
}

.post-downloads-item:nth-child(1) {
    background: var(--main-green);
    color: var(--white);
}

.post-downloads-item:nth-child(2) {
    background: var(--mid-blue);
    color: var(--white);
}

.post-downloads-item:nth-child(3) {
    background: var(--main-red);
    color: var(--white);
}

.other-posts {
    height: 100%;
    max-height: 100%;
}

.others-swiper {
    height: 100vh;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.swiper-wrapper {
    transition-timing-function: ease-out;
}

.other-posts-item {
    background: var(--high-blue);
    border: 2px solid var(--high-blue);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.other-posts-item-head {
    position: relative;
}

/*.other-posts-item-head img {
    height: 125px;
    width: 100%;
    object-fit: cover;
}*/

.other-posts-item-body {
    padding: 5px;
}

.other-posts-item-body h3 {
    font-size: 20px;
}

.other-posts-item-subtitle {
    line-height: 1.2;
    font-size: 14px;
    opacity: 0.5;
}

.other-posts-item-body .post-button {
    margin: 0 !important;
}

.other-posts-statuses > * {
    margin-bottom: 5px;
}

.other-posts-likes-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    background: var(--main-red);
    border: 1px solid var(--main-red);
    padding: 0 2px;
    border-radius: 5px;
    font-size: 12px;
}

.other-posts-views-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    background: var(--main-green);
    border: 1px solid var(--main-green);
    padding: 0 2px;
    border-radius: 5px;
    font-size: 12px;
}

.other-posts-comments-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    background: var(--light-blue);
    border: 1px solid var(--light-blue);
    padding: 0 2px;
    border-radius: 5px;
    font-size: 12px;
}

/* a full description box for art styles */
.full-description {
    border-radius: 20px;
    text-align: justify;
}

.full-description .section-header {
    margin-bottom: 30px;
}

.full-description .text {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.full-description .text.closed {
    max-height: 500px;
}

.full-description .text.closed::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(0deg, rgba(6, 9, 34, 1) 0%, rgba(6, 9, 34, 0.5) 80%, rgba(6, 9, 34, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.full-description .text h1,
.full-description .text h2,
.full-description .text h3,
.full-description .text h4,
.full-description .text h5,
.full-description .text h6 {
    color: var(--white);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 10px;
}

    .full-description .text p {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
        font-size: 16px;
        margin-bottom: 20px;
        text-align: justify;
        line-height:1.8
    }

.full-description .text strong {
    font-weight: 800;
    color: var(--white);
}

.full-description .text img {
    max-width: 100%;
    height: auto;
}

.full-description .text blockquote {
    border-left: 5px solid var(--high-blue);
    padding-left: 20px;
}

.full-description .text table {
    display: table;
    border-collapse: collapse;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    color: #fff;
}

.full-description .text table p {
    margin: 0 !important;
}

.full-description .text table td {
    color: #fff;
}

.full-description .text table thead tr {
    background: var(--high-blue);
}

.full-description .text table th {
    background: var(--high-blue);
    color: #fff;
    font-size: 18px;
    padding: 15px;
}

.full-description .text table tbody tr {
    background: var(--mid-blue);
    cursor: pointer;
}

.full-description .text table tbody tr:nth-child(odd) {
    background: var(--light-blue);
}

.full-description .text table tbody tr:nth-child(odd):hover {
    background: var(--mid-blue);
}

.full-description .text table tr {
    border: none;
}

.full-description .text table tr td,
.full-description .text table tr th {
    padding: 10px 15px;
}

.full-description .des-expand {
    background: var(--mid-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    display: block;
    width: fit-content;
    margin: 0 auto;
    transition: background 0.2s ease;
}

.full-description .des-expand:hover {
    background: var(--light-blue);
}

.full-description .des-expand i {
    font-size: 12px;
}

/* comments of art page styles */
.comments {
    background: rgba(4, 33, 67, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
    margin-top: 24px;
    padding: 10px;
}

.comments > .head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.comments .head h3 {
    text-align: start;
    font-weight: 600;
    font-size: 26px;
    color: var(--white);
}

.comments .head a.new-comment {
    background-color: var(--mid-blue);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.comments .comment {
    background-color: rgba(12, 91, 219, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.comments .comment .parent-comment {
    display: flex;
    justify-content: space-between;
    align-items: start;
    display: flex;
    width: 100%;
}

.comments .comment .comment-profile {
    text-align: center;
    margin-right: 20px;
    width: 50px;
}

.comments .comment .comment-profile img {
    border-radius: 50%;
}

.comments .comment .comment-profile .role {
    display: block;
    margin-top: 5px;
    background-color: rgba(6, 9, 34, 0.2);
    font-size: 12px;
    border-radius: 2px;
    color: var(--light-blue);
}

.comment .comment-body {
    flex: 1;
    width: 95%;
    overflow-wrap: break-word;
}

.comments .comment .comment-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.comments .comment .comment-head .comment-owner {
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 3px;
}

.comments .comment .comment-head .comment-date {
    font-size: 12px;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    padding: 0 4px;
    border-radius: 2px;
}

.comments .comment .comment-head .comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.like-comment {
    font-size: 18px;
    color: var(--main-red);
}

.reply-comment {
    font-size: 22px;
    color: var(--main-gray);
}

.comments .show-replies {
    font-size: 14px;
    border: none;
    padding: 0 4px;
    border-radius: 4px;
    color: var(--light-blue);
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
    min-width: max-content;
}

.comments .show-replies i {
    font-size: 12px;
    display: inline-flex;
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    .comments .comment .comment-head {
        flex-direction: column;
        gap: 10px;
    }

    .comments .comment .comment-head .comment-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .comments .show-replies {
        font-size: 13px;
        padding: 2px 6px;
    }

    .comments .comment .comment-text {
        max-width: 100%;
    }
}

.comments .comment .comment-text {
    color: #fff;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 80%;
}

.comments .comment .comment-reply {
    margin-top: 15px;
    background-color: rgba(9, 174, 244, 0.1);
}

.comments .comment .comment-reply .comment-text {
    margin-bottom: 0;
}

.comment-replies {
    display: none;
    max-width: 100%;
}

#comment-modal input[type="text"] {
    width: 50% !important;
}

#comment-modal input[type="text"],
#comment-modal textarea {
    display: block;
    width: 100%;
    background: rgba(12, 91, 219, 0.1);
    border: none;
    outline: none;
    border-bottom: 1px solid var(--light-blue);
    margin-bottom: 10px;
    border-radius: 3px 3px 0 0;
    padding: 10px;
}

.section-header {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    font-style: italic;
}

/* Video presentation styles */
.video-wrapper {
    position: relative;
    width: 100%;
    background: var(--high-blue);
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    background: #000;
}

.video-wrapper iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 400px;
}

/* Make sure video controls are visible on dark background */
.video-wrapper video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
}

.video-wrapper video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}

.video-wrapper video::-webkit-media-controls-play-button {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Responsive video container */
@media (max-width: 768px) {
    .video-wrapper {
        border-radius: 0;
        width:100%
    }

    .video-wrapper iframe {
        min-height: 300px;
    }
}

/* HTML Post Content Styles */
.html-content {
    /* Container for HTML posts */
}

.html-post-content {
    /* Specific styling for HTML post content */
    width: 100%;
    overflow-x: auto; /* Handle wide content */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.html-post-content * {
    /* Ensure all HTML elements inherit proper styling */
    max-width: 100%;
    box-sizing: border-box;
}

.html-post-content img {
    /* Responsive images in HTML content */
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.html-post-content video {
    /* Responsive videos in HTML content */
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.html-post-content iframe {
    /* Responsive iframes in HTML content */
    max-width: 100%;
    border-radius: 5px;
    margin: 10px 0;
}

.html-post-content table {
    /* Responsive tables in HTML content */
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 10px 0;
}

.html-post-content table td,
.html-post-content table th {
    /* Table cell styling */
    padding: 8px;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

.html-post-content pre {
    /* Code blocks in HTML content */
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.html-post-content code {
    /* Inline code in HTML content */
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.html-post-content blockquote {
    /* Blockquotes in HTML content */
    border-left: 4px solid var(--light-blue);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.html-post-content a {
    /* Links in HTML content */
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.html-post-content a:hover {
    color: var(--main-blue);
    text-decoration: underline;
}

.html-post-content ul,
.html-post-content ol {
    /* Lists in HTML content */
    padding-left: 20px;
    margin: 10px 0;
}

.html-post-content li {
    /* List items in HTML content */
    margin: 5px 0;
}

/* Responsive adjustments for HTML content */
@media (max-width: 768px) {
    .html-post-content {
        font-size: 14px;
    }
    
    .html-post-content pre {
        padding: 10px;
        font-size: 12px;
    }
    
    .html-post-content table {
        font-size: 12px;
    }
    
    .html-post-content table td,
    .html-post-content table th {
        padding: 5px;
    }
}
