html, body { margin:0; padding:0; height:100%; background:#000; overflow:hidden; }

.ui-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 340px;
  background: rgba(18,22,28,0.94);
  color: white;
  padding: 16px;
  border-radius: 12px;
  z-index: 9999;
  font-family: system-ui;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.ui-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ui-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}

.ui-panel-body div { margin: 8px 0; font-size: 14px; }
.ui-reserve-info { margin-top: 12px; font-size: 13px; opacity: 0.9; }

.ui-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ui-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

.ui-btn.reserve { background: #2b6cb0; }
.ui-btn.buy     { background: #00b894; }

.ui-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ui-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 1.4em;
}

/* Buy Modal */
.buy-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
 
.buy-modal label {
  color: #ffffff !important;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.buy-modal input,
.buy-modal textarea,
.buy-modal select {
  color: #e0e0e0;
  background: #1e1e1e;
  border: 1px solid #444;
}

.buy-modal input::placeholder,
.buy-modal textarea::placeholder {
  color: #888;
}

.buy-modal .ui-btn.cancel {
  background: #ff4d4d !important;
  color: #ffffff !important;
  border: none;
}

.buy-modal .ui-btn.cancel:hover {
  background: #ff3333 !important;
}

.buy-card {
  width: min(760px, 94vw);
  background: rgba(15,18,25,0.97);
  color: rgb(256,256,256);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.buy-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buy-body {
  padding: 0 20px 24px;
}

.buy-body label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  opacity: 0.9;
}

.buy-body input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(30,34,42,0.6);
  color: white;
}

.buy-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Focus & selection prevention */
#ui-panel, #ui-panel * { user-select: none; }
*:focus { outline: none; }


/* ============================================ */
/* PHOTO ALBUM MODAL - DIGNIFIED MEMORIAL DESIGN */
/* ============================================ */

#photoAlbumModal {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 99999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

#photoAlbumModal > .buy-card,
#photoAlbumModal > div:first-child {
  width: min(800px, 95vw) !important;
  max-height: 90vh !important;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
  border: 2px solid #D4AF37 !important;
  border-radius: 4px !important;
  box-shadow: 
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 25px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

/* Close button */
#photoAlbumModal .close-btn,
#photoAlbumModal #photoAlbumClose {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  background: none !important;
  border: none !important;
  color: #888 !important;
  font-size: 28px !important;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

#photoAlbumModal .close-btn:hover,
#photoAlbumModal #photoAlbumClose:hover {
  color: #D4AF37 !important;
}

/* Header Title */
#photoAlbumModal h2 {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #D4AF37 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 24px 20px 8px !important;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
}

/* Deceased name */
#photoAlbumDeceased {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif !important;
  font-size: 20px !important;
  color: #ffffff !important;
  text-align: center !important;
  margin: 0 0 20px 0 !important;
  padding: 0 20px 20px !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* Upload section */
#photoUploadSection {
  margin: 0 24px 20px !important;
  padding: 16px 20px !important;
  background: rgba(212, 175, 55, 0.08) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 4px !important;
}

#photoUploadSection p {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif !important;
  color: #D4AF37 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
  letter-spacing: 1px;
}

#photoBrowseBtn {
  background: linear-gradient(180deg, #D4AF37 0%, #B8963E 100%) !important;
  border: none !important;
  color: #1a1a1a !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#photoBrowseBtn:hover {
  background: linear-gradient(180deg, #E5C158 0%, #D4AF37 100%) !important;
  transform: translateY(-1px);
}

#photoUploadStatus {
  color: #999 !important;
  font-size: 12px !important;
  font-style: italic;
}

/* Photo Gallery Grid - SCROLLABLE */
#photoGallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  padding: 20px 24px !important;
  /* ✅ KEY: Fixed height with scroll */
  max-height: 50vh !important;
  min-height: 200px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* Ensure it takes available space */
  flex: 1 1 auto !important;
  /* Visual container */
  background: rgba(0, 0, 0, 0.2);
  margin: 0 24px 20px !important;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Photo Cards - FIXED: No overlap */
#photoGallery > div {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important; /* Forces square aspect ratio */
  border-radius: 4px !important;
  overflow: hidden !important;
  cursor: pointer;
  background: #0a0a0a !important;
  border: 2px solid rgba(212, 175, 55, 0.4) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#photoGallery > div:hover {
  border-color: #D4AF37 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
}

#photoGallery > div img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

#photoGallery > div:hover img {
  transform: scale(1.05);
}

/* Delete button on photo cards */
#photoGallery .photo-delete-btn {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  background: rgba(180, 60, 60, 0.9) !important;
  border: 1px solid rgba(255, 100, 100, 0.5) !important;
  color: white !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

#photoGallery > div:hover .photo-delete-btn {
  opacity: 1;
}

