/* Portfolio Item Styles */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.portfolio-item-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: #000;
}

.portfolio-item-inner img,
.portfolio-item-inner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    opacity: 0.9;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading placeholder */
.portfolio-item-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.portfolio-item-inner img,
.portfolio-item-inner video {
    z-index: 2;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .play-icon {
        font-size: 40px;
    }
    
    .portfolio-overlay h3 {
        font-size: 16px;
    }
}