.image-container {
    position: relative;
    display: inline-block;
}
.annotation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.modal-dialog-slide {
    max-width: 100%;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.modal-body-slide {
    overflow-y: auto;
    height: 100%;
    overflow: hidden;
}
.modal-content-slide {
    height: 100%; 
    display: flex;
    flex-direction: column;
}
.modal-body img {
    max-width: 100%;
    max-height:85vh;
    object-fit: contain; 
}
.square-container {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    overflow: hidden;
}

.square-container img,
.square-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); 
    color: var(--surface-color-on, #fff);
    text-align: left;
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1.2;
    min-height: 20px;
}
.image-overlay p {
    margin: 2px 0;
    padding: 0;
}
.fullscreen-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10; 
}
.fullscreen-btn {
    background: none;
    border: none;
    color: var(--surface-color-on, #fff);
    font-size: 18px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}
.fullscreen-btn:hover {
    color: color-mix(in srgb, var(--surface-color-on, #fff) 70%, black);
}