body {
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, #D9D9D9 80%, #6C3434 150%);
  min-height: 100vh;
  font-family: 'EB Garamond', serif;
}

body.home-page nav.navbar {
  display: none;
}

body.awards-page nav.navbar {
  display: none;
}

.home-title {
  font-family: 'Gelasio', serif;
}

.home-btn {
  font-family: 'EB Garamond', sans-serif;
}

/* Guestbook page layout */
.guestbook-header,
.entry-list {
  width: min(92vw, 68rem);
  margin: 0 auto;
  padding: 1rem;
}

.entry-card {
  border: 0px solid rgba(108, 52, 52, 0.12);
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 1.2rem;
}

.entry-card .card-body {
  padding: 1.5rem;
}

.entry-card .card-title {
  font-family: 'Gelasio', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  letter-spacing: 0.05rem;
  color: #5c1d1d;
}

.entry-card .card-text {
  color: #3e2a2a;
  line-height: 1.8;
}

.entry-media-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.entry-preview-link {
  display: block;
  flex: 1 1 calc(33.333% - 1rem);
  min-width: min(12rem, 32%);
  max-height: clamp(10rem, 22vh, 18rem);
  overflow: hidden;
  border-radius: 1rem;
}

.entry-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.entry-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 40vh;
  border-radius: 1rem;
}

.video-preview-link {
  position: relative;
  display: block;
}

.video-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.video-play-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #000;
  transition: all 0.3s ease;
  z-index: 2;
}

.video-preview-link:hover .video-play-button {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.video-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 0.3rem;
  font-size: 0.85rem;
  font-family: 'Esteban', serif;
}

.entry-media-list img,
.entry-media-list video {
  width: 100%;
}

.home-screen {
  min-height: 100vh;
  gap: 2rem;
  width: 100%;
  padding: 4rem 1rem;
}

.awards-screen {
  min-height: 100vh;
  gap: 2rem;
  width: 100%;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.awards-message {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #5c1d1d;
  text-align: center;
  max-width: 40rem;
  line-height: 1.6;
  font-style: italic;
}

.home-title {
  font-family: 'Gelasio', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.2rem;
  color: #5c1d1d;
  text-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
  text-transform: uppercase;
  margin-top: 2.5rem;
}

.home-buttons {
  width: 100%;
  max-width: 28rem;
}

.home-btn {
  margin-top: 2.5rem;
}

.home-divider {
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.home-divider-line {
  flex: 1;
  min-width: 3rem;
  height: 0.125rem;
  background: rgba(108, 52, 52, 0.2);
}

.home-star {
  width: 2rem;
  height: 2rem;
  background: rgba(108, 52, 52, 0.9);
  clip-path: polygon(70% 70%, 50% 100%, 30% 70%, 0% 50%, 30% 30%, 50% 0%, 70% 30%, 100% 50%);
  border-radius: 12%;
}

.home-btn {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2rem);
  padding: clamp(0.9rem, 1.8vw, 1.2rem) clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.5rem;
  border-width: 2px;
  color: #9D5959;
}

.home-btn.btn-primary {
  background: rgba(108, 52, 52, 0.35);
  border-color: rgba(108, 52, 52, 0.35);
}

.home-btn.btn-primary:hover,
.home-btn.btn-primary:focus {
  background: rgba(108, 52, 52, 0.6);
  border-color: rgba(108, 52, 52, 0.6);
}

.home-btn.btn-outline-secondary {
  color: #6c3434;
  background: rgba(255,255,255,0.5);
  border-color: #6c3434;
}

.home-btn.btn-outline-secondary:hover,
.home-btn.btn-outline-secondary:focus {
  background: rgba(255,255,255,0.6);
  border-color: rgba(108, 52, 52, 0.6);
}

.modal-dialog.modal-xl {
  max-height: 100vh;
  margin: 0.5rem auto;
}

#previewModal .preview-modal-body {
  max-height: 90vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#previewModal .preview-modal-body img,
#previewModal .preview-modal-body video {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Blank placeholder for entries without media so caption remains legible */
.empty-slide {
  height: calc(100vh - 6rem);
  width: 100%;
  background: transparent;
}

.carousel-item img, .carousel-item video { object-fit: contain; }

/* TU CARTA Modal Styling */
.carta-modal {
  background: #F0E5DA;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(108, 52, 52, 0.2);
  max-width: 500px;
  margin: 0 auto;
  max-height: 90vh;
  overflow-y: auto;
}

.carta-modal .modal-dialog {
  max-width: 500px;
}

.carta-form {
  padding: 0;
}

.carta-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: none;
}

.carta-title {
  font-family: 'Esteban', serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  color: #6C3434;
  text-transform: uppercase;
  margin: 0;
}

.carta-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: 'Esteban', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  color: #6C3434;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.carta-body .form-control {
  border: none;
  border-bottom: 1px solid rgba(108, 52, 52, 0.3);
  border-radius: 0;
  background: transparent !important;
  padding: 0.6rem 0;
  font-family: 'Esteban', serif;
  font-size: 1rem;
  color: #6C3434;
  transition: all 0.3s ease;
}

.carta-body .form-control:not(:focus) {
  background: transparent !important;
}

.carta-body .form-control::-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  -webkit-text-fill-color: #6C3434;
}

.carta-body .form-control:focus {
  border-bottom-color: #6C3434;
  box-shadow: none;
  background: transparent;
  color: #6C3434;
}

.carta-body textarea.form-control {
  min-height: 120px;
  resize: vertical;
  padding: 0.8rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.carta-body .form-control::placeholder {
  color: rgba(108, 52, 52, 0.5);
  font-style: italic;
}

.file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.file-input-wrapper .form-text {
  margin: 0;
  margin-top: 0;
}

.form-control.file-input {
  display: none;
}

.file-input-label {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(108, 52, 52, 0.2);
  border: 1px solid rgba(108, 52, 52, 0.3);
  border-radius: 0.5rem;
  color: #6C3434;
  font-family: 'Esteban', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.file-input-label:hover {
  background: rgba(108, 52, 52, 0.35);
  border-color: rgba(108, 52, 52, 0.5);
}

.form-text {
  font-family: 'Esteban', serif;
  font-size: 0.85rem;
  color: rgba(108, 52, 52, 0.6);
  font-style: italic;
  margin-top: 0.5rem;
  display: block;
}

.form-errors {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: 'Esteban', serif;
}

.carta-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(108, 52, 52, 0.1);
  background: transparent;
}

.carta-footer .btn {
  font-family: 'Esteban', serif;
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(108, 52, 52, 0.3);
  transition: all 0.3s ease;
}

.carta-footer .btn-secondary {
  background: transparent;
  color: #6C3434;
  border-color: rgba(108, 52, 52, 0.3);
}

.carta-footer .btn-secondary:hover {
  background: rgba(108, 52, 52, 0.1);
  border-color: #6C3434;
  color: #6C3434;
}

.carta-footer .btn-primary {
  background: rgba(108, 52, 52, 0.35);
  color: #fff;
  border-color: rgba(108, 52, 52, 0.35);
}

.carta-footer .btn-primary:hover {
  background: rgba(108, 52, 52, 0.5);
  border-color: rgba(108, 52, 52, 0.5);
  color: #fff;
}

.d-none {
  display: none;
}

#image-filenames,
#video-filename {
  display: none;
  color: rgba(108, 52, 52, 0.8);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  word-break: break-word;
}
