/* Set up a grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 10px;
  padding: 20px;
}

/* Standardize box sizing */
.grid-item {
  width: 100%;
  aspect-ratio: 2.5/1; /* width:height = 2:1 ratio */
  border: 1px solid black;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  color: black;
}

/* Subscription box floats separately */
.subscribe-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 10px;
  border: 1px solid black;
  z-index: 1000;
}

/* MailerLite form styling */
.form-content {
  display: flex;
  gap: 5px;
}

.form-control {
  border: 1px solid black;
  padding: 5px;
  font-size: 1rem;
}

.primary {
  background: black;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1rem;
}

.primary:hover {
  background: #333;
}

/* Hide the default MailerLite success initially */
.ml-form-successBody {
  text-align: center;
  padding: 10px;
  background: #e6f4ea;
  border: 1px solid #b6e2cc;
  color: #2e7d32;
}

/* -----------------------------------
   RESPONSIVE: Mobile and Tablets
------------------------------------ */

/* Tablet size */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
  }
}

/* Mobile size */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
  
  .form-content {
    flex-direction: column; /* Stack input and button vertically */
  }
  
  .form-control, .primary {
    width: 100%; /* Full width fields */
    box-sizing: border-box;
  }
}

/* Very small screens (like iPhone SE) */
@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr; /* Single column */
  }
}
