
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    align-items: stretch;
    align-items: center;
  }
  
  .grid > article {
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
  }
  
  .grid > article img {
    max-width: 100%;
  }
  
  .grid .text {
    padding: 20px;
  }
  .containerr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.achievement-item {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.achievement-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .achievement-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .achievement-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.containerr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.achievement-item {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background-color: #ffffff; /* Light grey background */
}

.achievement-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-color: black;
}

@media (max-width: 768px) {
  .achievement-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .achievement-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.image-containerrrrrr {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
}

.image-item {
  flex: 0 0 calc(20% - 16px);  /* 5 items per row by default */
  position: relative;
  width: 100%;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  max-height: 40%;
  overflow: hidden;
}

/* Tablet-sized screens */
@media (max-width: 1024px) {
  .image-item {
      flex: 0 0 calc(33.33% - 13.33px);  /* 3 items per row */
  }
}

/* Mobile-sized screens */
@media (max-width: 768px) {
  .image-container {
      flex-direction: column;
  }
  
  .image-item {
      flex: 0 0 100%;
      margin-bottom: 20px;
  }
}

