/* ---------------------------------------------------- */
/* ---------------------------------------------------- */
/* ---------------------------------------------------- */

.latest-post-header-container {
    display: flex;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    /* align-items: center; */
    margin-top: 16px;
    margin-bottom: 16px;
}
.latest-post-header-right-container {
    display: flex;
    gap: 16px;
}
.latest-post-header-right-container > div {
    flex: 1; /* Makes each div take equal width */
    display: flex;
    align-items: center; /* Centers text vertically */
    justify-content: center; /* Centers text horizontally */
}


/* ---------------------------------------------------- */
/* Carusel */

.latest-post-carousel-container {
  position: relative;
  width: 100%;
}

.latest-post-carousel {
    width: 100%;
    height: 400px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.latest-post-carousel.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    user-select: none;
}

.latest-post-carousel::-webkit-scrollbar {
    display: none;
}

.latest-post-carousel-item {
    list-style-type: none;
    flex: 0 0 400px;
    /* flex: 0 0 40%; */
    height: 100%;
    /* border: 1px solid #ddd; */
    /* padding: 20px; */
    scroll-snap-align: center;
    text-align: left;
}

@media (min-width: 600px) {
    .latest-post-carousel-item {
        /* background-color: #F4F2EE; */
    }
}

@media (max-width: 600px) {
    .latest-post-carousel {
        padding: 0;
        gap: 0;
    }

    .latest-post-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.latest-post-carousel-item .img-container {
    width: 100%;
    height: 210px;
    overflow: hidden;

}
.latest-post-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    /* height: 100px; */
    /* max-height: 300px;
    max-width: 100%; */
}

.latest-post-nav-button {
    /* position: absolute; */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.latest-post-nav-button.prev {
    left: 0;
}
.latest-post-nav-button.next {
    right: 0;
}


/* ---------------------------------------------------- */
/* ---------------------------------------------------- */
/* ---------------------------------------------------- */

/* All posts */

.ml25-all-posts-container {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    gap: 32px;
}

.ml25-all-posts-item {
    width: 260px;
    /* min-height: 400px; */
    background-color: white;
    margin-bottom: 32px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .ml25-all-posts-item {
        width: 100%;
        /* height: auto; */
        margin-bottom: 16px;
    }
}

.ml25-all-posts-item .img-container {
    width: 100%;
    height: 260px;
    /* height: auto; */
    overflow: hidden;
    
    /* display: flex;
    align-items: center;
    justify-content: center; */
}

.ml25-all-posts-item .btn-container {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 16px;
  width: 60%;
}

@media (max-width: 600px) {
    .ml25-all-posts-item .img-container {
        aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
        height: auto;
    }
    .ml25-all-posts-item .btn-container {
      padding-top: 32px;
    }
}

.ml25-all-posts-item img {
    width: 100%;
    height: auto;
    display: block;
    /* height: 100px; */
    /* max-height: 300px;
    max-width: 100%; */
}


/* ---------------------------------------------------- */
/* ---------------------------------------------------- */
/* ---------------------------------------------------- */
