.events-page {
  background: #f8fcff;
}

.site-header nav a.active {
  color: var(--blue);
}

.single-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  min-height: calc(100svh - 84px);
  background: linear-gradient(135deg, #fff, #e7f6ff);
}

.single-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem);
}

.single-copy .event-kicker {
  margin: 0 0 1rem;
  color: #5789a4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.single-copy h1 {
  font-size: clamp(3.7rem, 7.5vw, 7.7rem);
  line-height: 0.84;
}

.single-copy > p:not(.eyebrow):not(.event-kicker) {
  max-width: 520px;
  margin: 2rem 0 2.3rem;
  color: #4e6d7e;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Twinning fotoğraf galerisi */
.single-visual.twinning-gallery {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
  background: #0b3d59;
  touch-action: pan-y;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    0deg,
    rgba(7, 35, 53, 0.68) 0%,
    rgba(7, 35, 53, 0.08) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide figcaption {
  position: absolute;
  z-index: 1;
  right: 4rem;
  bottom: 1.5rem;
  left: clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.gallery-controls {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-arrow {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 38, 55, 0.36);
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  pointer-events: auto;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  transform: scale(1.06);
  background: rgba(11, 61, 89, 0.72);
}

.gallery-arrow:focus-visible,
.gallery-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gallery-dots {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.gallery-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.gallery-dot[aria-current="true"] {
  background: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.event-story {
  max-width: 1440px;
  margin: auto;
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 8vw, 10rem);
  align-items: start;
}

.story-grid h2 {
  color: var(--navy);
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  line-height: 0.88;
}

.story-grid > div {
  max-width: 510px;
  color: #5d798a;
  line-height: 1.75;
}

.story-grid > div p:first-child {
  margin-top: 0;
}

.story-grid .text-link {
  display: inline-block;
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .single-event,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .single-copy {
    padding-top: 5rem;
  }

  .single-visual.twinning-gallery {
    min-height: min(68vh, 560px);
  }
}

@media (max-width: 480px) {
  .single-visual.twinning-gallery {
    min-height: 460px;
  }

  .gallery-slide figcaption {
    right: 3.5rem;
    bottom: 1.2rem;
    left: 1.1rem;
    font-size: 1.15rem;
  }

  .gallery-controls {
    padding: 0 0.65rem;
  }

  .gallery-arrow {
    width: 2.4rem;
    height: 2.4rem;
  }

  .gallery-dots {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide,
  .gallery-arrow {
    transition: none;
  }
}