.angie-most-viewed-posts-wrapper .mvp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; /* Controlled by Elementor */
}

/* Vertical Layout specifics */
.mvp-layout-vertical .mvp-list {
    flex-direction: column;
}
.mvp-layout-vertical .mvp-item {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Horizontal Layout specifics */
.mvp-layout-horizontal .mvp-list {
    display: grid;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}
.mvp-layout-horizontal .mvp-item {
    display: flex;
    flex-direction: column; /* Stack image/numbers above content in grid */
    align-items: flex-start;
    height: 100%;
}
.mvp-layout-horizontal .mvp-thumbnail {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}
.mvp-layout-horizontal .mvp-thumbnail a {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    aspect-ratio: 16/9;
}

/* Horizontal List Layout specifics (Scrollable) */
.mvp-layout-horizontal_list .mvp-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.mvp-layout-horizontal_list .mvp-item {
    display: flex;
    flex-direction: row !important; /* Keep row structure exactly like vertical list */
    align-items: center;
}

/* Base item settings */
.angie-most-viewed-posts-wrapper .mvp-item {
    gap: 15px; /* Controlled by Elementor */
    transition: all 0.3s ease;
    overflow: hidden; /* Ensure rounded corners clip content */
    box-sizing: border-box;
}
.angie-most-viewed-posts-wrapper .mvp-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    transition: all 0.3s ease;
}
.angie-most-viewed-posts-wrapper .mvp-thumbnail {
    flex-shrink: 0; /* Never shrink */
    flex-grow: 0; /* Never grow */
    display: block; /* Ensure it respects explicit width/height */
    overflow: hidden; /* Clip anything that overflows the fixed size */
}
.angie-most-viewed-posts-wrapper .mvp-thumbnail a {
    display: block;
    width: 100%;
    overflow: hidden;
}
.angie-most-viewed-posts-wrapper .mvp-thumbnail img {
    max-width: none;
    width: 100%; 
    height: 100%; 
    display: block;
    object-fit: cover;
    object-position: center;
}

.angie-most-viewed-posts-wrapper .mvp-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    gap: 5px;
    flex-grow: 1; /* Take up remaining space */
    padding: 10px 0; /* Add slight base padding */
    width: 100%;
}
.angie-most-viewed-posts-wrapper .mvp-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.angie-most-viewed-posts-wrapper .mvp-cat {
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.angie-most-viewed-posts-wrapper .mvp-title {
    margin: 0;
    line-height: 1.3;
}
.angie-most-viewed-posts-wrapper .mvp-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}