/* ============================================================
   GLOBAL STYLES
============================================================ */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 0px);
  font-family: "Georgia", serif;
  background-color: #fff;
  color: #000;
  padding-bottom: 5vh;
}

/* ============================================================
   FONT IMPORTS
============================================================ */
@font-face {
  font-family: "Carrie Gallerie Italic";
  src: url("../fonts/CarrieGallerie/CarrieGallerieItalic/woff/Carrie_Gallerie_Italic.woff2") format("woff2"),
       url("../fonts/CarrieGallerie/CarrieGallerieItalic/ttf/Carrie_Gallerie_Italic.ttf") format("truetype"),
       url("../fonts/CarrieGallerie/CarrieGallerieItalic/otf/Carrie_Gallerie_Italic.otf") format("opentype");
}

@font-face {
  font-family: "Carrie Gallerie";
  src: url("../fonts/CarrieGallerie/CarrieGallerie/woff/Carrie_Gallerie.woff2") format("woff2"),
       url("../fonts/CarrieGallerie/CarrieGallerie/ttf/Carrie_Gallerie.ttf") format("truetype"),
       url("../fonts/CarrieGallerie/CarrieGallerie/otf/Carrie_Gallerie.otf") format("opentype");
}

@font-face {
  font-family: "TT Drugs Regular";
  src: url("../fonts/TT_Drugs/otf/TT_Drugs_Regular.otf") format("opentype");
}

@font-face {
  font-family: "TT Drugs Bold";
  src: url("../fonts/TT_Drugs/otf/TT_Drugs_Bold.otf") format("opentype");
  font-weight: bold;
}

@font-face {
  font-family: "Evolventa Regular";
  src: url("../fonts/Evolventa/otf/Evolventa_Regular.otf") format("opentype"),
       url("../fonts/Evolventa/ttf/Evolventa_Regular.ttf") format("truetype"),
       url("../fonts/Evolventa/woff/Evolventa_Regular.woff") format("woff");
}

@font-face {
  font-family: "Evolventa Bold";
  src: url("../fonts/Evolventa/otf/Evolventa_Bold.otf") format("opentype"),
       url("../fonts/Evolventa/ttf/Evolventa_Bold.ttf") format("truetype"),
       url("../fonts/Evolventa/woff/Evolventa_Bold.woff") format("woff");
  font-weight: bold;
}

@font-face {
  font-family: "Gloestiva";
  src: url("../fonts/Gloestiva/woff/Gloestiva.woff") format("woff");
}

@font-face {
  font-family: "Avone";
  src: url("../fonts/Avone/otf/AvoneStencil-512V8.otf") format("opentype");
}
@font-face {
  font-family: "Bagoni";
  src: url("../fonts/Bagoni/otf/BagoniType.otf") format("opentype");
}
@font-face {
  font-family: "Baleine";
  src: url("../fonts/Baleine/otf/Baleine-GOK3A.otf") format("opentype");
}
@font-face {
  font-family: "BodonisBulemy";
  src: url("../fonts/BodonisBulemy/ttf/BodonisBulemy.ttf") format("truetype");
}
@font-face {
  font-family: "Boiller";
  src: url("../fonts/Boiller/ttf/BoillerFreeVersionRegular-GOAqA.ttf") format("truetype");
}
@font-face {
  font-family: "Morgina";
  src: url("../fonts/Morgina/ttf/morgina.ttf") format("truetype");
}
@font-face {
  font-family: "Salvalyn";
  src: url("../fonts/Salvalyn/otf/SalvalynDemo.otf") format("opentype"),
       url("../fonts/Salvalyn/ttf/SalvalynDemo.ttf") format("truetype");
}


/* ============================================================
   HEADER (Desktop Sidebar Layout)
============================================================ */
.side-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background-color: #fff;
  border-right: 1px solid #fff;
  padding: 0rem 1.5rem 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.header-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.site-title {
  font-family: "Carrie Gallerie Italic", serif;
  font-weight: 700;
  font-size: 4.5rem;
  margin: 0 0 2rem;
  line-height: 1;
}

.site-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  font-family: "Evolventa Regular", serif;
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: #6d6d6d;
}

