* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

body,
html {
  width: 100%;
}

.modal-wrapper {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  animation: opacityEffect .2s ease-in-out;
}

.modal-wrapper .modal-container {
  background-color: white;
  max-width: 50%;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: openModalEffect .4s ease-in-out;
  overflow: hidden;
}

.modal-wrapper .modal-container .modal-close-button {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: end;
  position: absolute;
  padding: 15px;
  top: 0;
}

.modal-wrapper .modal-container a {
  width: 100%;
  object-fit: cover;
}

.modal-wrapper .modal-container img {
  object-fit: contain;
  max-width: 100%;
  height: 500px;
}

.modal-close-button .close-button {
  cursor: pointer;
}

.hidden {
  display: none;
}

.visible {
  display: flex;
}

@keyframes openModalEffect {
  from {
    transform: translateY(-30px);
  }

  to {
    transform: translateY(0px);
  }
}

@keyframes opacityEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
