/* Etkinlik videoları için kart düzeni */
.event-videos-container .col-xl-4.col-md-6 {
    display: flex;
}

.event-videos-container .th-team.team-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.event-videos-container .popup-video {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.event-videos-container .team-img {
    position: relative;
}

.event-videos-container .team-img img {
    height: 320px;
    object-fit: cover;
}

.event-videos-container .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.7));
}

.event-videos-container .video-play-button i {
    color: white;
    font-size: 28px;
}

.event-videos-container .team-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Lazy Loading Görsel Optimizasyonu */
.lazy-image-container {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.lazy-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    pointer-events: none; /* Tıklamayı engelleme */
}

.lazy-image-container.loaded::before {
    animation: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lazy-image.lazy-loading {
    opacity: 0;
}

.lazy-image.lazy-loaded {
    opacity: 1;
}

.lazy-image.lazy-error {
    opacity: 1;
    filter: grayscale(100%);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Görsel yüklenme animasyonu için hafif bir fade-in */
.lazy-image-container.loaded .lazy-image {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
