/* Strong grid layout for Daily Random Posts (enforced) */
.drp-wrapper {
  display: grid !important;
  grid-template-columns: repeat(var(--drp-cols, 2), 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

/* Flexbox fallback in case grid is disabled by theme */
.drp-wrapper.drp-flex-fallback {
  display: flex !important;
  flex-wrap: wrap !important;
}
.drp-wrapper.drp-flex-fallback .drp-item {
  width: calc( (100% / var(--drp-cols, 2)) - 20px ) !important;
  box-sizing: border-box !important;
  margin-bottom: 20px !important;
}

/* Item styles */
.drp-item {
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 12px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
  transition: transform 0.2s ease !important;
  overflow: hidden !important;
}
.drp-item:hover { transform: translateY(-4px) !important; }

.drp-item img {
  width: 100% !important;
  height: auto !important;
  border-radius: 6px !important;
  display: block !important;
}

.drp-wrapper h3 {
  font-size: 16px !important;
  margin: 8px 0 !important;
}

.drp-wrapper h3 a {
  color: #222 !important;
  text-decoration: none !important;
}

.drp-wrapper h3 a:hover {
  color: #0073aa !important;
}

.drp-excerpt {
  font-size: 14px !important;
  color: #555 !important;
  margin-top: 6px !important;
}

/* Small screens: force single column */
@media (max-width: 700px) {
  .drp-wrapper {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .drp-wrapper.drp-flex-fallback .drp-item {
    width: 100% !important;
  }
}
