:root {
  --black: #000000;
  --white: #f5f5f5;
  --text-light: rgba(255, 255, 255, 0.55);
  --text-dark: rgba(0, 0, 0, 0.45);
  --max-width: 1400px;
  --section-padding: clamp(60px, 8vw, 140px);
  --gap: clamp(40px, 6vw, 120px);
  --mobile-overlap: 12vw;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
img { display: block; width: 100%; }

.story-section { min-height: 100vh; }
.story-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; }
.story-content { max-width: 650px; }

.story-title {
  font-size: clamp(60px, 8vw, 140px);
  line-height: 0.9;
  font-weight: 300;
  margin-bottom: 60px;
}

.story-text {
    font-size: clamp(24px, 2vw, 40px);
    line-height: 1.4;
    font-weight: lighter;
}

.story-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.story-section.black { background: var(--black); }
.story-section.black .story-title { color: var(--white); }
.story-section.black .story-text { color: var(--text-light); }

.story-section.white { background: var(--white); }
.story-section.white .story-title { color: var(--black); }
.story-section.white .story-text { color: var(--text-dark); }

@media (min-width: 769px) {
  .story-section {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 5vw;
  }

  .story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
  }

  .story-content { order: 1; }
  .story-image { order: 2; }
}

@media (max-width: 768px) {
  .story-section {
    position: relative;
    padding: 0;
  }

  .story-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }

  .story-image {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 1;
    aspect-ratio: 1 / 1;
    margin: 6vw 6vw 0;
  }

  .story-content {
    order: 2;
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin-top: calc(-1 * var(--mobile-overlap));
    padding: 40px 6vw 80px;
  }

  .story-section.black .story-content { background: var(--black); }
  .story-section.white .story-content { background: var(--white); }

  .story-title {
    font-size: clamp(54px, 15vw, 110px);
    line-height: 0.9;
    margin-bottom: 40px;
  }

  .story-text {
    font-size: clamp(18px, 4.5vw, 30px);
    line-height: 1.45;
    font-weight: lighter;
  }
}

/* ==========================================
   GLOW TEXT EFFECT
   Použitie:
   <h1 class="text-glow">Lorem Ipsum</h1>
========================================== */

.text-glow {
  /* základný text */
  color: #ffffff;

  /* jemný glow efekt */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.25),
    0 0 20px rgba(255, 255, 255, 0.20),
    0 0 40px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(255, 255, 255, 0.10);

  /* lepší rendering */
  will-change: filter;
}

/* Voliteľná intenzívnejšia verzia */
.text-glow-strong {
  color: #ffffff;

  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 24px rgba(255, 255, 255, 0.30),
    0 0 48px rgba(255, 255, 255, 0.25),
    0 0 96px rgba(255, 255, 255, 0.18);
}

/* Glow pre tmavý text na bielom pozadí */
.text-glow-dark {
  color: #000000;

  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.10),
    0 0 16px rgba(0, 0, 0, 0.08),
    0 0 32px rgba(0, 0, 0, 0.06);
}