html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =================================
   STARTERSKY - RELATED POSTS
   ================================= */

/* Remove the entire Jetpack "Like this" section */
div.like-post-wrapper,
.like-post-wrapper,
.sd-like,
.jetpack-likes-widget-wrapper {
    display: none !important;
}


/* =================================
   RELATED POSTS SECTION
   ================================= */

#jp-relatedposts {
    display: block !important;
    margin-top: 10px !important;
    margin-left: 30px !important;
    margin-right: 30px !important;
    padding-top: 40px !important;
    padding-bottom: 30px !important;
    border-top: none !important;
}

/* Remove divider lines */
#jp-relatedposts:before,
#jp-relatedposts:after {
    display: none !important;
}

/* Remove any divider attached to the headline */
#jp-relatedposts h3.jp-relatedposts-headline {
    border: none !important;
    border-top: none !important;
    padding-top: 0 !important;
}

/* Related heading */
#jp-relatedposts h3 {
    margin: 0 0 30px !important;
    padding: 0 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #111827 !important;
}


/* =================================
   RELATED POSTS GRID
   ================================= */

#jp-relatedposts .jp-relatedposts-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
}

/* Individual related post */
#jp-relatedposts .jp-relatedposts-post {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}


/* =================================
   RELATED POST IMAGES
   ================================= */

#jp-relatedposts .jp-relatedposts-post img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 0 14px !important;
    border-radius: 12px !important;
}


/* =================================
   RELATED POST TITLES
   ================================= */

#jp-relatedposts .jp-relatedposts-post a {
    display: block !important;
    color: #111827 !important;
    text-decoration: none !important;
}

#jp-relatedposts .jp-relatedposts-post .jp-relatedposts-post-title,
#jp-relatedposts .jp-relatedposts-post .jp-relatedposts-post-title a {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #111827 !important;
    text-decoration: none !important;
}

#jp-relatedposts .jp-relatedposts-post .jp-relatedposts-post-title a:hover {
    color: #10b8c7 !important;
}


/* =================================
   HIDE DATE / CATEGORY
   ================================= */

#jp-relatedposts .jp-relatedposts-post-date,
#jp-relatedposts .jp-relatedposts-post-context {
    display: none !important;
}


/* =================================
   IMAGE HOVER
   ================================= */

#jp-relatedposts .jp-relatedposts-post a img {
    opacity: 1 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#jp-relatedposts .jp-relatedposts-post a:hover img {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10) !important;
}


/* =================================
   TABLET
   ================================= */

@media (max-width: 900px) {

    #jp-relatedposts {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    #jp-relatedposts .jp-relatedposts-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    #jp-relatedposts .jp-relatedposts-post img {
        height: 190px !important;
    }
}


/* =================================
   MOBILE
   ================================= */

@media (max-width: 600px) {

    #jp-relatedposts {
        margin-top: 20px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        padding-top: 30px !important;
    }

    #jp-relatedposts h3 {
        font-size: 24px !important;
        margin-bottom: 22px !important;
    }

    #jp-relatedposts .jp-relatedposts-items {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    #jp-relatedposts .jp-relatedposts-post img {
        height: 220px !important;
    }

    #jp-relatedposts .jp-relatedposts-post .jp-relatedposts-post-title,
    #jp-relatedposts .jp-relatedposts-post .jp-relatedposts-post-title a {
        font-size: 17px !important;
    }
}