/* ================================================
   Grid Gallery Portlet - Conference Style
   ================================================ */

/* Gallery Item - Hover & Zoom Effects */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

/* Zoom Effect Wrapper */
.zoom-effect-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1; /* Standard für kleine Bilder */
}

.zoom-effect-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom on Hover */
.gallery-item:hover .zoom-effect-img {
    transform: scale(1.1);
}

/* Video Items - Anderes Aspect Ratio */
.col-12 .zoom-effect-wrapper {
    aspect-ratio: 16 / 9; /* Videos breiter */
}

/* Dark Overlay auf Hover - Opacity Animation */
.gallery-item .opacity-0 {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .opacity-0 {
    opacity: 1 !important;
}

/* Play Button für Videos */
.gallery-item .btn-primary {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.gallery-item:hover .btn-primary {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Zoom Icon */
.gallery-item .ai-zoom-in {
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive: Mobile - Gleiche Höhen */
@media (max-width: 575.98px) {
    .zoom-effect-wrapper {
        aspect-ratio: 4 / 3;
    }
    
    .col-12 .zoom-effect-wrapper {
        aspect-ratio: 16 / 9;
    }
}

/* OPC Preview Styling */
.opc-GridGallery {
    background: #f8f9fa;
    border-radius: 8px;
}

.opc-GridGallery .bg-light {
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.opc-GridGallery .bg-danger {
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Card Hover Effect (Bootstrap Cartzilla) */
.card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