.site-nav .dropdown {
  display: flex;
  flex-direction: column;
}
.site-nav .nav-link {
  padding: 0.4rem 0;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav .nav-link:hover {
  color: #6d6d6d;
}

/* Dropdown inside sidebar */
.dropdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dropbtn {
  background: none;
  border: none;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  width: 100%;
}
.dropbtn:hover {
  color: #6d6d6d;
}

.chevron {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.dropdown.active .chevron {
  transform: rotate(180deg);
}

.dropdown-content.in-sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.dropdown-content.in-sidebar a {
  font-family: "Evolventa Regular", serif;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.dropdown.active .dropdown-content.in-sidebar {
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
}

.nav-link a {
  text-decoration: none;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  transition: color 0.3s ease;
  color: #000;
}

.nav-link a:hover {
  color: #6d6d6d;
}

.divider {
  display: inline-block;
  font-weight: 300;
  transform: scaleY(1.1); /* stretches it vertically */
  transform: translateY(-0.1rem); /* shift it up vertically a little */
  margin: 0 0.5rem;
}

/* ============================================================
   PAGE CONTENT (Right side)
============================================================ */
.page-content {
  position: relative;
  margin-left: 260px;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

/* Section formatting */
.page-section {
  margin-bottom: 5rem;
  text-align: center;
}

.page-section h1 {
  font-family: "Salvalyn", serif;
  font-size: 6rem;
  margin-bottom: 0.5rem;
}
.page-section h2 {
  font-family: "Salvalyn", serif;
  font-size: 4rem;
  margin-bottom: 1rem;
}
.page-section h3 {
  font-family: "TT Drugs Regular", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.page-section h4 {
  font-family: "TT Drugs Regular", sans-serif;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.page-section img {
  max-width: 50%;
  max-height: 50%;
  border-radius: 8px;
  margin-top: 1rem;
}
.page-section .text {
  text-align: center;       /* centers inline text */
  display: block;           /* prevents flex/grid from interfering */
  width: 100%;              /* ensures full horizontal span */
}
.page-section .text p {
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 70%;
  margin: 0 auto; /* centers the block within its container */
}
.page-section .text p strong,
.page-section .text p .bold {
    font-family: "Evolventa Bold", serif;
    font-weight: bold;
}
/* ============================================================
   BLOG ENTRIES (with image + text)
============================================================ */
.blog-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.blog-entry img {
  order: 2;
  margin-left: 2rem;
  max-width: 50%;
  border-radius: 8px;
}

.blog-entry .text {
  order: 1;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.blog-entry .text h2 {
  font-family: "TT Drugs Regular", sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}

.blog-entry .text p {
  font-family: "Evolventa Regular", serif;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

/* ============================================================
   FORMS & INPUTS
============================================================ */
label {
  display: block;
  margin-bottom: 1rem;
}

input::placeholder {
  color: #888;
  font-style: italic;
  opacity: 0.8;
}

input:disabled {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
}

input[type="password"],
input[type="text"],
input[type="email"],
input[type="tel"] {
  height: 1.35rem;          
  padding-left: 0.4rem;  
  padding-top: 0.0rem;
  padding-bottom: 0.0rem;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem; 
  font-size: 1rem;       
  border: 1px solid #888;
  border-radius: 4px;
  box-sizing: border-box;
}

/* ============================================================
   UPLOAD INPUT STYLES
============================================================ */
/* .rsvp-style-btn,
#uploadForm button {
  width: fit-content;
  padding: 0.5rem 1rem;
  font-family: "TT Drugs Regular", sans-serif;
  border: 1px solid #fff;
  background: #000;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.rsvp-style-btn:hover,
#uploadForm button:hover {
  background: #000;
  color: #6d6d6d;
}

.upload-label input[type="file"]::-webkit-file-upload-button {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  font-family: "TT Drugs Regular", sans-serif;
  cursor: pointer;
  transition: 0.3s;
}

.upload-label input[type="file"]::-webkit-file-upload-button:hover {
  color: #6d6d6d;
  background: #000;
} */
/* Centered upload form layout */
/* --- Memories section container --- */
section {
  margin-top: 4rem;  /* consistent space above every section */
  margin-bottom: 4rem;
}

#memories {
  margin-top: 2rem; /* smaller gap right after RSVP */
}

#memories h2 {
  margin-top: 0; /* prevent extra space pushing section down */
}
.memories-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;  /* centers within page */
  padding: 2rem 1rem;
}

/* Title centered properly */
.memories-container h2 {
  font-family: "Salvalyn", serif;
  font-size: 4rem;
  margin-bottom: 1rem;
}

.memories-container p {
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 70%;
  margin: 0 auto; /* centers the block within its container */
}

#uploadForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  max-width: 600px;
  margin: 0 auto; /* centers the whole form */
  text-align: center;
}

/* Row layout for each input/label pair */
.form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  width: 100%;
  max-width: 500px;
  gap: 0.8rem;
}
::placeholder {
  font-style: italic;
  color: #888; /* optional, matches your current style */
  opacity: 1;  /* ensures consistent visibility across browsers */
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
}

/* Vendor-prefixed versions for Safari/Edge compatibility */
::-webkit-input-placeholder {
  font-style: italic;
}

:-ms-input-placeholder {
  font-style: italic;
}

::-ms-input-placeholder {
  font-style: italic;
}
/* Align labels on left but keep everything centered */
.form-row label {
  flex: 0 0 45%;
  text-align: right;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
}
/* Make text boxes and textareas fill remaining width */
.form-row input[type="text"],
.form-row textarea {
  flex: 1;
  padding-left: 0.4rem; 
  padding-top: 0.0rem;
  padding-bottom: 0.0rem;
  border: 1px solid #333;
  border-radius: 4px;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
}
/* 
.form-row input[type="text"] {
  height: 1.35rem;  
  padding-left: 0.4rem;  
  padding-top: 0.0rem;
  padding-bottom: 0.0rem;
} */

/* #nameRow.form-row input[type="text"]{
  display: flex;
  align-items: top; 
  justify-content: flex-end; 
  height: 100%; 
} */


/* Style for textarea (message box) */
.form-row textarea {
  resize: vertical;
  min-height: 4rem;
  width: 100%;
}

/* File input centered with styled upload button */
.form-row input[type="file"] {
  flex: 1;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  background: #fff;
  color: #000;
  width: 208px;
  border: 1px solid #fff;
  padding: 0.5rem;
  cursor: pointer;
  transition: 0.3s;
}

.form-row input[type="file"]::-webkit-file-upload-button {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.form-row input[type="file"]::-webkit-file-upload-button:hover {
  color: #6d6d6d;
}

/* Center the submit button */
.form-row.centered {
  justify-content: center;
}

/* Reuse RSVP button style */
.rsvp-style-btn {
  width: fit-content;
  padding: 0.5rem 1rem;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  border: 1px solid #fff;
  background: #000;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.rsvp-style-btn:hover {
  background: #000;
  color: #6d6d6d;
}

/* .registry-link, */
.venue-link,
.booking-link {
  margin-top: 1rem;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  color: #000;
  text-decoration: underline;
}
.registry-link {
  margin-top: 1rem;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  color: #b38eff;
  text-decoration: underline;
}

a.registry-link,
strong.registry-link {
  color: #b38eff !important;
}

.registry-link:hover,
.venue-link:hover,
.booking-link:hover {
  color: #6d6d6d;
}

#progressContainer {
  width: 100%;
  background-color: #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1em;
  height: 8px;
  transition: opacity 0.3s ease;
}

#progressBar {
  width: 0%;
  height: 100%;
  background-color: var(--accent-color, #b38eff);
  transition: width 0.2s ease;
}button#uploadBtn.submitting {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button#uploadBtn.submitted {
  background-color: #b38eff;
  color: white;
  box-shadow: 0 0 10px 3px rgba(76, 175, 80, 0.5);
  animation: glowPulse 1s ease-in-out;
}
@keyframes glowPulse {
  0%   { box-shadow: 0 0 5px 1px rgba(76, 175, 80, 0.3); }
  50%  { box-shadow: 0 0 20px 6px rgba(179, 142, 255, 0.7); }
  100% { box-shadow: 0 0 5px 1px rgba(76, 175, 80, 0.3); }
}
.progress-bar {
  height: 8px;
  background: var(--accent-color, #b38eff);
  width: 0%;
  border-radius: 4px;
  transition: width 0.25s ease-in-out;
}

.hidden-smooth-memories {
  opacity: 0;
  pointer-events: none;
}

.visible-smooth-memories {
  opacity: 1;
  pointer-events: auto;
}

.file-limit {
  display: block;
  color: #777;
  font-size: 0.9rem;
  margin-top: 4px;
}
.file-limit a {
  color: var(--accent-color, #b38eff);
  text-decoration: none;
}
.file-limit a:hover {
  text-decoration: underline;
}
 #nameRow.form-row {
  display: flex;
  align-items: center; 
  justify-content: center;
}
#nameRow.form-row label {
  align-items: center;        
  margin-bottom: 0;           
  height: 100%;               
}

/* #6d6d6d */
/* ============================================================
   RSVP FORM
============================================================ */
#rsvp {
  position: relative;
  min-height: 0vh;   /* keeps form tall enough that layout stays stable */
}

#rsvpForm {
  min-height: 0vh;
}
#rsvp form {
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */
  align-items: center;
  justify-content: center;
}

