/* XV1 · estilos personalizados */

:root {
  --xv-ink: #151515;
  --xv-paper: #f7f5f1;
  --xv-soft: #ece7df;
  --xv-accent: #a99582;
  --xv-muted: #77716b;
}

html { scroll-behavior: smooth; }

body.xv-site {
  background: #fff;
  color: var(--xv-ink);
}

.xv-site header {
  padding-top: 34px;
  padding-bottom: 34px;
}

.xv-site header .author {
  letter-spacing: 3.5px;
  font-size: .75em;
}

.xv-site header .title {
  margin-top: 4px;
  font-size: 1em;
  color: #76716c;
}

.xv-site .nav-trigger .bar { height: 2px; }

.xv-intro { padding-top: 42px; }

.xv-kicker,
.xv-section-label {
  display: block;
  margin-bottom: 26px;
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--xv-accent);
}

.xv-intro h1 {
  max-width: 930px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.2em;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -.025em;
}

.xv-intro .strike {
  color: #aaa39c;
  text-decoration-thickness: 1px;
}

.xv-intro-copy {
  max-width: 590px;
  margin-top: 34px;
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.25em;
  line-height: 1.8;
  font-weight: 300;
  color: #66615c;
}

.xv-filters {
  margin-top: 10px;
  margin-bottom: 36px;
}

.xv-filters li a {
  opacity: .35;
}

.xv-filters li a.active,
.xv-filters li a:hover {
  opacity: 1;
}

.xv-gallery .grid .item .inner { margin-bottom: 44px; }

.xv-gallery .grid .item .thumb {
  background: var(--xv-paper);
}

.xv-gallery .grid .item .thumb img {
  display: block;
  width: 100%;
  filter: saturate(.82) contrast(.98);
}

.xv-gallery .grid .item:hover .thumb img {
  transform: scale(1.012);
}

.xv-gallery .caption .title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45em !important;
}

.xv-gallery .caption .tag {
  color: #7c756e;
  font-size: .7em !important;
}

.xv-text-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  background: var(--xv-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xv-text-card:after {
  content: none !important;
}

.xv-card-number {
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--xv-accent);
}

.xv-card-body .title {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.05em;
  line-height: 1.1;
}

.xv-card-body .tag {
  margin: 0 0 18px;
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.xv-card-body p {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  font-size: .95em;
  line-height: 1.7;
  font-weight: 300;
}

.xv-text-card-dark {
  background: var(--xv-ink);
  color: #fff;
}

.xv-text-card-dark .xv-card-number,
.xv-text-card-dark .tag { color: #b9aa9b; }

.xv-text-card-accent {
  background: var(--xv-soft);
}

.xv-details-section,
.xv-rsvp-section {
  padding: 125px 0;
  border-top: 1px solid rgba(0,0,0,.09);
}

.xv-details-section h2,
.xv-rsvp-section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.4em;
  line-height: 1.08;
  font-weight: 400;
}

.xv-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
}

.xv-detail-row:first-child { border-top: 1px solid rgba(0,0,0,.12); }

.xv-detail-row span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7d7771;
}

.xv-detail-row strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18em;
  font-weight: 400;
  text-align: right;
}

.xv-rsvp-section {
  background: var(--xv-ink);
  color: #fff;
  border-top: 0;
}

.xv-rsvp-section .xv-section-label { color: #b9aa9b; }

.xv-rsvp-section p {
  margin: 25px 0 32px;
  font-size: 1.15em;
  font-weight: 300;
  color: rgba(255,255,255,.7);
}

.xv-button {
  display: inline-block;
  padding: 15px 22px;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .25s ease;
}

.xv-button:hover,
.xv-button:focus {
  color: var(--xv-ink);
  background: #fff;
  text-decoration: none;
}

.xv-site #navigation { background: var(--xv-ink); }

.xv-site #navigation p {
  font-size: 1.15em;
  line-height: 1.7;
  color: rgba(255,255,255,.58);
}

.xv-site footer {
  margin-top: 0;
  padding: 55px 0;
  background: #fff;
}

@media screen and (max-width: 991px) {
  .xv-intro h1 { font-size: 3.5em; }
  .xv-details-section h2,
  .xv-rsvp-section h2 { font-size: 3em; }
  .xv-text-card { min-height: 290px; }
}

