/* Celebration card detail modal */
.celebration-card { cursor: pointer; }
.celebration-card:focus-visible { outline: 3px solid #c99a2e; outline-offset: 3px; }
body.celebration-modal-open { overflow: hidden; }
.celebration-detail-modal[hidden] { display: none !important; }
.celebration-detail-modal {
  position: fixed; inset: 0; z-index: 10000; display: flex;
  align-items: center; justify-content: center; padding: 22px;
}
.celebration-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0, 28, 21, .76);
  backdrop-filter: blur(4px);
}
.celebration-modal-panel {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  width: min(900px, 100%); max-height: min(88vh, 780px); overflow: auto;
  background: #fbf8f0; border: 1px solid #d8cdbb; border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35); color: #173e34;
}
.celebration-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0; border: 1px solid rgba(7,81,61,.2);
  border-radius: 50%; background: #fffaf0; color: #07513d; font-size: 30px;
  line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.celebration-modal-close:hover { background: #07513d; color: white; }
.celebration-modal-image { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 620px; object-fit: contain; object-position: center; background: #e9e1d2; }
.celebration-modal-image[hidden] { display: none; }
.celebration-modal-content { padding: clamp(24px, 4vw, 42px); align-self: center; }
.celebration-modal-eyebrow { margin: 0 0 12px; color: #b78012; font: 700 10px/1.4 Montserrat, Arial, sans-serif; letter-spacing: 2px; }
.celebration-modal-content h2 { margin: 0 34px 18px 0; color: #07513d; font: 700 clamp(25px, 3vw, 36px)/1.15 "Cormorant Garamond", Georgia, serif; }
.celebration-modal-meta { display: grid; gap: 9px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #e0d7c8; }
.celebration-modal-meta span { color: #655e52; font: 500 12px/1.5 Montserrat, Arial, sans-serif; }
.celebration-modal-description-heading { margin: 0 0 9px; color: #07513d; font: 700 13px/1.4 Montserrat, Arial, sans-serif; }
.celebration-modal-description { margin: 0; color: #514d44; font: 400 13px/1.85 Montserrat, Arial, sans-serif; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .celebration-detail-modal { padding: 12px; }
  .celebration-modal-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .celebration-modal-image { width: 100%; height: 220px; min-height: 0; max-height: 220px; object-fit: contain; object-position: center; }
  .celebration-modal-content { padding: 23px 21px 27px; }
  .celebration-modal-close { top: 9px; right: 9px; width: 38px; height: 38px; }
}
