.fs-preview-box {
    display: block;
    border-left: 5px solid #008001;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #f7fcf8;
    transition: all 0.3s ease-in-out;
}

.fs-preview-box:hover {
    background: #eef8f0;
}

.preview-container {
    display: flex;
    align-items: center;
}

.preview-thumbnail {
    flex-shrink: 0;
    margin-right: 10px;
}

.preview-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.preview-excerpt {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
}

.wp-embedded-content {
    display: none;
}

.fsn-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a77f2;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.fsn-back-button:hover {
    color: #2678e5;
}

.fsn-back-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(48%) sepia(78%) saturate(5402%) hue-rotate(203deg) brightness(98%) contrast(93%);
    transition: filter 0.3s ease-in-out;
}

.fsn-back-button:hover img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(89%) saturate(951%) hue-rotate(188deg) brightness(96%) contrast(95%);
}

.post-edit-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    font-size: 13px;
}

.post-edit-form label {
   color: #99a5ae;
}

.post-edit-form input {
    width: 100%;
    padding: 20px;
    font-size: 13px;
    color: #000000;
    background: #9aa4ac;
    border: none;
    border-radius: 50px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.post-edit-form select {
    padding: 20px;
    width: 100%;
    border-radius: 50px;
    background: #9aa4ac;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.post-edit-form select::-ms-expand {
    display: none;
}


.save_post_changes {
    width: 100%;
    background: #28a745;
    color: white;
    padding: 20px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save_post_changes:hover {
    background: #0d8b2a;
}

#save_status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: green;
}

.trumbowyg-box, .trumbowyg-editor {
    display: block;
    position: relative;
    border: none !important;
    border-radius: 20px;
    margin-bottom: 15px;
    width: 100%;
    min-height: 300px;
}

.trumbowyg-button-pane {
    width: 100%;
    min-height: 36px;
    background: #9aa4ac !important;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #d7e0e2;
    margin: 0;
    padding: 0 5px;
    position: relative;
    list-style-type: none;
    line-height: 10px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 11;
}

.trumbowyg-box .trumbowyg-editor {
    margin: 0 auto;
    border: 1px solid #9aa4ac !important;
    border-radius: 0 0 20px 20px;
}

.fsn-copy-link-btn {
    border: none;
    padding: 0;
    background: none;
    color: green;
    font-size: 16px;
}

.gallery-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 15px;
}

.gallery-two-columns figure {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.gallery-two-columns img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-two-columns img:hover {
    transform: scale(1.01);
}

#gallery-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#gallery-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#gallery-popup .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#gallery-popup .prev-btn,
#gallery-popup .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
    color: white;
    font-size: 15px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    height: 35px;
    width: 35px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-popup .prev-btn {
    left: 20px;
}

#gallery-popup .next-btn {
    right: 20px;
}


@media (max-width: 1024px) {
    article .content-wrapper.cw-fsn-151 {
        padding: 10px;
    }
    
    .preview-excerpt {
        font-size: 13px;
    }    
}


[data-theme="dark"] .fs-preview-box {
    background: #061704;
}

[data-theme="dark"] .fs-preview-box:hover {
    background: #081f05;
}

[data-theme="dark"] .preview-excerpt {
    color: #e7e9ea;
}

[data-theme="dark"] .post-actions-151 {
    color: white;
}