@font-face {
    font-family: "Plebeya Swash";
    src: url("/fonts/plebeya.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body.wedding-details-shell {
  --wd-bg: #f8f3eb;
  --wd-panel: #fffcf6;
  --wd-burgundy: #5c4d73;
  --wd-burgundy-dark: #4a3d5e;
  --wd-border: #e8e1d6;
  --wd-rose: #c9b8db;
  --wd-gold: #9a86b8;
  --wd-text: #1a181c;
  --wd-muted: #6a6460;
  margin-bottom: 0;
  background: var(--wd-bg);
  color: var(--wd-text);
  font-family: var(--font-app, "Cinzel", "Cormorant Garamond", Georgia, "Times New Roman", serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.wedding-details-shell main {
  padding-bottom: 0 !important;
}

.wd-page {
  background:
    radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.78), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(154, 134, 184, 0.14), transparent 26rem),
    var(--wd-bg);
}

/* ── Hero ── */

.wd-hero {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.72), transparent);
}

.wd-title {
  color: var(--wd-burgundy-dark);
  font-family: "Plebeya Swash", Georgia, serif;
  font-size: clamp(40px, 3.6vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}

.wd-name {
  font-family: inherit;
}

.wd-amp {
  display: inline-block;
  color: var(--wd-gold);
  font-family: inherit;
  font-size: 0.48em;
  font-weight: 400;
  vertical-align: 0.1em;
  margin-inline: 0.08em;
}

/* ── Hero event panel ── */

.wd-event-panel {
  position: relative;
  background: var(--wd-panel);
  border: 1px solid var(--wd-border);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow:
    0 4px 20px rgba(28, 26, 31, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.wd-panel-accent {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--wd-rose);
  font-size: 0.85rem;
  opacity: 0.6;
}

.wd-panel-ornament {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  color: var(--wd-rose);
  font-size: 0.7rem;
  opacity: 0.45;
}

.wd-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wd-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.wd-panel-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(92, 77, 115, 0.06);
  color: var(--wd-burgundy);
}

.wd-panel-list strong {
  display: block;
  color: var(--wd-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.wd-panel-list span {
  color: var(--wd-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.wd-event-panel-calendar {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(92, 77, 115, 0.08);
  text-align: center;
}

/* Shared calendar dropdown (used by _CalendarAction on the wedding details page) */
.wd-calendar {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.wd-calendar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(92, 77, 115, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
  color: var(--wd-burgundy);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.wd-calendar-toggle:hover,
.wd-calendar-toggle:focus-visible {
  background: rgba(255, 252, 246, 0.98);
  border-color: rgba(92, 77, 115, 0.28);
  color: var(--wd-burgundy-dark);
}

.wd-calendar-toggle:focus-visible {
  outline: 2px solid rgba(154, 134, 184, 0.7);
  outline-offset: 2px;
}

.wd-calendar-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(17.5rem, 86vw);
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: rgba(255, 252, 246, 0.98);
  box-shadow:
    0 0.75rem 1.5rem rgba(28, 26, 31, 0.12),
    0 0 0 1px rgba(92, 77, 115, 0.14);
  transform: translateX(-50%);
}

.wd-calendar-panel[hidden] {
  display: none !important;
}

.wd-calendar-option {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  color: var(--wd-ink, #1a181c);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.wd-calendar-option:hover,
.wd-calendar-option:focus-visible {
  background: rgba(154, 134, 184, 0.14);
  color: var(--wd-burgundy-dark);
}

/* ── Shared section styles ── */

.wd-section-title {
  color: var(--wd-burgundy-dark);
  font-family: var(--font-app-heading, "Cinzel", "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.wd-section-subtitle {
  color: var(--wd-muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.wd-title-ornament {
  display: inline-block;
  color: var(--wd-rose);
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* ── Countdown ── */

.wd-countdown-box {
  border: 1px solid var(--wd-border);
  border-radius: 0.85rem;
  background: var(--wd-panel);
  padding: 1.15rem 0.75rem;
  text-align: center;
}

.wd-countdown-box strong {
  display: block;
  color: var(--wd-burgundy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.wd-countdown-box span {
  display: block;
  margin-top: 0.5rem;
  color: var(--wd-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wd-countdown-complete {
  color: var(--wd-burgundy);
  font-size: 1.2rem;
}

/* ── Event detail cards ── */

.wd-detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--wd-border);
  border-radius: 0.85rem;
  background: var(--wd-panel);
  padding: 1.5rem 1rem;
}

.wd-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(92, 77, 115, 0.06);
  color: var(--wd-burgundy);
}

.wd-detail-label {
  color: var(--wd-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wd-detail-card strong {
  color: var(--wd-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ── Venue map section ── */

.wd-location-section {
  overflow-x: clip;
}

.wd-location-card {
  max-width: 52rem;
  padding: 1.5rem;
  border: 1px solid var(--wd-border);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 250, 243, 0.92)),
    var(--wd-panel);
  box-shadow: 0 10px 32px rgba(92, 31, 40, 0.06);
}

.wd-location-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.wd-location-detail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 14rem);
}

.wd-location-label {
  color: var(--wd-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wd-location-value {
  color: var(--wd-text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.wd-location-map {
  position: relative;
  width: 100%;
  height: clamp(18rem, 38vw, 26rem);
  max-height: 26rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(92, 77, 115, 0.12);
  border-radius: 0.85rem;
  overflow: hidden;
  background: rgba(255, 250, 243, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.wd-location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.wd-location-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── RSVP ── */

.wd-rsvp-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(246, 234, 220, 0.5)),
    var(--wd-panel);
  border: 1px solid var(--wd-border);
  border-radius: 1rem;
  padding: 2rem 2rem;
  box-shadow: 0 2px 12px rgba(28, 26, 31, 0.04);
}

.wd-btn-rsvp {
  display: inline-flex;
  align-items: center;
}

.wd-muted {
  color: var(--wd-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

/* ── Buttons ── */

.wd-btn-primary,
.wd-btn-outline {
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.72rem 1.35rem;
  text-transform: uppercase;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.wd-btn-primary {
  background: var(--wd-burgundy);
  border: 1px solid var(--wd-burgundy);
  color: #fff;
}

.wd-btn-primary:hover,
.wd-btn-primary:focus {
  background: var(--wd-burgundy-dark);
  border-color: var(--wd-burgundy-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(92, 77, 115, 0.2);
}

.wd-btn-outline {
  background: transparent;
  border: 1px solid rgba(92, 77, 115, 0.28);
  color: var(--wd-burgundy);
}

.wd-btn-outline:hover,
.wd-btn-outline:focus {
  background: rgba(92, 77, 115, 0.05);
  border-color: var(--wd-burgundy);
  color: var(--wd-burgundy-dark);
}

/* ── Footer ── */

.wd-footer {
  border-top: 1px solid rgba(92, 77, 115, 0.12);
}

.wd-footer p {
  color: var(--wd-burgundy);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Sizden Gelenler gallery ── */

.wd-gallery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(92, 77, 115, 0.07);
  color: var(--wd-burgundy);
}

.wd-upload-zone {
  position: relative;
  border: 2px dashed var(--wd-border);
  border-radius: 1rem;
  background: rgba(255, 250, 243, 0.6);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: border-color 280ms ease, background 280ms ease;
}

.wd-upload-zone.is-dragover {
  border-color: var(--wd-burgundy);
  background: rgba(92, 77, 115, 0.04);
}

.wd-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(92, 77, 115, 0.08);
  color: var(--wd-burgundy);
  margin-bottom: 0.75rem;
}

.wd-upload-label {
  margin: 0;
  color: var(--wd-text);
  font-size: 1rem;
  font-weight: 500;
}

.wd-upload-or {
  margin: 0.5rem 0;
  color: var(--wd-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wd-upload-btn {
  cursor: pointer;
}

.wd-upload-hint {
  margin: 0.85rem 0 0;
  color: var(--wd-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.wd-upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.wd-upload-progress p {
  margin: 0;
  color: var(--wd-muted);
  font-size: 0.92rem;
}

.wd-upload-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--wd-border);
  border-top-color: var(--wd-burgundy);
  border-radius: 50%;
  animation: wdSpin 800ms linear infinite;
}

@keyframes wdSpin {
  to { transform: rotate(360deg); }
}

.wd-upload-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  text-align: center;
}

.wd-upload-feedback.is-success {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.2);
  color: #2e7d32;
}

.wd-upload-feedback.is-error {
  background: rgba(183, 28, 28, 0.06);
  border: 1px solid rgba(183, 28, 28, 0.18);
  color: #b71c1c;
}

.wd-upload-attribution {
  color: var(--wd-muted);
  font-size: 0.92rem;
  text-align: center;
}

.wd-upload-name-field {
  padding: 0.85rem 1rem;
  border: 1px solid var(--wd-border);
  border-radius: 0.75rem;
  background: rgba(255, 250, 243, 0.75);
}

.wd-upload-name-label {
  color: var(--wd-burgundy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.wd-upload-name-input {
  border-color: rgba(92, 77, 115, 0.18);
  background: #fff;
}

.wd-upload-name-help {
  margin-top: 0.45rem;
  color: var(--wd-muted);
  font-size: 0.82rem;
}

.wd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wd-gallery-grid:empty {
  display: none;
}

.wd-gallery-empty {
  color: var(--wd-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ── Homepage preview slider ── */

.wd-home-gallery-slider {
  position: relative;
  max-width: min(100%, 42rem);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--wd-border);
  background: var(--wd-panel);
  box-shadow:
    0 4px 24px rgba(28, 26, 31, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.wd-home-gallery-slider:focus-visible {
  outline: 2px solid rgba(92, 77, 115, 0.35);
  outline-offset: 3px;
}

.wd-home-gallery-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.wd-home-gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.wd-home-gallery-slide .wd-gallery-trigger,
.wd-home-gallery-slide img {
  width: 100%;
  height: 100%;
}

.wd-home-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(92, 77, 115, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.92);
  color: var(--wd-burgundy);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.wd-home-gallery-nav:hover:not(:disabled),
.wd-home-gallery-nav:focus-visible:not(:disabled) {
  background: #fff;
  border-color: rgba(92, 77, 115, 0.35);
}

.wd-home-gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.wd-home-gallery-nav--prev {
  left: 0.75rem;
}

.wd-home-gallery-nav--next {
  right: 0.75rem;
}

.wd-home-gallery-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem 0.85rem;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.35), rgba(255, 250, 243, 0.92));
}

.wd-home-gallery-meta:has(.wd-home-gallery-counter) {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wd-home-gallery-slide-info {
  width: 100%;
  margin: 0;
  color: var(--wd-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.wd-home-gallery-slide-info:not([hidden]) {
  padding-top: 0.15rem;
}

.wd-home-gallery-counter {
  color: var(--wd-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.wd-home-gallery-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wd-home-gallery-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(92, 77, 115, 0.22);
  transition: transform 200ms ease, background 200ms ease;
}

.wd-home-gallery-dot.is-active {
  background: var(--wd-burgundy);
  transform: scale(1.15);
}

.wd-gallery-preview-cta {
  color: var(--wd-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ── Lightbox ── */

.wd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  cursor: zoom-out;
}

.wd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.wd-lightbox-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 56rem);
  max-width: min(92vw, 56rem);
  cursor: default;
}

.wd-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.wd-lightbox img {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 52rem);
  max-height: min(82vh, 52rem);
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  cursor: default;
}

.wd-lightbox-nav {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.12);
  color: rgba(255, 250, 243, 0.92);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.wd-lightbox-nav:hover:not(:disabled),
.wd-lightbox-nav:focus-visible:not(:disabled) {
  background: rgba(255, 250, 243, 0.2);
  border-color: rgba(255, 250, 243, 0.35);
}

.wd-lightbox-nav:disabled,
.wd-lightbox-nav[hidden] {
  display: none;
}

.wd-lightbox-counter {
  margin: 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.wd-lightbox-caption {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 250, 243, 0.88);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
}

.wd-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 200ms ease;
}

.wd-lightbox-close:hover,
.wd-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.wd-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--wd-border);
  background: rgba(255, 250, 243, 0.5);
  box-shadow: 0 2px 10px rgba(74, 43, 37, 0.04);
}

.wd-gallery-item--contain {
  background: var(--wd-panel);
}

.wd-gallery-item--broken {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(246, 234, 220, 0.72));
}

.wd-gallery-item--broken::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(92, 77, 115, 0.08), transparent 58%);
  pointer-events: none;
}

.wd-gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.wd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 400ms ease;
}

.wd-gallery-item:hover img {
  transform: scale(1.04);
}

/* ── Responsive ── */

@media (max-width: 991.98px) {
  .wd-title {
    white-space: normal;
    font-size: clamp(36px, 8vw, 52px);
  }

  .wd-rsvp-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .wd-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .wd-event-panel {
    padding: 1.5rem 1.25rem;
  }

  .wd-upload-zone {
    padding: 1.5rem 1rem;
  }

  .wd-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.5rem;
  }

  .wd-location-card {
    padding: 1.15rem;
  }

  .wd-location-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .wd-location-map {
    height: clamp(16.25rem, 72vw, 20rem);
    max-height: 20rem;
  }

  .wd-location-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-location-actions .btn {
    width: 100%;
  }
}

/* RTL adjustments for wedding details */
[dir="rtl"] .wd-panel-list li {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .wd-panel-icon {
  margin-inline-end: 0;
  margin-inline-start: 0.75rem;
}

[dir="rtl"] .wd-rsvp-panel .text-lg-start {
  text-align: start !important;
}

[dir="rtl"] .wd-rsvp-panel .text-lg-end {
  text-align: end !important;
}

[dir="rtl"] .wd-lightbox-nav--prev svg {
  transform: scaleX(-1);
}

[dir="rtl"] .wd-lightbox-nav--next svg {
  transform: scaleX(-1);
}

/* Staging area */
.wd-staging-area {
  margin-top: 1.25rem;
}

.wd-staging-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wd-staged-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 252, 246, 0.85);
  border: 1px solid var(--wd-border);
  border-radius: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wd-staged-card:hover {
  border-color: rgba(92, 77, 115, 0.25);
  box-shadow: 0 2px 8px rgba(74, 43, 37, 0.06);
}

.wd-staged-thumb {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0.4rem;
  background: var(--wd-border);
}

.wd-staged-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wd-staged-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--wd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-staged-size {
  font-size: 0.72rem;
  color: var(--wd-muted);
}

.wd-staged-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--wd-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wd-staged-remove:hover,
.wd-staged-remove:focus-visible {
  background: rgba(183, 28, 28, 0.08);
  color: #b71c1c;
}

.wd-staging-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.wd-staging-actions.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.wd-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wd-burgundy);
  background: transparent;
  border: 1px solid rgba(92, 77, 115, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.wd-btn-outline-sm:hover {
  border-color: var(--wd-burgundy);
  background: rgba(92, 77, 115, 0.04);
}

.wd-btn-clear {
  color: rgba(183, 28, 28, 0.7);
  border-color: rgba(183, 28, 28, 0.2);
}

.wd-btn-clear:hover {
  color: #b71c1c;
  border-color: rgba(183, 28, 28, 0.4);
  background: rgba(183, 28, 28, 0.04);
}

@media (max-width: 430px) {
  .wd-home-gallery-slide {
    aspect-ratio: 4 / 3;
  }

  .wd-home-gallery-nav {
    width: 2rem;
    height: 2rem;
  }

  .wd-home-gallery-nav--prev {
    left: 0.45rem;
  }

  .wd-home-gallery-nav--next {
    right: 0.45rem;
  }

  .wd-lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .wd-lightbox-nav--prev {
    left: 0.35rem;
  }

  .wd-lightbox-nav--next {
    right: 0.35rem;
  }

  .wd-lightbox img {
    max-height: min(58vh, 28rem);
  }
}

body.culture-ar.wedding-details-shell {
  font-family: var(--font-ar, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif);
}

body.culture-ar.wedding-details-shell .wd-section-title,
body.culture-ar.wedding-details-shell .wd-btn-primary,
body.culture-ar.wedding-details-shell .wd-btn-outline,
body.culture-ar.wedding-details-shell .wd-btn-rsvp,
body.culture-ar.wedding-details-shell .wd-muted,
body.culture-ar.wedding-details-shell .wd-section-subtitle {
  font-family: var(--font-ar, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif);
}

body.culture-ar.wedding-details-shell .wd-title {
  font-family: var(--font-brand);
}
