}

    body {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .write-page-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 9999;
        display: flex;
        flex-direction: column;
    }

    .write-page-header {
        position: sticky;
        top: 0;
        width: 100%;
        height: 60px;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .write-page-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 1550px;
        margin: 0 auto;
        padding: 0 50px;
    }

    .write-page-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .write-page-actions {
        display: flex;
        gap: 10px;
    }

    .cancel-btn,
    .submit-btn {
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        border: none;
    }

    .cancel-btn {
        background-color: #f0f0f0;
        color: #666;
    }

    .cancel-btn:hover {
        background-color: #e0e0e0;
    }

    .submit-btn {
        background-color: #5a422d;
        color: #fff;
    }

    .submit-btn:hover {
        background-color: #4a3524;
    }

    .submit-btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

    .write-page-content {
        flex: 1;
        overflow-y: auto;
        padding: 0px 50px;
        max-width: 1550px;
        margin: 40px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .writer-info {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        font-size: 14px;
        color: #666;
    }

    .title-box {
        margin-bottom: 20px;
        position: relative;
        display: flex;
        align-items: center;
        gap: 15px;
    }

	#writeForm {
		display: flex;
    	flex-direction: column;
	}

    .title-input {
        flex: 1;
        font-size: 24px;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        outline: none;
        background: transparent;
        font-weight: 500;
        box-sizing: border-box;
		width: 100%;
    }
    
    .category-select {
        font-size: 16px;
		height: 60px;
        padding: 15px 20px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        outline: none;
        background: transparent;
        cursor: pointer;
        min-width: 150px;
    }
    
    .category-select:focus {
        border-bottom-color: #5a422d;
    }

    .title-input:focus {
        border-bottom-color: #5a422d;
    }

    .title-input::placeholder {
        color: #999;
        font-weight: normal;
    }

    .secret-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .secret-toggle:hover {
        background-color: #f5f5f5;
    }

    .secret-toggle.active {
        background-color: #5a422d;
    }

    .secret-toggle.active svg {
        fill: #fff;
    }

    .secret-toggle svg {
        width: 20px;
        height: 20px;
        fill: #999;
        transition: fill 0.2s ease;
    }

    .secret-toggle.disabled {
        cursor: not-allowed;
        opacity: 0.8;
    }

    .secret-toggle.disabled:hover {
        background-color: transparent;
    }

    .notice-toggle {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .notice-toggle:hover {
        background-color: #f5f5f5;
    }

    .notice-toggle.active {
        background-color: #5a422d;
    }

    .notice-toggle.active svg {
        stroke: #fff;
    }

    .notice-toggle svg {
        width: 20px;
        height: 20px;
        stroke: #999;
        transition: stroke 0.2s ease;
    }
    
    .secret-password-input {
        font-size: 16px;
		height: 60px;
        padding: 15px 10px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        outline: none;
        background: transparent;
        width: 150px;
        display: none;
    }
    
    .secret-password-input:focus {
        border-bottom-color: #5a422d;
    }
    
    .secret-password-input::placeholder {
        color: #999;
        font-size: 14px;
    }

    .ckeditor-container {
        height: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    /* CKEditor 기본 Image 버튼 숨기기 */
    .cke_button__image {
        display: none !important;
    }

	@media (max-width: 768px) {
		.write-page-header-inner, .write-page-content {
			padding: 0px 20px;
		}
	}

.image-gallery::-webkit-scrollbar {
                            height: 8px;
                        }
                        .image-gallery::-webkit-scrollbar-track {
                            background: #f1f1f1;
                            border-radius: 4px;
                        }
                        .image-gallery::-webkit-scrollbar-thumb {
                            background: #ccc;
                            border-radius: 4px;
                        }
                        .image-gallery::-webkit-scrollbar-thumb:hover {
                            background: #999;
                        }
                        .add-thumbnail-btn:hover {
                            border-color: #5a422d;
                            background-color: #f5f5f5;
                        }
                        .add-thumbnail-btn:hover svg {
                            stroke: #5a422d;
                        }