.journal-content {
  transition: filter 160ms ease;
}

.journal-content--blur {
  filter: blur(6px);
}

.journal-image-hover {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: visible;
}

.journal-entry-row {
  position: relative;
  overflow: visible;
}

.journal-image-hover__card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.24);
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.journal-hover-preview {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  padding: 10px;
  opacity: 0;
  transform: scale(0.96);
}

.journal-hover-preview--open {
  animation: journal-hover-in 140ms ease-out forwards;
}

@keyframes journal-hover-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.journal-hover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.journal-modal {
  width: 100%;
  max-width: 64rem;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: visible;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  transform-origin: center;
}

.journal-modal-wrap--open .journal-modal,
.journal-modal--open {
  animation: journal-modal-in 180ms ease-out forwards;
}

.journal-modal-wrap--closing .journal-modal,
.journal-modal--closing {
  animation: journal-modal-out 160ms ease-in forwards;
}

@keyframes journal-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes journal-modal-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
