/* ============================================================
   Düğün Davetiyesi — Premium Stil
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Italianno&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Ana kart ---------- */
.invite {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 26px 40px;
  /* İçerik aşağı uzadığında kırpılmasın (Nikah alanı görünmüyordu) */
  overflow-x: clip;
  overflow-y: visible;
  background: #ffffff;
  box-shadow: none;
}

.invite-inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Köşe çiçekleri ---------- */
.corner-photo {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.corner-top-right {
  top: -10px;
  right: -10px;
  width: min(320px, 80vw);
  height: auto;
  animation: floralReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.corner-bottom-left {
  bottom: 0;
  left: -40px;
  width: min(280px, 65vw);
  height: auto;
  transform: rotate(25deg) translateY(68%);
  opacity: 0.6;
  animation: floralRevealRotated 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes floralReveal {
  from {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.corner-bottom-left {
  animation-name: floralRevealRotated;
}

@keyframes floralRevealRotated {
  from {
    opacity: 0;
    transform: rotate(25deg) translateY(68%) scale(0.85);
    filter: blur(6px);
  }
  to {
    opacity: 0.6;
    transform: rotate(25deg) translateY(68%) scale(1);
    filter: blur(0);
  }
}

/* ---------- Badge ---------- */
.badge {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(82, 113, 132, 0.06);
  border: 1px solid rgba(82, 113, 132, 0.1);
  backdrop-filter: blur(6px);
}

.badge-icon {
  font-size: 15px;
  line-height: 1;
}

.badge-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b8292;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- İsimler ---------- */
.names {
  margin-top: 40px;
  text-align: center;
  font-family: "Italianno", cursive;
  color: #4a6f82;
  font-size: clamp(62px, 15vw, 92px);
  line-height: 1;
  letter-spacing: 1px;
  position: relative;
}

.names .amp {
  display: inline-block;
  font-size: 0.65em;
  color: #8fa8b6;
  margin: 0 4px;
  vertical-align: middle;
  transform: translateY(-4px);
}

/* ---------- Alt başlık ---------- */
.subtitle {
  margin-top: 14px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #7a9aaa;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------- Açıklama ---------- */
.desc-block {
  margin-top: 36px;
  width: 100%;
  max-width: 360px;
}

.desc-block .desc {
  margin: 0;
  padding: 0 4px;
  text-align: center;
  font-family: "Inter", sans-serif;
  color: #627a8a;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- Divider ---------- */
.divider-wrap {
  width: 100%;
  max-width: 340px;
  margin: 12px auto;
  height: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Geri Sayım ---------- */
.events-stack {
  width: 100%;
  max-width: 360px;
  margin: 52px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-divider {
  width: 100%;
  max-width: 340px;
  margin: 12px auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-divider--compact {
  max-width: 280px;
  height: 1px;
  margin: 4px auto;
  background: linear-gradient(
    90deg,
    rgba(82, 113, 132, 0) 0%,
    rgba(82, 113, 132, 0.28) 50%,
    rgba(82, 113, 132, 0) 100%
  );
}

.section-divider--compact .divider-img {
  display: none;
}

.event-card {
  text-align: center;
  padding: 4px 2px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.event-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 50px;
  font-weight: 400;
  color: #4f7082;
  letter-spacing: 0.015em;
  line-height: 1;
}

.event-date {
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #617c8d;
  letter-spacing: 0.02em;
}

.event-time {
  margin-top: 3px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #7f9cac;
}

.event-venue {
  margin-top: 11px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: #58798b;
  line-height: 1.3;
}

.event-address {
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #89a3b2;
  line-height: 1.45;
  letter-spacing: 0.015em;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

/* ---------- Anılar (Alt Alta / Rotate / Kare) ---------- */
.memory-stack {
  width: 100%;
  max-width: 316px;
  margin: 24px auto 0;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.memory-title {
  margin: 0 0 4px;
  text-align: center;
  font-family: "Italianno", cursive;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.memory-card {
  position: relative;
  width: 100%;
  margin: 8px 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f6f2;
  box-shadow: 0 10px 22px rgba(58, 48, 31, 0.1);
  transform-origin: center center;
}

.memory-card--left {
  transform: rotate(-2.4deg);
}

.memory-card--right {
  transform: rotate(2.4deg);
}

.memory-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-map-btn {
  width: 100%;
  margin-top: 0;
  justify-content: center;
  padding-top: 11px;
  padding-bottom: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(95, 126, 143, 0.24);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.countdown-wrap {
  width: 100%;
  max-width: 100%;
  margin: 12px auto 0;
}

.countdown-status {
  display: none;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: #4f7082;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.countdown-wrap.is-ended .countdown-status {
  display: block;
}

.countdown-wrap.is-ended .countdown {
  display: none;
}

.countdown {
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 8px 6px 6px;
  border-radius: 12px;
  background: rgba(82, 113, 132, 0.05);
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  position: relative;
}

.count-item .value {
  font-family: "Inter", sans-serif;
  font-size: clamp(34px, 8.8vw, 46px);
  color: #4f7082;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease, text-shadow 0.25s ease;
  will-change: transform, opacity, filter;
}

.count-item .label {
  margin-top: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  color: #94acb9;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: capitalize;
}

.date-block {
  margin-top: 36px;
  text-align: center;
  width: 100%;
}

.date-block .date {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  color: #4a6f82;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.date-block .time {
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #7a9aaa;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Düğün Salonu ---------- */
.venue-block {
  margin-top: 20px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.venue-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  color: #4a6f82;
  letter-spacing: 0.02em;
}

.venue-address {
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #8fa8b6;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ---------- Aksiyon Butonları ---------- */
.action-buttons {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border: 1.5px solid rgba(82, 113, 132, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4a6f82;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn:hover {
  background: rgba(82, 113, 132, 0.08);
  border-color: rgba(82, 113, 132, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(82, 113, 132, 0.1);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

/* ---------- Aileler ---------- */
.families {
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 380px;
}

.family-card {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.family-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 500;
  color: #8fa8b6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.family-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: #4a6f82;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.family-amp {
  color: #8fa8b6;
  font-style: italic;
  margin: 0 2px;
}

.family-surname {
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #4a6f82;
  letter-spacing: 0.04em;
}

.family-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(82, 113, 132, 0.2) 20%,
    rgba(82, 113, 132, 0.2) 80%,
    transparent 100%
  );
  flex-shrink: 0;
}

/* ---------- Alt Çizgi ---------- */
.footer-line {
  margin-top: 40px;
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(82, 113, 132, 0.25) 50%,
    transparent 100%
  );
}

/* ---------- Alt Mesaj ---------- */
.footer-msg {
  margin-top: 20px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: #8fa8b6;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 24px;
}

/* ---------- Giriş Animasyonları ---------- */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Value güncelleme animasyonu ---------- */
.value.tick {
  animation: tickBounce 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tickBounce {
  0% {
    transform: translateY(5px) scale(0.92);
    opacity: 0.45;
    filter: blur(1px);
  }
  45% {
    transform: translateY(-2px) scale(1.08);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .invite {
    padding: 24px 18px 32px;
  }

  .corner-top-right {
    width: min(260px, 72vw);
    right: -6px;
    top: -6px;
  }

  .corner-bottom-left {
    width: min(220px, 55vw);
    bottom: 0;
    left: -30px;
    transform: rotate(25deg) translateY(72%);
  }

  .names {
    margin-top: 24px;
  }

  .count-item .value {
    font-size: 36px;
  }

  .event-card {
    padding: 14px 10px 10px;
  }

  .event-title {
    font-size: 46px;
  }

  .event-venue {
    font-size: 16px;
  }

  .event-date {
    font-size: 15px;
  }

  .event-time {
    font-size: 14px;
  }

  .event-map-btn {
    font-size: 12px;
  }

  .event-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .names {
    font-size: 54px;
  }

  .subtitle {
    font-size: 20px;
  }

  .count-item .value {
    font-size: 30px;
  }

  .count-item .label {
    font-size: 12px;
  }
}

/* ============================================================
   Galeri Bölümü — Minimalist Hikaye Akışı (Stacking)
   ============================================================ */

.gallery-section {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 120px auto 0;
  background: #ffffff;
  padding: 60px 0;
  z-index: 0;
  clear: both;
}

.gallery-sticky-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.gallery-transition {
  display: none; /* Slider modunda gerek yok */
}

/* Sabit Başlık */
.gallery-header-sticky {
  position: relative;
  top: 0;
  padding: 84px 0 15px;
  background: #ffffff;
  text-align: center;
  z-index: 110;
}

.gallery-meta {
  margin: -10px auto 30px; /* Görsele daha yakın olması için negatif margin ve alt boşluk */
  text-align: center;
  max-width: 360px;
  position: relative;
  z-index: 60;
}

.gallery-meta-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  color: #4a6f82;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-meta-desc {
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #7a8d97;
  max-width: 320px;
  font-weight: 300;
}

/* Orijinal kart içeriğini gizliyoruz çünkü JS veriyi buradan alıp yukarıdaki meta alanına yazıyor */
.card-content {
  display: none;
}

.gallery-badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  color: #aebfc9;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.gallery-title {
  margin: 0;
  font-family: "Italianno", cursive;
  font-size: 52px;
  color: #4a6f82;
  font-weight: 400;
}

/* Hikaye Akışı (Cross-fade Sabit Alan) */
.gallery-stack {
  position: relative;
  width: 100%;
  height: 650px; 
  margin-top: 10px;
  flex-grow: 1;
}

.gallery-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 10;
}

.gallery-card.active {
  opacity: 1;
  visibility: visible;
  z-index: 20;
}

.gallery-header-sticky {
  position: relative;
  top: 0;
  padding: 84px 0 15px;
  background: #ffffff;
  text-align: center;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.gallery-badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  color: #aebfc9;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.gallery-title {
  margin: 0;
  font-family: "Italianno", cursive;
  font-size: 52px;
  color: #4a6f82;
  font-weight: 400;
}

/* -- İçerik Yapısı -- */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.gallery-window {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1.5; /* window.png orijinal oranı */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img-wrap {
  position: relative;
  width: 70%; /* window.png iç hattına tam sığması için daraltıldı */
  height: 75%;
  overflow: hidden;
  z-index: 1;
  margin-top: -1%; 
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-edge-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  box-shadow: inset 0 0 15px 10px #ffffff;
  z-index: 2;
}

.window-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/window.png') center/contain no-repeat;
  z-index: 5;
  pointer-events: none;
}

.card-content {
  padding: 20px 24px 40px;
  text-align: center;
}

.card-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  color: #4a6f82;
  margin-bottom: 12px;
  display: block;
}

.card-story {
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #7a8d97;
  max-width: 320px;
  font-weight: 300;
}

/* Z-index stacking */
.gallery-card:nth-child(1) { z-index: 10; }
.gallery-card:nth-child(2) { z-index: 20; }
.gallery-card:nth-child(3) { z-index: 30; }
.gallery-card:nth-child(4) { z-index: 40; }

@media (max-width: 420px) {
  .gallery-card {
    top: 110px;
    margin-bottom: 50vh;
  }
}

/* ============================================================
   Teşekkür / Footer Bölümü
   ============================================================ */

.event-note-section {
  width: 100%;
  max-width: 430px;
  margin: 10px auto 0;
  padding: 0 22px;
}

.footer-section {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 70px 24px;
  background: #ffffff;
  text-align: center;
  z-index: 200; /* Header'ın üstünde kaysın veya onu itsin */
}

/* ---------- Etkinlik Programı (Timeline) ---------- */
.program-section {
  width: 100%;
  max-width: 430px;
  margin: 26px auto 0;
  padding: 18px 22px 8px;
}

.program-title {
  margin: 0;
  text-align: center;
}

.program-subtitle {
  margin-top: 6px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  color: #7a9aaa;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.program-timeline {
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  width: 100%;
  max-width: 360px;
  position: relative;
}

.program-timeline::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(82, 113, 132, 0.18);
}

.program-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}

.program-item::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(74, 111, 130, 0.55);
  box-shadow: 0 0 0 4px rgba(82, 113, 132, 0.06);
}

.program-item.is-active::before {
  border-color: rgba(74, 111, 130, 0.9);
  box-shadow:
    0 0 0 4px rgba(82, 113, 132, 0.08),
    0 0 0 10px rgba(82, 113, 132, 0.06);
  animation: programPulse 1.25s ease-in-out infinite;
}

.program-item.is-active .program-time,
.program-item.is-active .program-name {
  color: #2f566b;
}

@keyframes programPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  55% {
    transform: scale(1.15);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.program-debug {
  display: none;
  width: 100%;
  max-width: 360px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(82, 113, 132, 0.05);
  border: 1px solid rgba(82, 113, 132, 0.08);
}

.program-debug.is-on {
  display: block;
}

.program-debug-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: #6b8292;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.program-debug-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #5c7585;
}

.program-debug-row input[type="time"] {
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(82, 113, 132, 0.18);
  background: #fff;
  color: #2f566b;
}

.program-time {
  font-family: "Fira Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4a6f82;
  text-align: right;
  padding-top: 2px;
}

.program-details {
  padding-left: 22px;
}

.program-name {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #4a6f82;
  letter-spacing: 0.01em;
}

.program-desc {
  margin-top: 2px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #7a8d97;
  line-height: 1.4;
}

/* Etkinlik Notu */
.event-note {
  width: 100%;
  max-width: 360px;
  margin: 18px auto 0;
}

.event-note-inner {
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(82, 113, 132, 0.06), rgba(82, 113, 132, 0.035));
  border: 1px solid rgba(82, 113, 132, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.event-note-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
  color: #4a6f82;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.event-note-text {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #5c7585;
}

.event-note-text strong {
  font-weight: 700;
  color: #2f566b;
}

@media (max-width: 420px) {
  .event-note-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .program-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .program-timeline::before {
    left: 68px;
  }

  .program-item::before {
    left: 64px;
  }

  .program-details {
    padding-left: 18px;
  }
}

.footer-ampersand {
  font-family: "Italianno", cursive;
  font-size: 80px;
  color: #f7f2ec;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.6;
}

.footer-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: #4a6f82;
  margin-bottom: 24px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.footer-names {
  font-family: "Italianno", cursive;
  font-size: 52px;
  color: #4a6f82;
  margin-bottom: 8px;
}

.footer-date {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #aebfc9;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .gallery-card {
    top: 110px;
  }
}

@media (min-width: 768px) {
  .gallery-header-sticky {
    padding-top: 380px;
  }
}

/* ============================================================
   Kahverengi Metin Teması Override
   ============================================================ */
:root {
  --tone-main: #3a301f;
  --tone-soft: #5a4e3a;
  --tone-light: #7a6e59;
}

/* Ana metinler */
.names,
.subtitle,
.desc-block .desc,
.family-names,
.family-surname,
.event-title,
.event-date,
.event-time,
.event-venue,
.count-item .value,
.program-title,
.program-name,
.gallery-title,
.footer-names,
.footer-text {
  color: var(--tone-main);
}

.memory-title {
  color: var(--tone-main);
}

/* İkincil metinler */
.badge-text,
.family-title,
.event-address,
.count-item .label,
.program-subtitle,
.program-desc,
.program-time,
.gallery-badge,
.gallery-meta-date,
.gallery-meta-desc,
.footer-date,
.event-note-title,
.event-note-text {
  color: var(--tone-soft);
}

.footer-msg {
  font-size: 17px;
  color: var(--tone-main);
}

/* Açık ton detaylar */
.date-block .time,
.event-time,
.family-amp,
.names .amp {
  color: var(--tone-light);
}

/* Butonlar */
.btn,
.event-map-btn {
  color: var(--tone-main);
  border-color: rgba(58, 48, 31, 0.28);
}
