/* @override 
	https://usberger.pincgestaltet.ch/wp-content/plugins/draggable-collage/draggable-collage.css?* */

/* Draggable Collage CSS - Pinterest Style */
.draggable-collage {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f1f3f4;
}

.draggable-item {
    position: absolute;
    cursor: move;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    user-select: none;
}

/* Verschiedene Card-Größen */
.draggable-item.size-small {
    width: 20%;
    min-width: 150px;
}

.draggable-item.size-medium {
    width: 25%;
    min-width: 200px;
}

.draggable-item.size-large {
    width: 30%;
    min-width: 250px;
}

.draggable-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.draggable-item.dragging {
    z-index: 1000;
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: none;
}

/* Bild füllt die Card */
.draggable-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.draggable-item img {
    border-radius: 16px;
}

/* Kreisförmiger Link-Button in oberer rechter Ecke */
.item-link {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.item-link:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	text-decoration: none!important;
}

/* Pfeil-Icon im Link */
.item-link::after {
    content: "+";
    font-size: 25px;
    font-weight: bold;
    color: #000000;
    line-height: 0;
}

/* Kategorie */
.item-cat {
	opacity: 0;
	font-size: 15px;
	padding: 3px 15px 3px 15px;
	background-color: yellow;
	border-radius: 9999px;
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 75%;
	transition: opacity .2s ease 0s;
	text-align: center;
}

.draggable-item:hover .item-cat {
	opacity: 1;
}

/* Touch-Optimierung für Mobile */
.draggable-item {
    touch-action: none; /* Verhindert Browser-Scroll beim Touch */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Verhindert Scroll auf dem Container während Drag */
.draggable-collage {
    touch-action: pan-x pan-y; /* Erlaubt nur Panning wenn nicht auf draggable Item */
}

@media (hover: none) {
    .draggable-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .item-link:hover {
        transform: none;
    }
    
    /* Touch-Feedback für Mobile */
    .draggable-item:active {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

/* Card-Höhen automatisch anpassen */
.draggable-item.size-small { aspect-ratio: auto; }
.draggable-item.size-medium { aspect-ratio: auto; }
.draggable-item.size-large { aspect-ratio: auto; }