body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  border: none;
}

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

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.close-modal {
  font-size: 2rem;
  color: rgba(255, 250, 234, 1);
  border: none;
  background-color: transparent;

  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}

.modal-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.modal-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  height: 100%;
}

.modal-left-section img {
  width: 100%;
  margin-bottom: 2rem;
}

.modal-left-text {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.3rem;
  line-height: 2rem;

  color: rgb(255, 250, 234);
  text-align: center;
  text-transform: none;
}

.modal-right-section {
  flex: 2;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  height: 100%;
}

.modal-right-text {
  font-size: 1.2rem;
  font-weight: 200;
  letter-spacing: 0.2rem;
  line-height: 2rem;

  color: rgb(255, 250, 234);
  text-align: center;
  text-transform: none;
}

.modal-video {
  width: 80%;
}

.modal-video iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.modal-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
}

.socials-icon {
  height: 22px;

  transition: opacity 0.15s;
}

.socials-icon:hover {
  opacity: 0.3;
}

@media (max-width: 768px) {
  .close-modal {
    top: 0rem;
    right: 0rem;
  }

  .modal-container {
    flex-direction: column;
    max-height: 100%;
    max-width: 100%;
  }

  .modal-left-section img {
    width: 100%;
    max-width: 13rem;
    margin-bottom: 0rem;
  }

  .modal-left-text {
    font-size: 1.2rem;
    line-height: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .modal-right-section {
    gap: 0rem;
  }

  .modal-video {
    margin-bottom: 1rem;
  }

  .modal-right-section p {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    line-height: 1.2rem;
  }

  .modal-links {
    margin-top: 1rem;
    gap: 1.5rem;
  }

  .socials-icon {
    height: 18px;
  }
}
