html:not(.condolence-dismissed),
html:not(.condolence-dismissed) body {
  overflow: hidden;
}

.condolence-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  overflow: auto;
  background: #090909;
}

.condolence-dismissed .condolence-overlay,
.condolence-overlay[hidden] {
  display: none;
}

.condolence-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1200px);
  min-height: 0;
  gap: 18px;
}

.condolence-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  object-fit: contain;
}

.condolence-company {
  color: #f1f1f1;
  text-align: center;
  line-height: 1.35;
}

.condolence-company-th {
  font-size: 26px;
  font-weight: 500;
}

.condolence-company-en {
  margin-top: 3px;
  color: #ccc;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.condolence-enter {
  min-width: 180px;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background: #2c2c2c;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.condolence-enter:hover,
.condolence-enter:focus-visible {
  border-color: #fff;
  background: #444;
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .condolence-overlay {
    padding: 16px;
  }

  .condolence-content {
    gap: 14px;
  }

  .condolence-image {
    max-height: calc(100vh - 188px);
    max-height: calc(100dvh - 188px);
  }

  .condolence-company-th {
    font-size: 22px;
  }

  .condolence-company-en {
    font-size: 17px;
  }

  .condolence-enter {
    width: min(100%, 240px);
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .condolence-enter {
    transition: none;
  }
}
