
.case-study-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  border: 1px solid #ccc !important;
  padding: 25px !important;
  background: #fff !important;
  transition: box-shadow 0.3s ease !important;
}

.case-study-tile .post-thumbnail {
  width: 100% !important;
  margin-bottom: 15px !important;
}

.case-study-tile .post-thumbnail img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px !important;
}

.case-study-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 40px !important;
  margin-top: 50px !important;
}

.case-study-grid .entry-title {
  font-size: 1.5rem !important;
  color: #303f4e !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

.case-study-grid .case-study-tile .entry-title {
  margin-top: 0 !important;
}

/* 🔽 SHORTCODE OVERRIDES ONLY INSIDE GRID */
.case-study-grid .my-custom-shortcode.panel-content {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 25px !important;
}

.case-study-grid .my-custom-shortcode .image-frame {
  width: 100% !important;
  border: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.case-study-grid .my-custom-shortcode .image-frame img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  height: auto !important;
}

.case-study-grid .my-custom-shortcode .text-content {
  width: 100% !important;
  text-align: center !important;
  opacity: 1 !important;
}
