/* 
.drag-gallery-container {
    position: relative;
    min-width: min(640px, 60vw);
    max-width: 100vw;
    padding: 1rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    margin: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: flex;
    min-height: 80vh;
    transition: all 0.3s ease;
    justify-content: center; 
    height: 100vh;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
 */
.drag-gallery-container {
    position: relative;
    width: calc(100% - 40px);
    height: calc(100vh - 130px); /* PENTING: tinggi penuh viewport */
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 1);
    border-radius: var(--border-radius);
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

#teams-container {
    position: absolute; /* ABSOLUTE agar bisa ditimpa oleh canvas */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50; /* lebih rendah dari canvas */
    overflow: hidden;

    /* Styling teks */
    display: flex;
    justify-content: center;
    padding-top: calc(2rem + 20px); /* Jarak dari atas */
    font-size: 3rem;
    font-weight: bold;
    color: #674aa1;
    text-align: center;
}

#canvas-container {
    position: absolute; /* agar bisa menutupi teams */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* lebih tinggi */
    overflow: hidden;
}

/* 
#canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow: hidden;
}

#teams-container {
    position: relative;
    z-index: 200;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
 */

 .drag-gallery-container.expanded {
    min-width: calc(min(640px, 60vw) + 250px);
    max-width: calc(100vw + 250px);
}

.image-box {
    position: absolute;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 1px 4px 8px rgba(0,0,0,0.2);
    transform-origin: center;
    cursor: move;
    user-select: none;
    padding: 10px;
    border: 1px solid #f5f5f5;
}

.image-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.image-info {
    padding: 10px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.image-info h3 {
    margin: -0.3rem 0 0.3rem 0;
    font-size: 16px;
    line-height: 1;
}

.image-info p {
    margin: 0 0 -0.5rem 0;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}
