html {
  font-size: 15px;
}

html, body {
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /*margin-bottom: 60px;*/
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: #1f1f1f;
  background-color: #fbfaf9;
}

h1,
h2,
h3,
h4,
.serif-display {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #8a8a8a;
}

.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.auth-card .form-floating > label {
  padding-left: 1.25rem;
}

.auth-card .form-floating > .form-control {
  padding-left: 1.25rem;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1020;
  background-color: rgba(251, 250, 249, 0.98);
  border-bottom: 1px solid rgba(33, 33, 33, 0.08);
  transition: opacity 0.3s ease;
}

.site-nav--hidden {
  pointer-events: none;
}

.page-content {
  padding-top: 190px;
}

.site-nav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 0 0.75rem;
}

.site-nav__brand a {
  text-decoration: none;
  font-size: 1.8rem;
  color: #1f1f1f;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.site-nav__left,
.site-nav__right {
  display: flex;
  align-items: center;
}

.site-nav__left {
  justify-content: flex-start;
}

.site-nav__right {
  justify-content: flex-end;
}

.site-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(31, 31, 31, 0.4);
  border-radius: 999px;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-nav__button {
  border: 1px solid #1f1f1f;
  padding: 0.5rem 1.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #1f1f1f;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__button:hover {
  background-color: #1f1f1f;
  color: #fbfaf9;
}

.site-nav__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
}

.site-nav__links a {
  color: #1f1f1f;
  text-decoration: none;
}

.site-nav__admin {
  display: flex;
  justify-content: center;
  padding-bottom: 0.75rem;
}

.site-nav__admin .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__admin .nav-item {
  display: flex;
  align-items: center;
}

.site-nav__admin .form-inline {
  display: flex;
  align-items: center;
  margin: 0;
}

.site-nav__admin .nav-link {
  font-size: 0.8rem;
  padding: 0;
}

.wedding-page {
  /*padding: 4rem 0 5rem;*/
}

.wedding-hero {
    text-align: center;
    /*padding: 4rem 1rem 3rem;*/
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(31, 31, 31, 0.2);
}

.wedding-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}

.wedding-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.wedding-hero__subtitle {
  font-style: italic;
  font-size: 1.5rem;
}

.wedding-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.wedding-section__line {
  width: 60%;
  height: 1px;
  background-color: rgba(31, 31, 31, 0.2);
  margin: 2.5rem auto 0;
}

.wedding-card {
  background-color: #ffffff;
  border: 1px solid rgba(31, 31, 31, 0.1);
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 900px;
}

.wedding-card__title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.gallery-card__image-wrap {
  position: relative;
}

.gallery-card__image {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card__download {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.travel-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.5rem;
}

.travel-tile {
  border-top: 1px solid rgba(31, 31, 31, 0.2);
  padding-top: 1.5rem;
}

.travel-map {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1.25rem;
  border: 1px solid rgba(31, 31, 31, 0.12);
}

.travel-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.travel-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.travel-list li {
  margin-bottom: 0.75rem;
}

.venue-details {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.venue-details__image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 31, 0.12);
  background: #fff;
}

.venue-details__image img {
  width: 100%;
  height: auto;
  display: block;
}

.venue-details__content {
  text-align: left;
}

.venue-details__block {
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .venue-details {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
  }
}

.itinerary-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.5rem;
}

.itinerary-card {
  border: 1px solid rgba(31, 31, 31, 0.12);
  background-color: #ffffff;
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.04);
}

.itinerary-card__time {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(31, 31, 31, 0.6);
  margin-bottom: 0.5rem;
}

.rsvp-card {
  background-color: #ffffff;
  border: 1px solid rgba(31, 31, 31, 0.1);
  padding: 2rem;
}

.rsvp-card .form-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}

