.img-modal {
    max-width: 96vw;
    max-height: 96vh;
    border-radius: var(--border-radius-page);
    background-color: var(--box-background-color);
    border: none;
    background: none;

    animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
}

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
  
  @keyframes slide-up {
    from {
      transform: translateY(10%);
    }
  }

.img-modal::backdrop {
    background: rgb(0 0 0 / 0.5);
  }
  
.modal-content-wrapper {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.modal-close-btn{
    width: 3rem;
    height: 3rem;
    font-size: xx-large;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-page);
    border: none;
    cursor: pointer;    
    color: var(--text-color-light);
    background-color: hsl(0, 0%, 35%, 0.5);
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: rgba(252, 240, 49, 0.75);
    transition: all 0.2s ease;
    color: var(--text-color-dark);
}

.modal-img {
    max-width:100%;
    max-height: 92vh;
    z-index: 5;
}

.modal-caption {
    color: var(--text-color-light);
}