.instagram-carousel {
    width: 100%;
    position: relative;
}

.instagram-carousel-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px;
}

.instagram-post-content {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

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

.instagram-post-image:hover {
    transform: scale(1.05);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #fff;
}

.instagram-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.instagram-post:hover .instagram-caption {
    transform: translateY(0);
}

.instagram-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.instagram-error {
    text-align: center;
    color: #999;
    padding: 20px;
}