#rsvp label {
  text-align: left;
  /* font-family: "TT Drugs Regular", sans-serif; */
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
}

#rsvp .inline-inputs {
  display: flex;
  /* font-family: "TT Drugs Regular", sans-serif; */
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  gap: 0.5rem;
}

#rsvp button {
  width: fit-content;
  padding: 0.5rem 1rem;
  /* font-family: "TT Drugs Regular", sans-serif; */
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  border: 1px solid #fff;
  background: #000;
  cursor: pointer;
  color: #fff;
  margin-bottom: 0rem;
  margin-top: 0.75rem;
}

#rsvp button:hover {
  background: #000;
  color: #6d6d6d;
  transition: 0.3s;
}

#additionalGuestsContainer h4 {
  margin-top: 0.5rem;
  font-weight: bold;
}

#guestNames label {
  display: block;
  margin-top: 0.5rem;
}

#guestNamesContainer,
label[for="guests"],
#guests {
  transition: opacity 0.3s ease-in-out;
}
/* enough room for first guest row */
/* #guestNamesContainer {
  min-height: 100px; 
} */
.hidden-smooth {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}

.visible-smooth {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}
/* --- Attendance (Radio) Layout --- */
#attendanceGroup {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap; /* ensures good wrapping if space runs out */
}

