.jrn-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.jrn-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.jrn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 24, 0.78);
  backdrop-filter: blur(3px);
}

.jrn-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s ease;
}

.jrn-modal.is-open .jrn-modal-panel {
  transform: translateY(0) scale(1);
}

.jrn-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 15, 24, 0.6);
  color: #f6f3ec;
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.jrn-modal-close:hover {
  background: #ab8642;
}

.jrn-modal-gallery {
  background: #eeebe1;
  display: flex;
  flex-direction: column;
}

.jrn-modal-main-img {
  position: relative;
  height: 380px;
}

.jrn-modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jrn-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 15, 24, 0.55);
  color: #f6f3ec;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.jrn-modal-nav:hover {
  background: #ab8642;
}

.jrn-modal-prev {
  left: 1rem;
}

.jrn-modal-next {
  right: 1rem;
}

.jrn-modal-thumbs {
  display: flex;
  gap: 0.6rem;
  padding: 1rem;
}

.jrn-modal-thumbs img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s ease, outline 0.3s ease;
}

.jrn-modal-thumbs img.is-active {
  opacity: 1;
  outline: 2px solid #ab8642;
  outline-offset: 2px;
}

.jrn-modal-body {
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
}

.jrn-modal-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ab8642;
  border: 1px solid #ab8642;
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.jrn-modal-body h3 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.jrn-modal-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #5f6672;
  margin-bottom: 1.2rem;
}

.jrn-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.jrn-modal-meta i {
  color: #ab8642;
}

.jrn-modal-desc {
  color: #384051;
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
}

.jrn-modal-body h4 {
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
  margin-top: 0.4rem;
}

.jrn-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.jrn-modal-list li {
  font-size: 0.88rem;
  color: #384051;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.jrn-modal-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: #ab8642;
}

.jrn-modal-list-check li::before {
  content: '\2713';
  width: auto;
  height: auto;
  background: none;
  color: #3d7a52;
  font-size: 0.8rem;
  margin-top: 0.05em;
}

.jrn-modal-list-cross li::before {
  content: '\2715';
  width: auto;
  height: auto;
  background: none;
  color: #a04a3f;
  font-size: 0.75rem;
  margin-top: 0.05em;
}

.jrn-modal-inex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.jrn-modal-footer {
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: 1px solid #e3e1d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.jrn-modal-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.jrn-modal-price span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5f6672;
}

.jrn-modal-price strong {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: #16273f;
}

.jrn-modal-price small {
  font-size: 0.7rem;
  color: #5f6672;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .jrn-modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .jrn-modal-main-img {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .jrn-modal {
    padding: 0;
  }
  .jrn-modal-panel {
    border-radius: 0;
    max-height: 100vh;
    height: 100%;
  }
  .jrn-modal-inex {
    grid-template-columns: 1fr;
  }
  .jrn-modal-body {
    padding: 2rem 1.3rem;
  }
}
