#certificados {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#certificados > div:last-child {
    min-width: 19rem;
    min-height: 15rem;
    height: 100%;
    margin-right: 1.75rem;
}
.certificados {
    padding: 3rem 2rem;
}

.certificados-title h2 {
    padding-bottom: 1rem;
    font-size: 1.6rem;
    color: #333;
}
.certificados-title p {
    color: #999;
    font-weight: 500;
}

.certificados-mini {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
    cursor: pointer;
}
.certificados-mini img {
    max-width: 16rem;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.certificados-mini img:hover {
    transform: scale(0.9);
}

@media screen and (max-width: 950px) {
    .certificados-mini {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 650px) {
    .certificados-mini {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media screen and (max-width: 650px) {
    .certificados-mini img {
        max-width: 12rem;
    }
}
.modal-container {
    display: none;
    position: fixed;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 80%;
    max-width: 40rem; 
    max-height: 100%;
    background-color: white;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    overflow: auto;
}
.modal-content {
    text-align: center; 
}
  
#modalImage {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
    object-fit: contain;
}

.modal-opened {
    display: block; 
}

.nav-btn-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.nav-btn {
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  cursor: pointer;
  margin: 5px;
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 2.5rem;
  cursor: pointer;
  color: black;
  z-index: 1;
  background-color: white;
  border-radius: 50%;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; 
    background: rgba(0, 0, 0, 0.5);
    filter: blur(5px);
    z-index: 1001; 
}

.modal-opened .modal-overlay {
    opacity: 1;
    pointer-events: auto; 
}

.modal-opened-body {
    overflow: hidden;
}