﻿#storyPreviewContainer {
    width: 100px;
    height: 125px;
    border: 2px dashed #ccc;
    position: relative; 
    overflow: hidden; 
    background-color: #f9f9f9;
    margin: 0 auto;
    box-sizing: border-box; 
    border-radius: 15px; 
}

#storyImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1; 
}

#storyTextContainer {
    position: absolute; 
    bottom: 0; 
    width: 100%;
    color: white; 
    text-align: left; 
    padding: 5px;
    font-size: 12px; 
    z-index: 2; 
    box-sizing: border-box;
}

#imagePreviewContainer {
    width: 100%;
    max-width: 360px;
    max-height: 640px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box; 
}

#imagePreview {
    width: 100%;
    height: 100%; 
    object-fit: contain; 
    z-index: 0; 
}

.textBlock {
    position: absolute;
    background-color: rgba(0, 0, 0);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    pointer-events: auto; 
    padding: 8px 16px; 
    box-sizing: border-box; 
    overflow: hidden; 
    word-wrap: break-word; 
    word-break: break-word; 
    white-space: normal; 
    text-align: center;
    max-width: 100%;
}

.textBlock.small {
    width: 50%;
}

.textBlock.medium {
    width: 66.6%; 
}

.textBlock.big {
    width: calc(100% - 32px); 
}

.textBlock.top-left {
    top: 16px;
    left: 16px;
}

.textBlock.top-center {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.textBlock.top-right {
    top: 16px;
    right: 16px;
}

.textBlock.center-left {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.textBlock.center-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.textBlock.center-right {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.textBlock.bottom-left {
    bottom: 16px;
    left: 16px;
}

.textBlock.bottom-center {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.textBlock.bottom-right {
    bottom: 16px;
    right: 16px;
}