#attendanceGroup label {
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#attendanceGroup input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: #62705f; /* your theme color */
}

#confirmation p {
  margin-top: 1rem;
  font-family: "Evolventa Regular", serif;
  font-size: 1rem;
  color: rgb(74, 97, 74);
}

/* button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transition: opacity 0.3s ease;
}

button.submitting {
  background-color: #555;  
  color: #fff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.9; }
  100% { opacity: 0.6; }
} */

button {
  transition: background-color 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

/* While submitting */
button.submitting {
  background-color: #888;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
  animation: pulse 1.2s infinite;
}

/* On successful submit */
button.submitted {
  background-color: #5f8761; /* green */
  color: white;
  opacity: 1;
  animation: successFade 1.5s forwards;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes successFade {
  0% { background-color: #5f8761; opacity: 1; }
  100% { background-color: #000; opacity: 1; } /* back to original color */
}

/* --- Mobile layout --- */
@media (max-width: 600px) {
  #attendanceGroup {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, height 0.4s ease;
}

.inline-inputs {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* #attendingFields {
  transition: opacity 0.3s ease-in-out;
} */
#attendingFields {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, height 0.4s ease;
}
#attendingFields > * {
  transition: opacity 0.3s ease-in-out;
}

#guestNamesContainer {
  margin-top: 0rem;
  transition: opacity 0.3s ease-in-out;
}


/* ============================================================
   FOOTER
============================================================ */
/* footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #fff;
  align-items: center;
  justify-content: center;
} */
 footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #fff;
  margin-left: 260px;       /* match your sidebar width */
  width: calc(100% - 260px);/* keep it centered in the remaining space */
  box-sizing: border-box;
}
@media (max-width: 900px) {
  footer {
    margin-left: 0;
    width: 100%;
  }
}

/* .hamburger {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 48px;    
  height: 36px;   
  padding: 12px;  
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
} */

.hamburger {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 16px; /* Move to the left side */
  transform: none; /* No centering */
  width: 48px;
  height: 36px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.hamburger span {
  display: block;
  height: 4px;    
  border-radius: 3px;
  width: 100%;
  background: #333;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* ================================
   Mobile Overlay Navigation
================================== */
#mobileNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 90vh; /* give space for scrolling */
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.35s ease;
  z-index: 1000;
  overflow-y: auto;
}

#mobileNav.open {
  transform: translateY(0);
  opacity: 1;
}

#mobileNav .nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 70px 0 30px;
  width: 100%;
}

#mobileNav .nav-link {
  font-size: 1.1rem;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
}

#mobileNav .nav-link:hover {
  color: #6d6d6d;
}