#photoGallery .photo-delete-btn:hover {
  background: rgba(220, 60, 60, 1) !important;
}

/* Message at bottom */
#photoAlbumMsg {
  color: #888 !important;
  font-size: 13px !important;
  text-align: center !important;
  padding: 16px 24px !important;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-style: italic;
}

/* Empty state */
#photoGallery > p {
  color: #666 !important;
  grid-column: 1/-1 !important;
  text-align: center !important;
  padding: 60px 20px !important;
  font-style: italic;
  font-size: 14px;
}

/* Scrollbar for gallery */
#photoGallery::-webkit-scrollbar {
  width: 8px;
}

#photoGallery::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

#photoGallery::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

#photoGallery::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}


/* ============================================ */
/* PHOTO VIEWER / CAROUSEL - ELEGANT LIGHTBOX  */
/* ============================================ */

#photoViewer {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.97) !important;
  z-index: 100000 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  padding: 20px !important;
}

/* Close button */
#photoViewerClose {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 2px solid rgba(212, 175, 55, 0.5) !important;
  color: #D4AF37 !important;
  font-size: 24px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
}

#photoViewerClose:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: #D4AF37 !important;
  color: #fff !important;
}

/* Main image container - centered with frame */
#photoViewer > img,
#photoViewerImg {
  max-width: min(85vw, 900px) !important;
  max-height: min(70vh, 600px) !important;
  object-fit: contain !important;
  border: 3px solid #D4AF37 !important;
  border-radius: 4px !important;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(212, 175, 55, 0.1);
}

/* Navigation buttons container - closer to image */
#photoViewer > div:not(#photoViewerDelete) {
  margin-top: 20px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
}

/* Navigation buttons */
#photoViewerPrev,
#photoViewerNext {
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  color: #D4AF37 !important;
  padding: 12px 32px !important;
  margin: 0 !important;
  cursor: pointer;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

#photoViewerPrev:hover,
#photoViewerNext:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: #D4AF37 !important;
  color: #fff !important;
}

/* Delete button in viewer */
#photoViewerDelete {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 16px !important;
  background: rgba(180, 60, 60, 0.8) !important;
  border: 1px solid rgba(220, 100, 100, 0.5) !important;
  color: white !important;
  padding: 10px 24px !important;
  cursor: pointer;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

#photoViewerDelete:hover {
  background: rgba(220, 60, 60, 1) !important;
  border-color: rgba(255, 100, 100, 0.7) !important;
}


/* ============================================ */
/* ALBUM PICKER MODAL - FOR SELECTING PHOTOS   */
/* ============================================ */

#albumPickerModal .buy-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
  border: 2px solid #D4AF37 !important;
  border-radius: 4px !important;
  box-shadow: 
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 25px 80px rgba(0, 0, 0, 0.8) !important;
}

#albumPickerModal .buy-header {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
  padding: 20px 24px !important;
}

#albumPickerModal .buy-header strong {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif !important;
  font-size: 18px !important;
  color: #D4AF37 !important;
  letter-spacing: 1px !important;
}

#albumPickerGallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
  gap: 10px !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  padding: 16px !important;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin: 0 20px;
}

#albumPickerGallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#albumPickerGallery img:hover {
  border-color: #D4AF37;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

#albumPickerCancelBtn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #aaa !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}

#albumPickerCancelBtn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}


/* ============================================ */
/* RESPONSIVE ADJUSTMENTS FOR PHOTO MODALS     */
/* ============================================ */

@media (max-width: 600px) {
  #photoAlbumModal .buy-card {
    width: 98vw !important;
    max-height: 95vh !important;
  }
  
  #photoGallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 8px !important;
    padding: 0 16px 16px !important;
  }
  
  #photoViewer #photoViewerImg {
    max-width: 95vw !important;
    max-height: 70vh !important;
  }
  
  #photoViewerPrev,
  #photoViewerNext {
    padding: 10px 20px !important;
    font-size: 12px !important;
  }
}


/* ============================================ */
/* OBITUARY MODAL - DIGNIFIED MEMORIAL DESIGN  */
/* ============================================ */

#obituaryModal .buy-card {
  width: min(680px, 95vw);
  max-height: 90vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #D4AF37;
  border-radius: 4px;
  box-shadow: 
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 25px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Ornamental top border */
#obituaryModal .buy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* Header - Elegant and solemn */
#obituaryModal .buy-header {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 20px 24px;
  text-align: center;
  position: relative;
}

#obituaryModal #obituaryModalTitle {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
}

#obituaryModal .ui-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 24px;
  transition: color 0.3s ease;
}

#obituaryModal .ui-close:hover {
  color: #D4AF37;
}

/* Body - Scrollable content area */
#obituaryModal .buy-body {
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 100px);
}

