/* Home: three image link tiles under the tagline */
.home-links{
  width: min(1100px, 92vw);
  margin: 12px auto 0;
  padding-inline: 0; /* already centered by .main */
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 2 across on tablets, 3 across on desktops */
@media (min-width: 640px){
  .home-links{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px){
  .home-links{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tile look */
.tile{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(16,17,20,.28);
  box-shadow: var(--shadow, 0 20px 60px rgba(0,0,0,.35));
  text-decoration: none;
  border-bottom: 0 !important;           /* override global link underline */
}

/* Image sizing */
.tile img{
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;                   /* adjust if you prefer 16/9 */
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

/* Caption overlay */
.tile-label{
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  pointer-events: none;                  /* clicks go to the link */
}

/* Subtle hover lift on larger screens */
@media (hover:hover){
  .tile:hover img{ transform: scale(1.04); filter: contrast(1.05); }
  .tile:hover .tile-label{ background: rgba(0,0,0,.68); }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  .tile img{ transition: none; }
}
