/* --- VK Video Plugin Grid Styling --- */
.alexus-vk-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 25px 0 !important;
}

/* Video Card Container */
.vk-video {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 9 / 16 !important; /* Forces 9:16 layout dynamically on all screens */
    background: #000 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    height: auto !important; /* Overwrite any hardcoded height */
}

/* Force placeholder & iframe to fill the aspect-ratio container */
.vk-video iframe,
.vk-video .vk-video-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Pagination Styling */
.alexus-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 35px !important;
    width: 100% !important;
}

.alexus-pagination a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    transition: all 0.2s ease !important;
}

.alexus-pagination a:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    transform: translateY(-2px) !important;
}

.alexus-pagination a.active {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .alexus-vk-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 600px) {
    .alexus-vk-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        max-width: 300px !important; /* Limits width on mobile so clip is nicely centered and doesn't stretch huge */
        margin: 25px auto !important;
    }
}
