/* Make the project-item stack vertically on mobile */
@media (max-width: 768px) {
  .project-item {
    display: flex !important;
    flex-direction: column !important; /* stack image above text */
    gap: 20px; /* spacing between image and text */
    padding-left: 20px !important;  /* add some horizontal padding */
    padding-right: 20px !important;
  }
  
  /* Make sure image and text take full width */
  .project-item > .wp-block-group {
    width: 100% !important;
  }

  /* Optional: adjust text padding inside the content block */
  .project-item-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* MOBILE ONLY — horizontal buttons */
@media (max-width: 768px) {
    .wp-block-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .wp-block-buttons .wp-block-button {
        width: auto !important;
        display: inline-flex !important;
    }
}