.rsvp-submit {
  border: 1px solid #1f1f1f;
  background-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.rsvp-submit:hover {
  background-color: #1f1f1f;
  color: #fbfaf9;
}

@media (max-width: 767px) {
  .page-content {
    padding-top: 240px;
  }

  .site-nav__bar {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .site-nav__left,
  .site-nav__right {
    justify-content: center;
  }

  .site-nav__links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
.ordinal {
    font-size: 0.6em;
    vertical-align: super;
}

.homepage-carousel {
  width: min(100%, 1100px);
  margin: 0 auto 2rem;
  transition: opacity 0.3s ease;
}

.homepage-carousel--hidden {
  pointer-events: none;
}

.homepage-carousel__viewport {
  position: relative;
  width: 100%;
  height: clamp(240px, 40vw, 520px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(31, 31, 31, 0.12);
  background-color: #efe9e4;
}

.homepage-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.homepage-carousel__image.is-active {
  opacity: 1;
  visibility: visible;
}


.admin-carousel-location {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

.admin-carousel-content {
  min-width: 0;
}

.admin-carousel-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 0.375rem;
}

.admin-carousel-meta dt {
  margin: 0;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-carousel-meta dd {
  margin: 0;
}

.admin-carousel-card {
  border-color: rgba(31, 31, 31, 0.12);
}

.admin-carousel-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(31, 31, 31, 0.2);
  display: block;
}

@media (max-width: 767.98px) {
  .homepage-carousel {
    margin-bottom: 1.5rem;
  }

  .homepage-carousel__viewport {
    height: clamp(220px, 62vw, 320px);
    border-radius: 12px;
  }
}

.wedding-page {
    background: linear-gradient(to bottom, #f8f4ef 0%, #fdfaf6 100%);
    min-height: 100vh;
    color: #4d463f;
}

.rsvp-hero {
    padding: 5rem 0 3rem;
    position: relative;
}

.rsvp-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    font-size: 0.8rem;
    color: #9c8c7c;
    margin-bottom: 1rem;
}

.rsvp-hero__title {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    color: #3f372f;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.rsvp-hero__subtitle {
    font-size: 1.05rem;
    color: #7a6f64;
    margin-bottom: 0;
}

.rsvp-shell {
    padding-bottom: 5rem;
}

.rsvp-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #6f6458;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(160, 140, 120, 0.18);
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(80, 60, 40, 0.08);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.rsvp-card__body {
    padding: 2rem;
}

.rsvp-table-head .border-bottom {
    border-color: #eee3d7 !important;
}

.guest-card {
    background: #fffdfb;
    border: 1px solid #eee3d7;
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: 0 8px 20px rgba(60, 40, 20, 0.04);
}

.guest-card__name {
    font-size: 1.35rem;
    color: #443c34;
    margin-bottom: 0.35rem;
}

.guest-card__meta {
    font-size: 0.92rem;
    color: #8a7d70;
}

.plusone-section {
    border-color: #eadfd3 !important;
}

.form-label {
    color: #6e6257;
    font-weight: 500;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 14px;
    border: 1px solid #dfd2c5;
    min-height: 46px;
    background-color: #fffdfb;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #bfa58a;
        box-shadow: 0 0 0 0.2rem rgba(191, 165, 138, 0.18);
    }

.input-group-text {
    background-color: #f6efe8;
    color: #6e6257;
}

.rsvp-alert-success {
    border-radius: 20px;
    border: 1px solid #d8e7d1;
    background: #f5fbf1;
}

.rsvp-alert-danger {
    border-radius: 20px;
}

.rsvp-submit-btn {
    background-color: #7b6755;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 2.6rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
    min-width: 220px;
    transition: all 0.25s ease;
}

    .rsvp-submit-btn:hover,
    .rsvp-submit-btn:focus {
        background-color: #665444;
        color: #fff;
        transform: translateY(-1px);
    }

.text-muted {
    color: #8b7e72 !important;
}

@media (max-width: 991.98px) {
    .rsvp-hero {
        padding: 4rem 0 2rem;
    }

    .rsvp-card__body {
        padding: 1.25rem;
    }

    .guest-card {
        padding: 1rem;
    }
}

.photo-upload-input {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.upload-list {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

.upload-list__item {
    background: #fffdfb;
    border: 1px solid #eee3d7;
    border-radius: 20px;
    padding: 1rem 1rem 0.9rem;
    box-shadow: 0 8px 20px rgba(60, 40, 20, 0.04);
}

.upload-status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.upload-progress {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background-color: #f1e8df;
}

    .upload-progress .progress-bar {
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 600;
    }

.rsvp-upload-summary {
    border-radius: 20px;
}

.wedding-section-soft {
    padding: 1rem 0 3rem;
    color: #6f6458;
}

.site-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.site-header-overlay__inner {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
}

.site-header-overlay .site-user-panel {
    pointer-events: auto;
}

.site-user-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    max-width: min(100%);
}

.site-user-panel__main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-user-panel__form {
    margin: 0;
}

.site-user-panel__greeting,
.site-user-panel__link,
.site-user-panel__logout {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.site-user-panel__greeting {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    background: rgba(30, 24, 20, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

    .site-user-panel__greeting:hover {
        color: #fff;
        background: rgba(30, 24, 20, 0.42);
    }

.site-user-panel__logout {
    appearance: none;
    border: 0;
    background: rgba(30, 24, 20, 0.20);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

    .site-user-panel__logout:hover {
        background: rgba(30, 24, 20, 0.34);
        color: #fff;
    }

.site-user-panel__admin {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-user-panel__link {
    text-decoration: none;
    color: #fff;
    background: rgba(30, 24, 20, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

    .site-user-panel__link:hover {
        color: #fff;
        background: rgba(30, 24, 20, 0.36);
    }

@media (max-width: 767.98px) {
    .site-header-overlay__inner {
        justify-content: center;
        padding-top: 0.9rem;
    }

    .site-user-panel {
        width: 100%;
        align-items: center;
    }

    .site-user-panel__main,
    .site-user-panel__admin {
        justify-content: center;
    }
}

.wedding-navbar {
    position: relative; /* IMPORTANT */
    z-index: 1100; /* Bring above page content */
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1rem;
}

.wedding-navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: #fff !important;
}

.wedding-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

    .wedding-navbar .nav-link:hover,
    .wedding-navbar .nav-link:focus {
        color: #f3e7d3 !important;
    }

/* 🔥 KEY FIXES */
.wedding-navbar .navbar-collapse {
    position: relative;
    z-index: 1101;
}

.wedding-navbar .dropdown-menu {
    position: absolute;
    z-index: 1200; /* MUST be higher than everything else */
    background-color: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Optional: ensure dropdown sits nicely */
.wedding-navbar .dropdown-menu {
    margin-top: 0.5rem;
}

.wedding-navbar .dropdown-item {
    color: #fff;
}

    .wedding-navbar .dropdown-item:hover {
        background-color: rgba(255,255,255,0.08);
        color: #f3e7d3;
    }

@media (max-width: 991.98px) {
    .wedding-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .wedding-navbar .navbar-nav {
        align-items: flex-start !important;
    }

    .wedding-navbar .nav-item {
        width: 100%;
    }

    .wedding-navbar .btn {
        margin-top: 0.5rem;
    }
}