.cmp-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  height: 100%;
}

.cmp-left {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.cmp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

/* Force all post blocks to fill their containers */
.cmp-post {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  height: 100%;
}

/* Right side: make each post take half of the cmp-right column */
.cmp-right .cmp-post {
  flex: 1;
  height: 50%;
}

/* Images fill blocks with consistent aspect */
.cmp-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title styling */
.cmp_title {
  line-height: 1.5;
  margin-bottom: 5px;
}

/* Position titles & dates */
.cmp-post h3,
.cmp-post h4 {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  font-size: 1rem;
  color: white;
  text-shadow: 0 1px 3px black;
}

.cmp-post.large h3 {
  font-size: 1.4rem;
}

.cmp-date {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 0.9rem;
  color: #ddd;
}

/* Mobile view */
@media (max-width: 768px) {
  .cmp-wrapper {
    flex-direction: column;
  }

  .cmp-left,
  .cmp-right {
    height: auto;
  }

  .cmp-right {
    flex-direction: column;
  }

  .cmp-post {
    height: auto;
  }

  .cmp-post img {
    height: auto;
    object-fit: contain;
  }
}