

@import url('/css/global.css');

.top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;

    .blog-content {
        width: 100%;
    }

    .title {
        text-align: center;
        font-size: 48px;
        margin-top: 64px;
        width: 100%;
    }

    .introduction {
        color: var(--gray);
        font-size: 16px;
        text-align: center;
    }
}

.list-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.button-flex {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

input, textarea, select {
    -webkit-appearance: none; /* For Safari and other WebKit browsers */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;         /* Standard property for other browsers */

    border: none;
    background-color: white;
    box-sizing: border-box;
    width: 100%;
}

select {
    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 16px;
    font-size: 16px;
}

textarea {
    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 16px;
    font-size: 16px;
    resize: none;
}

.date-input {
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}




.image-upload-section {
    margin: 0px 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: white;

    width: 100%;
    box-sizing: border-box;
}

.image-upload-section h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: var(--b);
    color: var(--black);
}

.upload-btn {
    padding: 16px 24px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 32px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Pretendard Variable';
    font-weight: 400;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-right: 0;
    margin-left: auto;
}

.upload-btn:hover {
    box-shadow: var(--shadow);
}

.upload-btn.change-btn {
    background-color: var(--black);
    border: 2px solid var(--black);
}

.upload-btn.change-btn:hover {
    box-shadow: var(--shadow);
}

.image-preview {
    margin-top: 24px;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.remove-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: var(--b);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-family: 'Pretendard Variable';
}

.remove-btn:hover {
    box-shadow: var(--shadow);
}

.images-container {
    margin-top: 24px;
}

.image-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    gap: 16px;
}

.image-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.image-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-name-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-family: 'Pretendard Variable';
    font-weight: 400;
    background-color: white;
    box-sizing: border-box;
    width: 100%;
}

.image-name-input:focus {
    outline: none;
    border-color: var(--black);
}

.original-filename {
    font-size: 14px;
    color: var(--gray);
    font-family: 'Pretendard Variable';
    font-weight: 400;
}

.remove-image-btn {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: 32px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Pretendard Variable';
    font-weight: 400;
    transition: 0.2s;
    flex-shrink: 0;
    width: fit-content;
}

.remove-image-btn:hover {
    box-shadow: var(--shadow);
}


.video {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}
 
.video iframe,
.video object,
.video embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

img {
    border-radius: 16px;
}

.image-list {
    display: flex;
    flex-direction: row;
    gap: 16px;
    height: 300px;
    overflow-x: auto;
    padding-bottom: 16px;
    overflow-y: hidden;

    img {
        height: 300px;
    }
}