:root {
    --ig-bg-light: #ffffff;
    --ig-text-light: #262626;
    --ig-bg-dark: #121212;
    --ig-text-dark: #fafafa;
    --ig-accent: #0095f6;
}

/* Base Styles */
.ig-feed-container {
    max-width: 1200px;
    margin: 20px auto;
}

.ig-feed-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
}

.ig-feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ig-feed-item:hover img {
    transform: scale(1.05);
}

.ig-feed-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ig-feed-item:hover .ig-feed-overlay {
    opacity: 1;
}

/* Masonry Layout */
.ig-feed-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}

.ig-feed-masonry .ig-feed-item:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Lightbox Modal */
.ig-feed-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
}

.ig-feed-modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-modal-content {
    background: white;
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ig-modal-content {
        flex-direction: row;
    }
    .ig-modal-media { width: 60%; }
    .ig-modal-details { width: 40%; }
}

.ig-modal-details {
    padding: 20px;
    background: var(--ig-bg-light);
    color: var(--ig-text-light);
    display: flex;
    flex-direction: column;
}

.ig-feed-theme-dark .ig-modal-details {
    background: var(--ig-bg-dark);
    color: var(--ig-text-dark);
}

.ig-modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}
