/* Instagram Feed Styles */
.instagram-feed-container {
    margin: 0;
    padding: 0;
}

.instagram-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.instagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.instagram-item img {
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.instagram-item a:hover {
    text-decoration: none;
    color: inherit;
}

/* Instagram icon overlay */
.instagram-item .instagram-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.instagram-item .instagram-icon span {
    color: white;
    font-size: 16px;
}

/* Instagram Embed Height Control with Scroll */
.instagram-embed-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.instagram-embed-container .instagram-media {
    max-height: none !important;
    overflow: visible !important;
}

/* Make Instagram embeds more compact but scrollable */
.instagram-embed-container blockquote.instagram-media {
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* Custom scrollbar styling */
.instagram-embed-container::-webkit-scrollbar {
    width: 6px;
}

.instagram-embed-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.instagram-embed-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.instagram-embed-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Fallback styling for missing images */
.instagram-fallback {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instagram-item {
        margin-bottom: 15px;
    }
    
    .instagram-item img {
        height: 100px !important;
    }
    
    .instagram-fallback {
        height: 100px;
    }

    .instagram-embed-container {
        max-height: 300px;
    }
    
    .instagram-embed-container .instagram-media,
    .instagram-embed-container blockquote.instagram-media {
        max-height: 250px !important;
    }
}

@media (max-width: 576px) {
    .instagram-embed-container {
        max-height: 250px;
    }
    
    .instagram-embed-container .instagram-media,
    .instagram-embed-container blockquote.instagram-media {
        max-height: 200px !important;
    }
}
