
.certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .certificates img {
    border: 1px solid #000;
    margin: 10px;
    width: 250px;
    height: 400px;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
  }
  .modal-content {
    display: block;
    margin: 5% auto;
    max-width: 800px !important;
    max-height: 80vh;
    border-radius: 10px;
    width:100%;
    height: 100%;
    /* object-fit: fill; */
  }
  
    
  .close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }
  .close {
    top: 20px;
    right: 35px;
  }
  .prev, .next {
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    user-select: none;
  }
  .prev {
    left: 20px;
  }
  .next {
    right: 20px;
  }
  
  /* responsiveness */
  
  @media (max-width: 1024px) {
    .certificates {
      justify-content: center;
    }
  
    .certificates img {
      width: 30vw;
      height: auto;
    }
  }
  
  @media (max-width: 768px) {
    .certificates img {
      width: 45vw;
      height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .certificates img {
      width: 90vw;
      height: auto;
    }
  }
  