/* Grid Layout */
.vsf-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Media Card */
.vsf-media-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.vsf-media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Image Section */
.vsf-media-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.vsf-media-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
}

/*consistent height but show full image */
.vsf-media-image {
    max-height: 300px;
}
/* Add click to enlarge functionality */
.vsf-media-image {
    cursor: pointer;
}

.vsf-media-image img {
    cursor: pointer;
}

.vsf-image-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vsf-media-image:hover .vsf-image-zoom-icon {
    opacity: 1;
}

.vsf-media-card:hover .vsf-media-image img {
    transform: scale(1.05);
}

.vsf-media-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

/* Content Section */
.vsf-media-content {
    padding: 20px;
}

.vsf-media-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #666;
}

.vsf-newspaper, .vsf-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vsf-media-title {
    font-size: 1rem;
    font-weight: 800;
    color: #13612e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.vsf-media-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
}

/* Buttons */
.vsf-media-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vsf-read-more {
    background: #13612e;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vsf-read-more:hover {
    background: #0b4d24;
    transform: translateY(-2px);
}

.vsf-external-link {
    background: #00CED1;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vsf-external-link:hover {
    background: #00b4b6;
    transform: translateY(-2px);
}

/* Modal Styles */
.vsf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.vsf-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    animation: vsfModalSlide 0.3s ease;
}

@keyframes vsfModalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vsf-modal-close {
    position: sticky;
    top: 10px;
    right: 20px;
    float: right;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.vsf-modal-close:hover {
    color: #d32f2f;
}

.vsf-modal-header {
    padding: 25px 25px 0 25px;
}

.vsf-modal-header h2 {
    color: #13612e;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.vsf-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.vsf-modal-text {
    padding: 25px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    white-space: pre-wrap;
}

.vsf-no-media {
    text-align: center;
    padding: 60px;
    background: #f8fafc;
    border-radius: 20px;
    color: #666;
}

/* Image Zoom Modal */
#vsf-image-modal .vsf-image-modal-content {
    background: rgba(0, 0, 0, 0.9);
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    text-align: center;
}

#vsf-image-modal .vsf-image-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10;
}

#vsf-image-modal .vsf-image-modal-close:hover {
    color: #ff9800;
}

#vsf-image-modal {
    background: rgba(0, 0, 0, 0.95);
}

.vsf-media-image {
    min-height: auto;
}
.vsf-media-image img {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .vsf-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .vsf-media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vsf-media-image {
        height: 200px;
    }
    
    .vsf-media-content {
        padding: 15px;
    }
    
    .vsf-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .vsf-modal-text {
        padding: 20px;
        font-size: 0.85rem;
    }
}