/* === Layout === */
.custom-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}
.left-column {
  position: sticky;
  top: 100px;
  align-self: start;
}
.right-column {
  column-count: 2;
  column-gap: 30px;
}
.square-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.left-column .article-thumbnail img {
  min-height: 600px;
}
.right-column .article-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
}
/* === Article === */
.square-article,
.random-article,.article-item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
	transition: transform 0.3s ease;
}
.random-article {
  max-width: 100%;
  position: relative;
}
.article-item:hover,
.square-article:hover,
.random-article:hover {
  transform: translateY(-4px);
}
/* === Thumbnails === */
.article-thumbnail img, .square-thumbnail img, .random-article .random-article-thumbnail img {
  width: 100%;
  border-radius: 8px;
  height: 100%;
  display: block;
  object-fit: cover;
}
.square-thumbnail, .random-article .random-article-thumbnail {
	width: 100%;
	overflow: hidden;
}
.square-thumbnail {
  max-width: 600px;
  aspect-ratio: 1 / 1;
}
.random-article .random-article-thumbnail {
  height: 550px;
  position: relative;
}
/* === Meta === */
.random-article-meta {
	border-radius:10px;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  position: absolute;
  bottom: 0;
  width: 100%;
  color: white;
  z-index: 2;
}
.article-meta, .square-meta {
  padding: 10px 0;
}
.article-category, .square-category, .random-article-meta .random-article-category {
  font-family: 'Lora';
  font-style:italic;
  font-weight:600;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.random-article-meta .random-article-category {
  font-size: 1rem;
}
/* === Titles === */
.article-title, .square-title {
  font-size: 1rem;
  margin: 0 0 10px;
  line-height: 1.3;
}
.article-title a, .square-title a, .random-article-meta a {
  text-decoration: none;
  color: #000;
}
.random-article-meta a {
  color: #fff !important;
}
/* === Responsive === */
@media (max-width: 1024px) {
  .square-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .custom-grid-wrapper {
    grid-template-columns: 1fr;
  }
  .left-column,
  .right-column {
    order: unset;
    position: static;
  }
  .right-column {
    column-count: 1;
  }
  .right-column .article-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .right-column .article-thumbnail {
    flex-shrink: 0;
    width: 40%;
  }
  .right-column .article-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
	min-height: 50px !important;
    height: auto;
  }
  .right-column .article-meta {
    flex-grow: 1;
    padding: 0;
  }
	 .square-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .square-article {
    flex-direction: row;
    gap: 15px;
    box-shadow: none;
  }
  .square-thumbnail {
    width: 40%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }
  .square-meta {
    flex: 1;
    padding: 0;
  }
	 .random-article .article-thumbnail {
    height: 250px;
  }
  .random-article-meta {
  padding: 20px;
}
	.right-column .article-thumbnail img {
    min-height: 0 !important;
}
}