.group-thumb {
            margin: 10px;
            position: relative;
            display: inline-block;
            cursor: pointer;
        }
        .group-thumb img {
            width: 300px;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        .badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: #000;
            color: #fff;
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 5px;
        }
        #popup-container {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            display: none;
            background: rgba(0,0,0,0.85);
            justify-content: center;
            align-items: center;
            z-index: 9999;
            padding: 20px;
        }
#popup-content {
    background: #fff;
    width: 95%; /* diperbesar dari 80% */
    max-width: 1100px; /* agar cukup tampung semua elemen */
    height: auto; /* biar tinggi menyesuaikan konten */
    max-height: 95vh; /* tetap batasi tinggi maksimal */
    position: relative;
    padding: 30px; /* tambah padding untuk ruang ekstra */
    border-radius: 10px;
    animation: fadeInScale 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* ubah dari center ke flex-start agar elemen tersusun atas */
    overflow-y: auto; /* scroll jika konten terlalu tinggi */
}

        #popup-content img {
            max-height: 70%; max-width: 100%;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 0 10px #aaa;
        }
        .nav-btn, .close-btn {
            padding: 10px 20px; margin: 5px;
            background-color: #0d6efd;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .close-btn {
            background-color: #dc3545;
            position: absolute;
            top: 10px; right: 10px;
        }
/*        .selected {
    border: 3px solid #0d6efd;
  outline: none;
  box-shadow: none;
}*/
  .selected {
    border: 3px solid #0d6efd;
}

#collage-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#collage-popup-content {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
}

 #popup-number {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 5px 10px;
        border-radius: 8px;
        font-weight: bold;
        font-size: 16px;
        z-index: 10;
    }

#collage-popup-content img {
    max-width: 100%;
    max-height: 400px;
    margin-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.close-btn:hover {
    background-color: #c82333;
}


        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }
       @media (max-width: 768px) {
    .group-thumb img { width: 100%; max-width: 100%; }
    #popup-content {
        width: 98%;
        height: auto;
        max-height: 90vh;
        padding: 15px;
    }
}

.thumbnail-container {
    position: relative;
    display: inline-block;
}


.thumbnail-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.group-thumb {
    position: relative;
    margin: 10px;
}
.group-thumb img {
    width: 100%;
    border-radius: 8px;
}
.group-thumb .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.group-thumb .badge + .badge {
    top: 34px;
}

