/*
 * Adoptados photo gallery styles.
 * Independent of theme, utilizing clean CSS Flexbox layout.
 */

.cat-list { 
  margin-top: 8px; 
}

.cat-list .cat-section-title {
  margin: 0;
  color: #5b2f2c;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
}

.cat-section .cat-photos { 
  margin-top: 14px; 
}

.cat-section + .cat-section { 
  margin-top: 34px; 
}

.cat-photos {
  width: 80vw;
  max-width: 1300px;
  margin: 30px auto 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.cat-photo {
  flex: 0 1 400px;
  max-width: 400px;
  box-sizing: border-box;
}

/* Circular portrait styling */
.cat-photo-circle {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 12px solid #ffffff;
  border-radius: 600px;
  overflow: hidden;
  background: #e8d6c1;
  container-type: inline-size;
  transition: box-shadow .18s ease;
}

a.cat-photo-circle:hover,
a.cat-photo-circle:focus-visible {
  box-shadow: 0 8px 20px rgba(91, 47, 44, .18);
}

.entry-content .cat-photo-img,
.cat-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  margin: 0;
  border-radius: 0;
}

.cat-subtitle {
  margin: 30px auto 10px;
  width: 70%;
  text-align: center;
}

.cat-photo-blank {
  display: block;
  width: 100%;
  height: 100%;
  background: #e8d6c1;
}

/* Cat name styling using container queries */
.cat-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 60% 12% 0;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  pointer-events: none;
  font-size: 9cqw;
}

.cat-photo--nophoto .cat-name { 
  color: #5b2f2c; 
}

/* Adoption banner badge */
.cat-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #aa634e;
  color: #ffffff;
  font-size: 5cqw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 720px) {
  .cat-photos { 
    width: 90vw; 
    gap: 16px; 
  }
  .cat-photo {
    flex: 0 1 calc(50% - 8px); 
    max-width: none;
  }
  .cat-photo-circle { 
    border-width: 8px; 
  }
  .cat-name { 
    padding: 16% 10% 0; 
  }
}