/* Instagram Gallery Styles */
.instagram-gallery-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.instagram-gallery-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.instagram-gallery-area .container {
    position: relative;
    z-index: 2;
}

.instagram-gallery {
    margin: 0 -10px;
}

.instagram-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 20px;
}

.instagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.instagram-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.instagram-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-link img {
    transform: scale(1.05);
}

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

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.instagram-caption {
    padding: 15px;
    background: #fff;
}

.instagram-caption p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Instagram Feed Widget */
.instagram-feed {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.instagram-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.instagram-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.instagram-header h4 i {
    margin-right: 8px;
}

.follow-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.follow-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.instagram-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.instagram-grid-item:hover img {
    transform: scale(1.1);
}

.instagram-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-grid-item:hover .instagram-hover {
    opacity: 1;
}

.instagram-hover i {
    color: #fff;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instagram-gallery {
        margin: 0 -5px;
    }
    
    .instagram-item {
        margin-bottom: 15px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-header {
        padding: 15px;
    }
    
    .instagram-header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .instagram-caption {
        padding: 10px;
    }
    
    .instagram-caption p {
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.instagram-loading {
    text-align: center;
    padding: 40px;
}

.instagram-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e6683c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.instagram-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Instagram Brand Colors */
.instagram-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-gradient-text {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.instagram-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.instagram-item:hover::before {
    opacity: 0.1;
}

/* Custom Scrollbar for Caption */
.instagram-caption {
    max-height: 80px;
    overflow-y: auto;
}

.instagram-caption::-webkit-scrollbar {
    width: 4px;
}

.instagram-caption::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.instagram-caption::-webkit-scrollbar-thumb {
    background: #e6683c;
    border-radius: 2px;
}

.instagram-caption::-webkit-scrollbar-thumb:hover {
    background: #dc2743;
} 