.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.is-visible {
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  position: relative;
  margin: 15vh auto;
  max-width: 1200px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
}

.modal.is-visible .modal-content {
  transform: translateY(0);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 30px;
}

.modal-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-content {
  padding: 20px;
}

.modal-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}

.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 4px;
}

.close-btn {
  position: absolute;
  right: 8px;
  top: -6px;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.close-btn:hover {
  color: #000;
}

@media screen and (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 10vh auto;
  }
  
  .modal-image img {
    max-height: 300px;
  }
}