/* ===== CLEAN FLAT STORIES CSS ===== */

:root {
  --rm-line-thickness: 2px;
  --rm-line-offset: 0.25em;
  --rm-line-duration: 0.45s;
}

/* ===== ALL STORIES SECTION ===== */
.all-stories {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

/* ===== STORY CARD LAYOUT ===== */
.story-card {
  display: grid;
  grid-template-columns: minmax(300px, 55%) 1fr;
  gap: 2rem;
  align-items: start; /* Align to top instead of center */
}


/* Alternate layout for even cards */
.story-card:nth-child(even) {
  direction: rtl;
}
.story-card:nth-child(even) .story-text {
  direction: ltr;
}

/* ===== STORY IMAGE ===== */
.story-image {
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Key fix: image has no white gap or shadow */
.story-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: none;
  margin: 0;
  padding: 0;
  filter: none;

  border-radius: 0;
}

/* ===== STORY TEXT ===== */
.story-text {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
  font-family: 'Gotham', Arial, sans-serif;
  color: black;
}
.story-text .category {
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: #777;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.title_s {
  margin: 0.5rem 0 1rem;
  font-family: 'Gotham', Arial, sans-serif;
  color: black;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1.1;
}
.story-text .description {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.gallery-section {
  min-height: 150vh; /* ensures enough scroll area */
}

/* ===== READ MORE LINK ===== */
.story-text .read-more {
  position: relative;
  display: inline-flex;

  gap: 0.4rem;
  text-decoration: none;
  color: black;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.3rem;
  transition: color 0.3s ease;
    grid-template-columns: minmax(300px, 55%) 1fr;

  align-items: start; /* Align to top instead of center */
}
.story-text .read-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--rm-line-offset) * -1);
  height: var(--rm-line-thickness);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--rm-line-duration) cubic-bezier(.25,.8,.25,1);
}
.story-text .read-more:hover::after,
.story-text .read-more:focus-visible::after {
  transform: scaleX(1);
}
.story-text .read-more svg {
  transition: transform var(--rm-line-duration) ease;
}
.story-text .read-more:hover svg,
.story-text .read-more:focus-visible svg {
  transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .all-stories {
    gap: 5rem;
    padding: 4rem 1rem;
  }
  .story-card {
    gap: 1.5rem;
  }
  .title_s {
    font-size: 4rem;
  }
}
@media (max-width: 768px) {
  .story-card {
    grid-template-columns: 1fr;
    direction: ltr !important;
    gap: 1rem;
  }
  .story-card:nth-child(even) {
    direction: ltr;
  }
  .all-stories {
    gap: 4rem;
    padding: 3rem 1rem;
  }
  .title_s {
    font-size: 3rem;
  }
  .story-text .description {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .title_s {
    font-size: 2.5rem;
  }
  .story-text .read-more {
    font-size: 1.1rem;
  }
  .all-stories {
    gap: 3rem;
    padding: 2rem 0.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .story-image,
  .story-image img,
  .story-text .read-more::after,
  .story-text .read-more svg {
    transition: none !important;
    animation: none !important;
  }
}
.story-text .read-more:focus-visible {
  outline: 2px solid #007acc;
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-contrast: high) {
  .story-text .description {
    color: #000;
  }
  .story-text .category {
    color: #555;
  }
}
@media print {
  .story-text .read-more::after {
    display: none;
  }
}

/* hide page scrollbar */
html { scrollbar-width: none; } /* Firefox */
body { -ms-overflow-style: none; } /* IE and Edge */
body::-webkit-scrollbar, body::-webkit-scrollbar-button { display: none; } /* Chrome */
/* end hide page scrollbar */


