/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #portfolio-owd1 {
    padding: var(--sectionPadding);
    /* Little browser bar above each screenshot */
    /* "Concept site" label for made-up businesses */
  }
  #portfolio-owd1 .cs-container {
    width: 100%;
    max-width: var(--containerWidth);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #portfolio-owd1 .cs-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #portfolio-owd1 .cs-card-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    justify-content: center;
  }
  #portfolio-owd1 .cs-item {
    width: 100%;
    max-width: 36rem;
    justify-self: center;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
  }
  #portfolio-owd1 .cs-item:hover {
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  }
  #portfolio-owd1 .cs-browser {
    display: flex;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: var(--dark);
  }
  #portfolio-owd1 .cs-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--darkLine);
  }
  #portfolio-owd1 .cs-picture {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
  }
  #portfolio-owd1 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s;
  }
  #portfolio-owd1 .cs-item:hover .cs-picture img {
    transform: scale(1.03);
  }
  #portfolio-owd1 .cs-info {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
  }
  #portfolio-owd1 .cs-meta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
  }
  #portfolio-owd1 .cs-concept {
    display: inline-block;
    margin-right: 0.375rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.75rem;
  }
  #portfolio-owd1 .cs-h3 {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.2em;
    color: var(--headerColor);
  }
  #portfolio-owd1 .cs-item-text {
    font-size: 1rem;
    line-height: 1.5em;
    color: var(--bodyTextColor);
  }
  #portfolio-owd1 .cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  #portfolio-owd1 .cs-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e5f2ff;
    color: var(--primary);
  }
  #portfolio-owd1 .cs-visit {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  #portfolio-owd1 .cs-visit:hover {
    color: var(--linkHoverDark);
  }
  #portfolio-owd1 .cs-more {
    text-align: center;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #portfolio-owd1 .cs-card-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Desktop - 1300px: three across, so three projects never leave one card alone on a row */
@media only screen and (min-width: 81.25rem) {
  #portfolio-owd1 .cs-card-group {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }
}
