/* two-col Page Grid Styles */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.grid-item {
  box-sizing: border-box;
  padding: 1rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.two-col-grid-item {
  box-sizing: border-box;
  padding: 2rem 3rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .two-col-grid-item {
    padding: 2rem 2rem;
  }
}

/* three-col Page Grid Styles */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

/* When grid items are wrapped in links, stretch the link */
.three-col-grid > a {
  display: flex;
}

.three-col-grid-item {
  box-sizing: border-box;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* When grid items are expandable, don't force equal heights */
.three-col-grid-item.limit-height,
.two-col-grid-item.limit-height {
  height: auto;
}

.two-col-grid .content-box,
.three-col-grid .content-box {
  margin: 0;
}

/* Responsive Design for Three Col */
@media (max-width: 768px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .three-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }
  .three-col-grid-item {
    padding: 1.5rem 2rem;
  }
}
