/* Featured projects — 3-column card grid + incremental-grid toggles visibility on items */

.featured-project-modal__dialog {
  --modal-height: min(90vh, 33.5rem);
  max-height: var(--modal-height);
}

@media (min-width: 768px) {
  .featured-project-modal__dialog {
    height: var(--modal-height);
    flex-direction: row;
    align-items: stretch;
  }

  .featured-project-modal__media {
    display: flex;
    height: 100%;
    min-height: 0;
  }

  .featured-project-modal__gallery {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .featured-project-modal__content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
}

.featured-project-modal__scroll {
  -webkit-overflow-scrolling: touch;
}

.featured-project-modal__scroll .prose :where(p, ul, ol):first-child {
  margin-top: 0;
}

.featured-project-modal__scroll .prose :where(p, ul, ol):last-child {
  margin-bottom: 0;
}
