/* ------------------ Copyright (c) 2025 by marhdez.dev (https://codepen.io/marhdev/pen/bdXeqQ) ------------------ */

/*PEN STYLES*/
* {
  box-sizing: border-box;
}
#wrapper {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: wrap;
  margin: 0 auto;
  max-width: 1360px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  background: #fff;
  line-height: 1.4;
  min-height: 330px;
  font-family: sans-serif;
  overflow: hidden;
  z-index: 0;
}
.blog-card .meta {
  position: relative;
  z-index: 0;
  height: 200px;
  overflow: hidden;
}
.blog-card .photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}
.blog-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.blog-card:hover .photo img {
  transform: scale(1.15);
}
.blog-card .description {
  padding: 1rem;
  background: #fff;
  position: relative;
  z-index: 1;
}
.blog-card h2, .blog-card h3 {
  margin: 10px 0 0 0;
}
.blog-card p {
  position: relative;
  margin: 1rem 0 0;
}
.blog-card p:first-of-type {
  margin-top: 1.25rem;
}
.blog-card:hover .details {
  left: 0%;
}
@media (min-width: 640px) {
  #wrapper .blog-card {
    flex-direction: row;
    width: 100%;
  }
  .blog-card .meta {
    flex-basis: 50%;
    height: auto;
  }
  .blog-card .description {
    flex-basis: 50%;
  }
  #wrapper .blog-card:nth-child(2n) {
    flex-direction: row-reverse;
  }
}