/* General Styles for the Custom Post Navigation */
.elementor-widget-custom-post-navigation > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    justify-content: space-between;
}

.elementor-widget-custom-post-navigation .post-navigation-image-container {
    display: flex;
    align-items: center; /* Centers items vertically */
    gap: 10px; /* Adjusts the space between the icon and the image */
}

.elementor-widget-custom-post-navigation .nav-next .post-navigation-image-container {
    justify-content: end;
}

.post-nav-has-thumbnail.placeholder.next a {
    display: flex;
    justify-content: end;
}

/* Style for the Previous and Next Navigation Containers */
.elementor-widget-custom-post-navigation .nav-previous,
.elementor-widget-custom-post-navigation .nav-next {
    text-align: center;
    display: block;
    width: 100%;
}

.elementor-widget-custom-post-navigation .nav-next {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.elementor-widget-custom-post-navigation .post-navigation-titles {
    width: 100%;
}

/* Thumbnail Image Styles */
.elementor-widget-custom-post-navigation .post-nav-has-thumbnail img {
    max-width: 100px; /* Adjust thumbnail size */
    height: auto;
    margin-top: 8px; /* Space between thumbnail and text */
    object-fit: cover;
    display: block;
}

/* Navigation Text Style */
.elementor-widget-custom-post-navigation .custom-nav span {
    display: block;
    font-size: 14px; /* Adjust font size for titles */
    color: #333; /* Adjust font color for titles */
}

/* Hover Effects */
.elementor-widget-custom-post-navigation a:hover {
    text-decoration: none; /* Removes underline on hover */
    opacity: 0.8; /* Adjust for hover effect on links */
}

/* Icon Positioning Styles */
.elementor-widget-custom-post-navigation .post-navigation-image-container {
    flex-direction: row; /* Default direction, can be changed via Elementor controls */
}


.elementor-widget-custom-post-navigation .nav-previous .post-navigation-image-container {
    justify-content: flex-start;
}

.elementor-widget-custom-post-navigation .nav-end .post-navigation-image-container {
    justify-content: flex-end;
}

.elementor-widget-custom-post-navigation .previous-navigation-icon,
.elementor-widget-custom-post-navigation .next-navigation-icon {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .elementor-widget-custom-post-navigation .custom-nav {
        flex-direction: column;
    }
}