/* ============================================================
   MOBILE STYLES (<=900px)
============================================================ */
@media (max-width: 900px) {
  /* Header becomes top-fixed */
  /* .side-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #fff;
    border-bottom: 1px solid #fff;
    border-right: none;
    padding: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
  } */

  body {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth native scroll */
  }

  .side-header {
    position: fixed;       /* was fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #fff;
    border-bottom: 1px solid #fff;
    border-right: none;
    padding: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
  }

  .page-content {
    margin-left: 0;
    /* padding-top: 5.5rem;    leave room for sticky header */
    padding-top: calc(var(--header-height) + 0.5rem);
    min-height: 100vh;
    overflow-x: hidden;
  }
  .page-section img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .page-section .text p {
    max-width: 90%;
  }

  .header-content {
    flex-direction: row;
    align-items: left;
    justify-content: space-between;
    width: 100%;
  }
  .site-title {
    font-size: 2rem;
    margin: 0;
  }

  .site-nav {
    flex-direction: row;
    gap: 1rem;
    margin: 0;
  }

  .site-description {
    display: none;
  }

  /* .page-content {
    margin-left: 0;
    padding-top: calc(var(--header-height) + 0.5rem);
    padding-bottom: 2rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    min-height: 100vh;
    overflow-x: hidden;

  } */
  .page-section {
    text-align: center;
  }

  /* .page-section h2 {
    font-family: "TT Drugs Regular", sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
  } */
  .page-section h2 {
    font-family: "Salvalyn", serif;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .page-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .memories-container h2 {
    font-family: "Salvalyn", serif;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .memories-container h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .blog-entry {
    flex-direction: column;
  }
  
  .blog-entry .text {
    max-width: 100%;
  }

  .blog-entry img {
    order: 2;
    margin: 1rem 0 0;
    max-width: 100%;
  }

  .blog-entry .text h2 {
    font-family: "TT Drugs Regular", sans-serif;
    text-align: center;
    max-width: 100%;
  }

  .blog-entry .text p {
    font-family: "Evolventa Regular", serif;
    text-align: center;
    max-width: 100%;
  }

  /* Dropdown submenu in mobile mode */
  .dropdown-content.in-sidebar {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0,s 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    z-index: 999;
  }


  .site-nav {
    /* position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem;
    gap: 1.2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease; */
    flex-direction: row;
    gap: 1rem;
    margin: 0;
  }

  .site-nav.active {
    transform: translateY(0);
    opacity: 1;
  }
    .nav-btn {
    font-size: 2.6rem;     /* make arrow icons larger */
    color: #000000;        /* ensure arrows are black */
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4em 0.6em;  /* slightly more padding for touch */
  }

  .nav-btn.prev {
    left: 6px; /* closer to edge */
  }

  .nav-btn.next {
    right: 6px;
  }
}
/* --- Mobile only --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .site-nav {
    display: block;
  }
}

/* Desktop hides overlay menu */
@media (max-width: 768px) {
  .side-header {
    width: 100%;
    height: auto;
    box-shadow: none;
    padding: 0;
  }

  .header-content > .site-nav:first-child {
    display: none;
  }

  .hamburger {
    display: flex;
  }
  .hamburger {
    left: 16px;
    transform: none;
  }
  .site-description {
    display: none;
  }
}

@media (min-width: 769px) {
  #mobileNav,
  .hamburger {
    display: none;
  }

  .side-header {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 1rem;
    background: #fff;
    /* box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); */
    overflow-y: auto;
  }

  .side-header .site-nav .dropdown {
    display: flex;
    flex-direction: column;
  }

  .side-header .nav-link {
    font-size: 0.95rem;
    padding: 6px 0;
    text-decoration: none;
    color: #333;
  }

  .side-header .nav-link:hover {
    color: #6d6d6d;
  }
}

@media (max-width: 768px) {
   .form-row {
    flex-direction: column;
    align-items: center;   /* center fields horizontally */
    text-align: left;
  }

  .form-row label {
    flex: none;
    width: 100%;
    text-align: left;
    margin-bottom: 0.4rem;
  }

  .form-row input[type="text"],
  .form-row textarea,
  .form-row input[type="file"] {
    width: 90%;            /* keep them narrower than screen */
    max-width: 400px;      /* optional: cap width for large phones */
    margin: 0 auto;        /* center the element */
    box-sizing: border-box;
  }
  .rsvp-style-btn {
    align-self: center;
  }
}

  /* .form-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .form-row label {
    text-align: left;
    flex: none;
  }

  #uploadForm {
    align-items: stretch;
  } */
/* ============================================================
   SLIDESHOW COMPONENT
============================================================ */

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: min(60vh, 500px);
  /* background: #f8f8f8; */
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-track img {
  display: block;
  position: absolute;
  inset: 0;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 1.2s ease;
  padding: 2% 0;
}
.slideshow-track img.active {
  opacity: 1;
  z-index: 1;
}
.slideshow-track img.fade-in {
  transition: opacity transform 1.2s ease-in-out, transform 1.2s ease-out;
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* background: #fff; */
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.25em 0.5em;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

.nav-btn:hover {
  background: rgba(255, 255, 255, 1);
}

/* Mobile: shorter view height */
@media (max-width: 768px) {
  .slideshow-container {
    height: min(45vh, 320px);
  }
  .nav-btn {
    font-size: 1.5rem;
  }
}

/* ============================================================
   SCROLL / ANIMATION HELPERS
============================================================ */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}