@media screen and (max-width: 768px) {
  .xv-site header { padding: 20px 0; }
  .xv-intro { padding-top: 20px; }
  .xv-intro h1 { font-size: 2.55em; line-height: 1.12; }
  .xv-intro-copy { font-size: 1.05em; margin-top: 24px; }
  .xv-kicker { margin-bottom: 18px; }

  .xv-filters li {
    display: inline-block;
    margin: 4px 18px 4px 0;
  }

  .xv-gallery .grid .item .inner { margin-bottom: 24px; }
  .xv-text-card { min-height: 240px; padding: 22px; }
  .xv-card-body .title { font-size: 1.65em; }

  .xv-details-section,
  .xv-rsvp-section { padding: 70px 0; }

  .xv-details-section h2,
  .xv-rsvp-section h2 { font-size: 2.5em; margin-bottom: 38px; }

  .xv-detail-row {
    display: block;
    padding: 17px 0;
  }

  .xv-detail-row span { display: block; margin-bottom: 8px; }
  .xv-detail-row strong { display: block; text-align: left; line-height: 1.5; }
}

@media screen and (max-width: 520px) {
  .xv-gallery .grid .item { width: 100%; }
  .xv-text-card { min-height: 260px; }
  .xv-site header .author { letter-spacing: 2.5px; }
}


/* XV1 · cuadrícula editorial uniforme */
.xv-gallery .xv-perfect-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 28px;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mantener las tarjetas alineadas dentro de la cuadrícula. */
.xv-gallery .xv-perfect-grid > .item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

.xv-gallery .xv-perfect-grid > .item > .inner {
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

/* Todas las tarjetas fotográficas usan el mismo recorte. */
.xv-gallery .xv-perfect-grid .xv-photo .inner {
  display: grid;
  grid-template-rows: auto 92px;
  align-content: stretch;
}

.xv-gallery .xv-perfect-grid .xv-photo .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--xv-paper);
}

.xv-gallery .xv-perfect-grid .xv-photo .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

/* Zona de texto uniforme para alinear todas las tarjetas. */
.xv-gallery .xv-perfect-grid .xv-photo .caption {
  min-height: 92px;
  padding-top: 15px;
  padding-bottom: 22px;
  box-sizing: border-box;
}

.xv-gallery .xv-perfect-grid .xv-photo .caption .title {
  margin-top: 0 !important;
  margin-bottom: 7px;
  line-height: 1.2;
}

.xv-gallery .xv-perfect-grid .xv-photo .caption .tag {
  margin: 0 !important;
  line-height: 1.4;
}

/* Las tarjetas de texto ocupan la misma altura que las fotográficas. */
.xv-gallery .xv-perfect-grid .xv-card {
  align-self: stretch;
}

.xv-gallery .xv-perfect-grid .xv-card .xv-text-card {
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Línea editorial dentro de cada tarjeta. */
.xv-gallery .xv-perfect-grid .caption:before,
.xv-gallery .xv-perfect-grid .caption:after {
  bottom: 0;
}

@media screen and (max-width: 991px) {
  .xv-gallery .xv-perfect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media screen and (max-width: 520px) {
  .xv-gallery .xv-perfect-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .xv-gallery .xv-perfect-grid .xv-photo .inner {
    grid-template-rows: auto 82px;
  }

  .xv-gallery .xv-perfect-grid .xv-photo .caption {
    min-height: 82px;
  }
}

/* XV1 v006 · grid fix: Bootstrap row clearfix must not become grid cells */
.xv-gallery .xv-perfect-grid::before,
.xv-gallery .xv-perfect-grid::after {
  content: none !important;
  display: none !important;
}

/* Force a strict 4 × 3 editorial grid on desktop. */
.xv-gallery .xv-perfect-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
}

.xv-gallery .xv-perfect-grid > .item {
  position: static !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  transform: none !important;
}

@media screen and (max-width: 991px) {
  .xv-gallery .xv-perfect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 520px) {
  .xv-gallery .xv-perfect-grid {
    grid-template-columns: 1fr !important;
  }
}


/* XV1 v008 · internal navigation isolated from Jane template filters */
.xv-filters {
  width: 100%;
  padding: 0;
  margin: 10px 0 36px;
  list-style: none;
}
.xv-filters li {
  display: inline-block;
  margin: 0 10px;
}
.xv-filters li:first-child { margin-left: 0; }
.xv-filters li a {
  display: inline-block;
  color: #000;
  opacity: .35;
  text-decoration: none;
  font-family: "Nexa Bold", "Roboto", "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  transition: opacity .3s ease;
}
.xv-filters li a.active,
.xv-filters li a:hover,
.xv-filters li a:focus {
  opacity: 1;
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  .xv-filters li {
    display: inline-block;
    margin: 4px 18px 4px 0;
  }
}
