/* Simple Grid Gallery - Frontend Styles */

.sgg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
}

.sgg-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: transparent !important;
    cursor: default;
}

.sgg-gallery-item.sgg-empty {
    background: transparent !important;
}

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

.sgg-gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay z nazwą pliku - białe tło */
.sgg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
}

.sgg-gallery-item:hover .sgg-overlay {
    opacity: 1;
}

/* Nazwa pliku - style inline nadpiszą te wartości */
.sgg-filename {
    text-align: center;
    word-break: break-word;
    line-height: 1.4;
}

/* Komunikat o braku zdjęć */
.sgg-no-images {
    text-align: center;
    padding: 40px;
    background: transparent;
    border-radius: 8px;
    color: #666;
}

/* Responsywność */
@media (max-width: 768px) {
    .sgg-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .sgg-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}
