/* ============================================
   DYNAMIC PORTRAIT GALLERY STYLES
   Add this to the <style> section in index.php
   ============================================ */

/* Portrait Gallery Container */
.portrait-gallery-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 0;
}

.portrait-gallery-wrapper {
    display: flex;
    animation: scroll-portraits 40s linear infinite;
    width: fit-content;
}

.portrait-gallery-wrapper:hover {
    animation-play-state: paused;
}

.portrait-gallery {
    display: flex;
    gap: 15px;
}

.portrait-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.portrait-item:hover {
    transform: scale(1.2);
    border-color: #64edff;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(100, 237, 255, 0.5);
}

.portrait-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Smooth infinite scroll animation */
@keyframes scroll-portraits {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Loading state */
.portrait-loading {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.2em;
}

.portrait-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* New member indicator */
.portrait-item.new-member {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.9);
    }
    50% {
        border-color: #64edff;
        box-shadow: 0 0 20px rgba(100, 237, 255, 0.6);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portrait-item {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .portrait-gallery {
        gap: 10px;
    }
}
