* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: none;
}
body {
  background-color: #fff;
  margin: 0;
  padding: 33px 0;
  font: 14px/1.4 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  color: #555;
  touch-action: manipulation;
}
img,
svg {
  max-width: 100%;
}
h1 {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  margin: 0 0 22px 0;
  font-size: 20px;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
h2 {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  letter-spacing: 0.01em;
  font-weight: normal;
  color: #636363;
  font-size: 14px;
  margin: -11px 0 33px 0;
  line-height: 1.6;
}
h3 {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  margin: 0 0 15px 0;
  padding-top: 0;
  line-height: 1.2;
  font-size: 12px;
  color: #333;
}
.nowrap {
  white-space: nowrap;
}
.footnotes {
  margin-bottom: 20px;
}
.footnotes h4 {
  margin: 2px 0 7px 0;
  color: #666;
  font-size: 11px;
}
.footnotes p,
.footer p {
  margin: 2px 0 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #808080;
}
.footer p {
  font-style: italic;
}
.footer p em {
  font-style: normal;
}
.footnotes p strong {
  color: #666;
}
a,
a:link,
a:visited {
  color: #4774CC;
  text-decoration: none;
}
a:hover,
a:active {
  color: #bccae5;
}
.graphic-wrapper {
  position: relative;
}
.graphic {
  position: relative;
  margin-bottom: 11px;
}
.graphic::after {
  content: "";
  display: block;
  height: 0;
  clear: both;
}
.graphic img {
  max-width: 100%;
  height: auto;
}
.key {
  margin: -11px 0 33px 0;
  padding: 0;
  list-style-type: none;
}
.key .key-item {
  display: inline-block;
  margin: 0 18px 0 0;
  padding: 0;
  line-height: 15px;
}
.key .key-item b {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  float: left;
}
.key .key-item label {
  white-space: nowrap;
  font-size: 12px;
  color: #666;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
}
svg {
  overflow: hidden;
}
.axis {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  font-size: 11px;
  -webkit-font-smoothing: antialiased;
  fill: #999;
}
.axis path,
.axis line {
  fill: none;
  stroke: #ccc;
  shape-rendering: crispEdges;
}
.axis.y path {
  display: none;
}
.axis.y .tick line {
  display: none;
}
.grid path {
  display: none;
}
.grid .tick {
  stroke: #eee;
  color: #eee;
  stroke-width: 1px;
  shape-rendering: crispEdges;
}
.grid.y g:first-child line {
  display: none;
}
.zero-line {
  stroke: #666;
  stroke-width: 1px;
  shape-rendering: crispEdges;
}
line,
rect {
  shape-rendering: crispEdges;
}
.bars rect {
  fill: #17807E;
}
.labels {
  position: absolute;
  margin: 0;
  padding: 0;
  list-style-type: none;
  border: none;
}
.labels li {
  position: absolute;
  text-align: right;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  display: table;
  -webkit-font-smoothing: antialiased;
}
.labels li span {
  display: table-cell;
  vertical-align: middle;
}
.value text {
  font-size: 11px;
  -webkit-font-smoothing: antialiased;
}
.value text.in {
  fill: #fff;
}
.value text.out {
  fill: #636363;
}
body.hp {
  padding-top: 0;
  padding-bottom: 10px;
}
body.childlink {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}
img:not([alt]) {
  outline: 3px solid red;
}
[role="img"] img:not([alt]) {
  outline: none;
}
.sr-only {
  opacity: 0;
  position: absolute;
  left: -1000px;
  clip: inset(0, 0, 0, 0);
  width: 1px;
  height: 1px;
}
.gallery-container {
  width: 100%;
  margin: 0 auto;
}
.gallery-container p,
.user-submissions-subhed {
  font-size: 1rem;
}
.gallery-container p {
  width: 80%;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
}
.category-section {
  margin-bottom: 6px;
}
.category {
  font-size: 1.5rem;
}
#story-meta {
  display: none;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  /* Set a fixed row height */
  grid-auto-rows: 350px;
}
.story-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 8px;
  grid-column: span 12;
  height: 100%;
  overflow: hidden;
  /* Add this to ensure content stays within */
  transform: translateY(-4px);
}
.story-card:hover {
  opacity: 0.8;
}
.photo-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  /* This is already good */
  border-radius: 8px;
  /* Match the card's border radius */
}
.photo-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ben-stein-lobovits.photo-wrapper img {
  object-position: center 35%;
}
.story-title {
  padding: 1rem;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: white;
  position: absolute;
  bottom: 0;
  z-index: 2;
  margin-left: 10px;
  line-height: 1.3rem;
  background: linear-gradient(0.84turn, #a63f3f00, #66427c33, #6e0e7069);
}
/* Default size */
.story-card {
  grid-column: span 6;
  /* 3 cards per row by default */
}
/* Tablet and up */
@media (min-width: 649px) {
  /* Default size */
  .story-card {
    grid-column: span 3;
    /* 3 cards per row by default */
  }
  /* Featured items - adjusting based on position */
  .story-card:nth-child(1) {
    grid-column: span 8;
    /* First item spans 2/3 of the grid */
  }
  .story-card:nth-child(2) {
    grid-column: span 4;
    /* Second item takes remaining 1/3 */
  }
  .story-card:nth-child(3n) {
    grid-column: span 6;
    /* Every 4th item spans half */
    overflow: hidden;
    /* Add this */
  }
  .story-card:nth-child(4n) {
    grid-column: span 6;
    /* Every 4th item spans half */
    overflow: hidden;
    /* Add this */
  }
  .story-card:nth-child(5n) {
    grid-column: span 4;
    /* Every 4th item spans half */
  }
  .story-card:nth-child(6n) {
    grid-column: span 4;
    overflow: hidden;
    /* Add this */
  }
  .story-card:nth-child(7n) {
    grid-column: span 4;
    /* Every 4th item spans half */
  }
  .story-card:nth-child(8n) {
    grid-column: span 3;
    overflow: hidden;
    /* Add this */
  }
  .story-card:nth-child(9n) {
    grid-column: span 4;
    overflow: hidden;
    /* Add this */
  }
  .story-card:nth-child(10n) {
    grid-column: span 6;
    overflow: hidden;
    /* Add this */
  }
  .story-card:nth-child(11n) {
    grid-column: span 3;
    overflow: hidden;
    /* Add this */
  }
  /* Featured items - adjusting based on position */
  .story-card:nth-child(12) {
    grid-column: span 3;
  }
  .story-card:nth-child(13) {
    grid-column: span 6;
  }
  .story-card:nth-child(5n) .photo-wrapper img {
    animation: panDiagonal 10s ease-in-out infinite alternate;
    transform-origin: center center;
  }
  .story-card:nth-child(2n) .photo-wrapper img {
    animation: panDiagonal 10s ease-in-out infinite alternate;
    transform-origin: center center;
  }
  .story-card:nth-child(4n) .photo-wrapper img,
  .story-card:nth-child(6n) .photo-wrapper img {
    animation-play-state: paused;
  }
}
/* Desktop */
@media (min-width: 1024px) {
  .stories-grid {
    gap: 6px;
  }
}
/* Responsive height adjustments */
@media (max-width: 768px) {
  .stories-grid {
    grid-auto-rows: 300px;
  }
  .story-title {
    text-transform: none;
    padding: 4px;
  }
}
@media (max-width: 480px) {
  .stories-grid {
    grid-auto-rows: 250px;
  }
}
.text-only {
  grid-column: span 3 !important;
  /* Responsive height adjustments */
  background: linear-gradient(60deg, #867da7, #a891d4, #7e57c2, #9575cd);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}
@media (max-width: 768px) {
  .text-only {
    grid-column: span 6 !important;
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes panDiagonal {
  from {
    transform: scale(1.1) translate(-2%, -1%);
  }
  to {
    transform: scale(1.1) translate(4%, 1%);
  }
}
.gradient-text {
  background: linear-gradient(to right, #9333ea, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.gradient-line {
  height: 4px;
  width: 128px;
  background: linear-gradient(to right, #9333ea, #db2777);
  border-radius: 2px;
  margin: 1.5rem auto;
}
.title-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  /* Increased from 0.1 for better visibility */
}
.background-pattern circle {
  opacity: 0.7;
}
.main-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .main-title {
    font-size: 3rem;
  }
}
@media (max-width: 480px) {
  .main-title {
    font-size: 2.8rem;
  }
}
.title-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 428px) {
  .title-card {
    grid-column: span 12 !important;
  }
}
.title-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.user-submissions-title {
  font-size: 3.6rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  margin-top: 1rem;
  background: linear-gradient(to right, #9333ea, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.user-submissions-title .user-submissions-subhed {
  font-size: 1rem;
}
.user-submissions-title .user-submissions .stories-grid {
  grid-column: span 14;
}
@media (max-width: 768px) {
  .user-submissions-title {
    font-size: 3.5rem;
  }
}
@media (max-width: 480px) {
  .user-submissions-title {
    font-size: 2.5rem;
  }
}
.title-content {
  width: 100%;
  text-align: center;
}
.user-submissions .stories-grid {
  display: grid;
  grid-template-rows: 300px;
  grid-template-columns: repeat(8, 1fr);
  /* Double the columns (4 * 2) */
  gap: 6px;
  margin-top: 2rem;
  width: 200%;
}
.user-submissions .story-card {
  grid-column: span 1;
  height: 100%;
  transform: none;
}
/* Override any specific nth-child rules for user submissions */
.user-submissions .story-card:nth-child(n) {
  grid-column: span 1;
}
.user-submissions .stories-grid {
  animation: scrollLeft 34s linear infinite alternate;
}
.user-submissions .photo-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.user-submissions .photo-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-submissions .stories-grid.animation-paused {
  animation-play-state: paused;
}
#story-modal--image {
  height: 240px;
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  margin-top: 20px;
}
#modal-name {
  font-size: 40px;
  float: right;
  margin-top: 20px;
  font-weight: 900;
  padding: 6px 12px;
  background-color: #a82fc7;
  margin-bottom: 0;
  color: #f4f4f4;
  line-height: 1em;
  display: inline-block;
  max-width: 60%;
  position: relative;
  text-align: right;
}
#modal-quote {
  padding: 4px 10px;
  font-size: 1.1rem;
  background-color: white;
  float: right;
  clear: right;
  display: inline-block;
  text-align: right;
  margin-left: 40%;
  z-index: 1;
  position: relative;
  font-weight: 600;
  line-height: 1.2em;
  margin-bottom: 4px;
  margin-top: 4px;
}
.modal-content {
  position: absolute;
  bottom: 30px;
  left: 15%;
  background-color: #f9f9ff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 700px;
  border-radius: 8px;
}
#story-modal--image {
  height: 240px;
}
#modal-image {
  max-height: 300px;
  height: 100%;
  object-fit: contain;
  position: absolute;
  bottom: 0%;
  left: 0%;
  border: 1px solid #bfa6c5;
}
.modal-info {
  margin-top: 5px;
  text-align: right;
  clear: right;
}
#modal-photo-credit {
  font-size: 12px;
  text-align: left;
  font-style: italic;
}
.modal-info span {
  display: inline-block;
  padding: 0 10px;
  background-color: white;
  margin-left: 10px;
  position: relative;
  z-index: 1;
}
#modal-debt {
  display: inline-block;
}
#modal-text {
  margin-top: 20px;
}
.modal-background {
  pointer-events: none;
}
.modal-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 30px;
}
.story-modal--text {
  position: relative;
  z-index: 2;
}
.close-button {
  z-index: 3;
}
#modal-diagnosis {
  margin-left: 40%;
}
@keyframes scrollLeft {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(-25%) scale(1);
  }
}
.user-submissions .stories-grid {
  grid-template-rows: repeat(2, 230px);
  grid-template-columns: repeat(10, 230px);
  grid-auto-columns: 200px;
  grid-auto-flow: column;
}
.story-card {
  cursor: pointer;
}
/* Responsive adjustments */
@media (max-width: 1400px) {
  @keyframes scrollLeft {
    0% {
      transform: translateX(0) scale(1);
    }
    100% {
      transform: translateX(-45%) scale(1);
    }
  }
}
/* Responsive adjustments */
@media (max-width: 1028px) {
  @keyframes scrollLeft {
    0% {
      transform: translateX(0) scale(1);
    }
    100% {
      transform: translateX(-85%) scale(1);
    }
  }
  .user-submissions .stories-grid {
    grid-template-rows: repeat(2, 200px);
    grid-auto-columns: 250px;
  }
  .user-submissions .story-card {
    width: 250px;
  }
  #story-modal--image {
    height: 480px;
  }
  #modal-name,
  #modal-quote {
    margin-right: 0%;
    margin-top: 0px;
  }
  #modal-name {
    max-width: 100%;
    text-align: left;
  }
  .modal-content {
    left: 0px;
    padding: 6px;
  }
  #modal-quote {
    margin-left: 15%;
  }
  #modal-image {
    top: auto;
    bottom: 0;
  }
  .modal-container {
    padding: 10px;
  }
  .user-submissions .stories-grid {
    animation: scrollLeft 34s linear infinite alternate;
  }
  .user-submissions .stories-grid {
    display: grid;
    grid-template-rows: repeat(2, 180px);
    grid-template-columns: repeat(8, 1fr);
    /* Double the columns (4 * 2) */
    gap: 6px;
    margin-top: 2rem;
    width: 200%;
  }
}
@media (max-width: 988px) {
  @keyframes scrollLeft {
    0% {
      transform: translateX(0) scale(1);
    }
    100% {
      transform: translateX(-90%) scale(1);
    }
  }
  .user-submissions .stories-grid {
    animation: scrollLeft 34s linear infinite alternate;
  }
}
@media (max-width: 768px) {
  @keyframes scrollLeft {
    0% {
      transform: translateX(0) scale(1);
    }
    100% {
      transform: translateX(-135%) scale(1);
    }
  }
  .user-submissions .stories-grid {
    grid-template-rows: repeat(2, 150px);
    grid-auto-columns: 200px;
  }
  .user-submissions .story-card {
    width: 200px;
  }
  .user-submissions .stories-grid {
    animation: scrollLeft 35s linear infinite alternate;
  }
}
@media (max-width: 480px) {
  @keyframes scrollLeft {
    0% {
      transform: translateX(0) scale(1);
    }
    100% {
      transform: translateX(-225%) scale(1);
    }
  }
  .user-submissions .stories-grid {
    grid-template-rows: repeat(2, 150px);
    grid-auto-columns: 200px;
  }
  .user-submissions .story-card {
    width: 200px;
  }
  .user-submissions .stories-grid {
    animation: scrollLeft 35s linear infinite alternate;
  }
}
