/* =========================
   LAYOUT
========================= */

/* Container for page content */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* Header / Nav layout */

.nav {
  position: relative; /* needed for absolute nav-left/right */
  display: flex;
  justify-content: center; /* centers logo */
  align-items: center;
  height: 64px;
  background-color: black;

}

.inline{
  display: inline-flex;
}

.align-baseline{
  align-items: baseline;
}

.padding-0{
  padding: 0 !important;;
}

.margin-bot-0 {
  margin-bottom: 0;
}
.margin-top-0 {
  margin-top: 0;
}
.margin-0 {
  margin: 0;
}
.space-y-xs { margin-top: 0.4rem; }
.space-y-sm { margin-top: 1rem; }
.space-y-md { margin-top: 2rem; }
.space-y-lg { margin-top: 4rem; }
.space-y-xl { margin-top: 6rem; }

/* =========================
   CENTER WRAPPER
========================= */
.center-wrapper {
  display: flex;               /* flex container */
  justify-content: center;     /* horizontal centering */
  align-items: center;         /* vertical centering (optional) */
  flex-direction: column;      /* stack children vertically */
  width: 100%;                 /* full width by default */
  text-align: center;

}


/* =========================
   GRID
========================= */
.grid {
  display: grid;
  gap: var(--space);


  /* Flexible columns */
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 2fr)); */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.grid-4 {
  display: grid;
  /* Fills the width, items stay ~400px, max 4 columns */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  
  max-width: 1580px; 
  width: 100vw;      /* Force it to look at the screen width, not parent */
  position: relative;
  
  gap: var(--space);
  padding: 0  var(--space);   /* Prevents items from touching screen edges */
  box-sizing: border-box;
  place-self: center;
}

.grid-5 {
  display: grid;
  /* Fills the width, items stay ~400px, max 4 columns */
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  
  max-width: 1580px; 
  width: 100vw;      /* Force it to look at the screen width, not parent */
  position: relative;
  
  gap: var(--space);
  padding: 0  var(--space);   /* Prevents items from touching screen edges */
  box-sizing: border-box;
  place-self: center;
}


/* .column-span2 {
  grid-column: span 2;
} */

@media (min-width: 500px) {
  .column-span2 {
    grid-column: span 2;
  }
}


@media (max-width: 500px) {
  /* .column-m-span2{
  grid-column: span 2;
  } */

  .m-text-align-left{
    text-align: left;
  }
}  


.btn-group a {
  display: inline-block;       /* ensures inline layout */
  margin-right: 1rem;          /* space between buttons */
}

.btn-group a:last-child {
  margin-right: 0;             /* remove extra space after last button */
}

.rotate-15{
  transform: rotate(-15deg);
}