.latest-post {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: stretch;
    border-top: 1px solid var(--text-color);
    height: auto;
}

.latest-post-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(3.5vw * var(--scale)) calc(2.5vw * var(--scale));
}

.latest-post-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: calc(5vw * var(--scale));
}

.latest-post-title {
    text-decoration: none;
    color: inherit;
}

.latest-post-tag {
    text-decoration: none;
    color: inherit;
    margin-bottom: calc(1.6vw * var(--scale));
}

.latest-post-title:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.latest-post-tag:hover {
    text-decoration: underline;
}

.latest-post-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latest-post-paragraph {
    max-width: 450px;
    width: 100%;
    margin-right: 32px;
}

.latest-post-image-link {
    border-left: 1px solid var(--text-color);
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1200 / 675;
}

/* Make the image cover the entire box */
.latest-post-image-link figure,
.latest-post-image-link .placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.latest-post-image-link img,
.latest-post-image-link .placeholder-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Featured title sizing tuned to image ratio (approx 1200x675, 16:9) */
.latest-post .latest-post-title h2 {
    font-size: clamp(48px, 4.2vw, 96px);
    line-height: 1.05;
}

/* Removed zoom on hover */

/* Styles for large desktop */
@media (min-width: 1439px) {
    .latest-post-paragraph {
        max-width: calc(32vw * var(--scale));
        margin-right: calc(2.2vw * var(--scale));
    }

    .latest-post-title:hover {
        text-decoration-thickness: calc(0.2vw * var(--scale));
    }
}

/* Styles for tablet */
@media (max-width: 991px) {
    .latest-post {
        display: flex;
        flex-direction: column-reverse;
        height: auto;
    }

    .latest-post-content {
        width: 100%;
        padding: 58px 30px;
    }

    .latest-post-top {
        padding-right: 42px;
        margin-bottom: 35vw;
    }

    .latest-post-tag {
        margin-bottom: 18px;
    }

    .latest-post-bottom {
        column-gap: 20%;
    }

    .latest-post-paragraph {
        max-width: 100%;
        width: 100%;
        margin-right: 0px;
    }

    .latest-post-image-link {
        border-left: none;
        border-bottom: 1px solid var(--text-color);
        height: auto;
        width: 100%;
        position: relative;
    }

    .latest-post-title:hover, .latest-post-tag:hover {
        text-decoration: none;
    }

    /* Removed hover effects */
}

@media (max-width: 479px) {

    .latest-post {
        display: none;
    }

    .latest-post-content {
        height: 50%;
        width: 100%;
        padding: 46px 18px;
    }

    .latest-post-top {
        padding-right: 0px;
        margin-bottom: 40vw;
    }

    .latest-post-tag {
        margin-bottom: 14px;
    }

    .latest-post-bottom {
        column-gap: 18px;
    }

    .latest-post-image-link {
        height: auto;
    }
}