@font-face {
    font-family: 'Cardo';
    src: url('cardo_normal_400.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

  .logo-container {
    display: flex;
    justify-content: space-between; /* Added to push content to opposite sides */
    align-items: center;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px 40px;             /* Added padding to protect edges */
    background-color: #ffffff;      /* Added solid background */
    border-bottom: 1px solid #eaeaea; /* Added clean dividing line */
  }

  .logo-img {
    width: 60px;            /* Adjust size as needed */
    height: auto;
  }

  .logo-text {
    font-size: 22px;        /* Makes the name large and bold */
    font-weight: 800;
    color: #111111;         /* Dark black for the main name */
    margin: 0;              /* Removes default heading margins */
  }

  .domain {
    font-size: 14px;
    color: #666666;         /* Lighter gray color for '.com' */
    font-weight: 400;       /* Makes '.com' slightly thinner than the name */
  }

  .header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none; /* Removes the underline */
  }

  .main-title {
    color: rgb(17, 17, 17);
    display: block;
    font-family: Cardo;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    height: 45px;
    line-height: 45.903805px;
    margin-block-end: 0px;
    margin-block-start: 19.1875px;
    margin-inline-end: 0px;
    margin-inline-start: 0px;
    text-align: center;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
  }

  .apps-grid {
    display: grid;
    /* Automatically wraps cards and snaps columns based on space */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: start;
    max-width: 900px; /* Limits maximum stretch for a 2-column look */
    margin: 0 auto;
  }

  .app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .app-internal-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
  }

  .app-internal-link:hover {
    transform: translateY(-5px);
  }

  /* Element Sizing & Typography */
  .app-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 5px;
  }

  .app-title {
    font-family: Cardo; /* Matches the editorial serif font in the image */
    font-size: 40px;
    font-weight: 400;
    margin: 0 0 8px 0;
    white-space: nowrap;
  }

  .app-tagline {
    font-style: italic;
    font-size: 1rem;
    color: #555555;
    margin: 0 0 25px 0;
  }

  .app-availability {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 15px 0;
  }

  .badge-link:hover {
    opacity: 0.7; /* Makes the badge dim slightly when hovered */
  }

  .app-store-badge {
    width: 140px;
    height: auto;
    display: block;
  }

  .header-nav {
    display: flex;
    gap: 25px;
  }

  .nav-link {
    color: #666666;
    font-size: 15px;
    text-decoration: none;
  }

  .nav-link:hover {
    color: #000000;
  }

  .page-content {
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
  }

  .page-content h1 {
    font-family: Cardo, serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 2rem;
    color: #111111;
  }

  .page-content h3 {
    font-family: Cardo, serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 2rem 0 0.75rem;
    color: #111111;
  }

  .page-content p {
    margin: 0 0 1rem;
  }

  .page-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
  }

  .page-content a {
    color: #111111;
  }

  .page-content h1:has(+ .app-tagline) {
    margin-bottom: 0rem;
  }

  .page-content .app-tagline {
    text-align: center;
    margin: 0 0 1rem;
  }

  .page-content .app-availability {
    text-align: center;
    padding-top: 12px;
  }

  .page-content .badge-link {
    display: flex;
    justify-content: center;
  }

  body.support-page {
    background-color: #f9f9f9;
  }

  .support-email-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin-top: 2rem;
    border-color: lightgray;
    border-width: 1px;
    border-style: solid;
  }

  .support-email {
    font-family: Cardo, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #111111;
    text-decoration: none;
  }

  .app-icon-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 1.5rem;
  }

  .app-icon-img {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .app-icon-caption {
    font-size: 0.8rem;
    color: #888888;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
  }

  .image-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    padding-top: 45px;
    box-sizing: border-box;
  }

  /* 2. Scale the image responsively */
  .image-container img {
    max-width: 100%;
    height: auto;            /* Maintains aspect ratio so it doesn't stretch */
    object-fit: contain;     /* Prevents distortion */
    border-radius: 12px;
  }

  @media (max-width: 600px) {
    .logo-container {
      flex-direction: column;
      gap: 15px;
      padding: 20px;
      text-align: center;
    }

    .header-nav {
      gap: 20px;
    }
  }

  /* Center your heading */
h1 {
  text-align: center;
  margin-top: 40px;
  font-family: sans-serif;
}

/* Spotlight Configuration */
/* 1. The Centered Grid Layout Container */
.gallery {
  display: grid;
  /* Force exactly 3 columns across on desktop screens */
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; /* Clean spacing between artwork pieces */
  max-width: 1000px; /* Prevents the grid from spreading too wide on massive screens */
  margin: 40px auto; /* Centers the whole gallery container horizontally on the page */
  padding: 0 20px; /* Prevents thumbnails from touching screen edges on mobile */
}

/* 2. Image Thumbnail Framing */
.gallery img {
  width: 100%;
  /* Keep a clean, uniform square shape for all of your artwork frames */
  aspect-ratio: 1 / 1;
  object-fit: cover; /* Crops the images cleanly inside the frames without squishing them */
  border-radius: 12px; /* Smooth rounded corners matching your current style */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Adds a subtle shadow depth */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 3. Subtle Hover Animation */
.gallery img:hover {
  transform: translateY(-4px); /* Gently raises the carving up when hovered */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Deepens the shadow on hover */
}

/* 4. Responsive View for Mobile Phones */
@media (max-width: 768px) {
  .gallery {
      /* Drop down to 2 columns on tablets, or 1 column on smaller smartphones */
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 16px;
  }
}
