/* Masonry feed grid — structured columns with generous spacing */

#feeds-grid-wrap {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    user-select: none;
    cursor: default;
    touch-action: none;
}

#feeds-grid {
    width: 100%;
    height: 100%;
    position: relative;
}

.feed-grid__item {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    white-space: normal;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.feed-grid__item:hover .feed-grid__item-image {
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12);
}

.feed-grid__item:focus-visible {
    outline: 2px solid var(--brand, #393bfe);
    outline-offset: 4px;
    border-radius: 8px;
}

.feed-grid__item-wrapper {
    display: flex;
    flex-direction: column;
}

.feed-grid__item-image {
    overflow: hidden;
    border-radius: 12px;
    background: #f3f2ef;
    transition: box-shadow 0.22s ease;
    flex-shrink: 0;
}

.feed-grid__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.feed-grid__caption {
    width: 100%;
    display: block;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    margin-top: 18px;
    color: var(--text-primary, #09090b);
    opacity: 1;
    transform: none;
    pointer-events: none;
}

@media (max-width: 720px) {
    .feed-grid__caption {
        font-size: 14px;
        margin-top: 14px;
    }
}
