* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #ffffff;
}

.image-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.main-image {
  display: block;
  height: 100vh;
  width: auto;
  max-width: 100vw;
  object-fit: contain;
}

@media (max-width: 768px) {
  .page {
    min-height: auto;
    align-items: flex-start;
  }

  .main-image {
    width: 100vw;
    height: auto;
    max-width: 100vw;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  animation: fadeIn 0.25s ease;
}

.modal-box {
  position: relative;
  z-index: 2;
  width: min(92vw, 850px);
  height: min(88vh, 900px);
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.35s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  font-size: 32px;
  line-height: 38px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.modal-close:hover {
  background: #f2f2f2;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .modal-box {
    width: 94vw;
    height: 88vh;
    margin: 4vh auto;
    border-radius: 16px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}