.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.photo-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
}

.photo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.photo-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: #fff;
    font-size: 13px;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.photo-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.photo-ad {
    grid-column: 1 / -1;
    margin: 4px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-light);
    font-size: 16px;
}

.category-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .photo-card-overlay {
        opacity: 1;
        padding: 6px 10px;
        font-size: 12px;
    }
}