/* Deceased Name - Central focus */
#obituaryModal #obituaryDeceasedName {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin-bottom: 24px !important;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* Photo Section - Elegant frame */
#obituaryModal #obituaryPhotoSection {
  text-align: center;
  margin-bottom: 24px;
}

#obituaryModal #obituaryPhotoSection > label {
  display: none !important; /* Hide the "Photo" label */
}

#obituaryModal #obituaryPhotoContainer {
  width: 220px !important;
  height: 280px !important;
  margin: 0 auto 16px !important;
  border-radius: 4px !important;
  overflow: hidden;
  background: #0a0a0a !important;
  border: 3px solid #D4AF37 !important;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Gold corner accents on photo frame */
#obituaryModal #obituaryPhotoContainer::before,
#obituaryModal #obituaryPhotoContainer::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #D4AF37;
  z-index: 10;
}

#obituaryModal #obituaryPhotoContainer::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

#obituaryModal #obituaryPhotoContainer::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

#obituaryModal #obituaryPhotoImg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
  max-height: none !important;
}

#obituaryModal #obituaryPhotoPlaceholder {
  border: none !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 0 !important;
}

#obituaryModal #obituaryPhotoPlaceholder span:first-child {
  font-size: 48px !important;
  opacity: 0.3;
  margin-bottom: 12px !important;
}

#obituaryModal #obituaryPhotoPlaceholder span:last-child {
  color: #666 !important;
  font-size: 12px !important;
  font-style: italic;
}

/* Photo Controls - Subtle and elegant */
#obituaryModal #obituaryPhotoControls {
  justify-content: center !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

#obituaryModal #obituaryPhotoControls button {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  color: #D4AF37 !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

#obituaryModal #obituaryPhotoControls button:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: #D4AF37 !important;
}

#obituaryModal #obituaryRemovePhoto {
  background: rgba(180, 60, 60, 0.2) !important;
  border-color: rgba(180, 60, 60, 0.5) !important;
  color: #e57373 !important;
}

#obituaryModal #obituaryRemovePhoto:hover {
  background: rgba(180, 60, 60, 0.3) !important;
}

/* Decorative divider before text */
#obituaryModal .obituary-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  gap: 15px;
}

#obituaryModal .obituary-divider::before,
#obituaryModal .obituary-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* Obituary Text Section */
#obituaryModal label[for="obituaryText"] {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: 16px !important;
  color: #D4AF37 !important;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 12px !important;
  opacity: 1 !important;
}

#obituaryModal #obituaryText {
  width: 100%;
  min-height: 180px;
  padding: 20px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 4px !important;
  color: #e0e0e0 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  font-family: 'Georgia', 'Times New Roman', serif !important;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#obituaryModal #obituaryText:focus {
  border-color: rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
  outline: none;
}

#obituaryModal #obituaryText::placeholder {
  color: #666 !important;
  font-style: italic;
}

/* Action Buttons - Elegant and distinguished */
#obituaryModal .buy-actions {
  margin-top: 28px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  justify-content: center !important;
  gap: 16px !important;
}

#obituaryModal #obituaryCancel {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #aaa !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  min-width: 120px;
}

#obituaryModal #obituaryCancel:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

#obituaryModal #obituarySave {
  background: linear-gradient(180deg, #D4AF37 0%, #B8963E 100%) !important;
  border: none !important;
  color: #1a1a1a !important;
  padding: 12px 40px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  min-width: 160px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

#obituaryModal #obituarySave:hover {
  background: linear-gradient(180deg, #E5C158 0%, #D4AF37 100%) !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

/* Message area */
#obituaryModal #obituaryMsg {
  text-align: center;
  margin-top: 16px !important;
  font-size: 14px;
  min-height: 20px;
}

/* View-only mode adjustments */
#obituaryModal[data-view-only="true"] #obituaryText {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #ccc !important;
}

/* Scrollbar styling for obituary modal */
#obituaryModal .buy-body::-webkit-scrollbar {
  width: 8px;
}

#obituaryModal .buy-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

#obituaryModal .buy-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

#obituaryModal .buy-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #obituaryModal .buy-card {
    width: 98vw;
    max-height: 95vh;
  }
  
  #obituaryModal .buy-body {
    padding: 16px 20px 24px;
  }
  
  #obituaryModal #obituaryDeceasedName {
    font-size: 22px;
  }
  
  #obituaryModal #obituaryPhotoContainer {
    width: 180px !important;
    height: 230px !important;
  }
  
  #obituaryModal #obituaryPhotoControls {
    flex-direction: column;
    align-items: center;
  }
  
  #obituaryModal #obituaryPhotoControls button {
    width: 100%;
    max-width: 200px;
  }
  
  #obituaryModal .buy-actions {
    flex-direction: column;
    align-items: center;
  }
  
  #obituaryModal .buy-actions button {
    width: 100%;
    max-width: 250px;
  }
}
