/* =========================================
   Abby’s Petz — Adoption Center styling
   (matches Crew/Showroom card vibe)
========================================= */

/* Page frame */
.content-area{
  max-width: 925px;
  margin: 22px auto 28px;
  padding: 0 16px;
}

/* Grid of available petz */
.image-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 across on desktop */
  gap: 20px;
}

/* Each card */
.image-container{
  background: #fcfcfb;
  border-radius: 14px;
  outline: 1px solid rgba(0,0,0,.04);
  border: 1px solid rgba(167,124,207,.18);
  box-shadow: 0 4px 12px rgba(70,56,104,.10);
  padding: 10px;
  text-align: center;
  transition: transform .12s ease, box-shadow .18s ease;
}
.image-container::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
}
.image-container:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(70,56,104,.16),
    0 0 0 3px rgba(90,201,180,.10) inset;
}

/* Make the thumbnail area match your dotted “thumb” look */
.image-container a{
  display: flex;                 /* center the image */
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;           /* perfect square */
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  background:
    radial-gradient(var(--dot) .8px, transparent 1.2px),
    var(--bg);
  background-size: 14px 14px;
  margin-bottom: 8px;
  text-decoration: none;         /* keep link clean */
}

/* The pet PNG sits nicely inside */
.image-container img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Name styling under the thumb */
.image-container p{
  margin: 6px 0 0;
  line-height: 1.35;
}
.image-container p b{
  font-weight: 700;
  color: var(--text);
}

/* Center helper the page already uses */
.center{ text-align:center; }

/* Headings on this page */
h1{
  text-align: center;
  margin: 0 0 10px;
}
p[align="center"]{
  max-width: 62ch;
  margin: 0 auto 18px !important;
}

/* Adopt screen button */
#adoptContent button{
  font-family: 'Raleway', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(167,124,207,.35);
  background: #fff;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(70,56,104,.10);
  transition: transform .08s ease, box-shadow .18s ease, border-color .18s ease;
}
#adoptContent button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(70,56,104,.16);
  border-color: rgba(90,201,180,.55);
}

/* Success state spacing */
#adoptedContent p{ margin: 8px 0; }

/* Small screens: go 2-wide then 1-wide */
@media (max-width: 820px){
  .image-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .image-grid{ grid-template-columns: 1fr; }
}
