/* ACF Gallery Loop Block - Frontend Styles */

.acf-gallery-loop-block {
    margin: 1rem 0;
}

.acf-gallery-loop-block .gallery-grid {
    display: grid;
    margin: 1rem 0;
}

.acf-gallery-loop-block .gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.acf-gallery-loop-block .gallery-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.acf-gallery-loop-block .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.acf-gallery-loop-block .gallery-lightbox-block {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.acf-gallery-loop-block .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acf-gallery-loop-block .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .acf-gallery-loop-block .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }
    
    .acf-gallery-loop-block .gallery-item {
        border-radius: 4px !important;
    }
    
    .acf-gallery-loop-block .gallery-caption {
        padding: 0.25rem;
        font-size: 0.7rem;
    }
}

/* Debug styles */
.acf-gallery-debug {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 4px;
}

.acf-gallery-debug::-webkit-scrollbar {
    width: 6px;
}

.acf-gallery-debug::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.acf-gallery-debug::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.acf-gallery-debug::-webkit-scrollbar-thumb:hover {
    background: #555;
}
