:root {
  --bg: #fffaf2;
  --card: #ffffff;
  --text: #1b1b1b;
  --muted: #737373;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  /* ✅ bumped base font size slightly for readability */
  line-height: 1.6;
  /* smoother vertical rhythm */
}

/* container + full-bleed band */
.container {
  width: min(1100px, 92vw);
  margin: 20px auto;
}

/* Make gallery sections match container width on desktop */
.gallery-stage {
  width: min(1100px, 92vw);
  margin: 32px auto;
}

.gallery-stage h2 {
  color: #555;
  font-weight: 600;
  font-style: italic;
  background: rgba(0, 0, 0, 0.04); /* very light gray tint */
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

.fullbleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* gallery grid on all screens */
.gallery,
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

@media (min-width: 700px) {
  .gallery,
  .gallery-grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (min-width: 1100px) {
  .gallery,
  .gallery-grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 1100px) {
  .gallery {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* media sizing */
.media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* hover polish (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 10px;
}

/* new addition — styles only the ✕ button inside */
.lightbox #lb-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.caption {
  padding: 10px 12px;
  font-size: 15px;
  color: #333;
  border-top: 1px solid #f2f2f2;
}

/* Responsive 16:9 video wrapper for YouTube embeds */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* modern browsers */
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

/* Fallback for older browsers that lack aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .video-wrapper {
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 */
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

video.media {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Adoption banner */
.adopt-banner {
  background: #fff3cd;
  border: 1px solid #ffe8a3;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 1rem;
}

/* Adoption section */
.adopt-section {
  line-height: 1.6;
  font-size: 1rem;
}

.adopt-section h2 {
  margin-top: 8px;
  font-size: 1.4rem;
}

.adopt-section h3 {
  margin-top: 0.6em;
  font-size: 1.1rem;
}

/* ✅ Single-column grid (Option A) */
.adopt-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

/* Keep the adoption cards clean */
#adopt-availability strong {
  display: block;
  margin-top: 0.6em;
}

#adopt-availability br + strong {
  margin-top: 0.8em;
}

#adopt-availability p,
#adopt-availability small {
  font-size: 1rem;
}

/* Email button styling */
.btn {
  display: inline-block;
  background: #ffb347;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn:hover {
  background: #ffa630;
  transform: translateY(-1px);
}

/* Gallery heading alignment */
#gallery-intro {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

#gallery-intro h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

#gallery-intro p {
  font-size: 1rem;
  color: var(--muted, #666);
}

/* Optional: minor spacing fix for narrow screens */
section.container {
  padding: 0 4vw;
}

/* Prevent rare horizontal scroll from full-bleed bands */
html,
body {
  overflow-x: hidden;
}

/* Site title */
:root {
  --accent: #e07a1f; /* warm orange-gold tone */
}

.btn {
  background: var(--accent);
}

header h1 {
  font-size: 2.2rem; /* adjust to taste */
  color: var(--accent);
  font-weight: 750; /* bold, but not overwhelming */
  font-style: italic; /* makes it italic */
  letter-spacing: 0.5px; /* subtle spacing for a clean look */
  margin-bottom: 0.3rem;
}

/* Intro section right below the title */
.intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.download-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn {
  display: inline-block;
  padding: 10px 16px;
  background-color: #f5a623;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.download-btn:hover {
  background-color: #d98d1b;
}

.info-box {
  border-left: 4px solid #63aaff; /* soft blue accent */
  background: #f5f9ff; /* very light blue background */
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-box h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #2e6bcc; /* slightly darker blue */
}

#gps-note-box #gps-note {
  font-style: italic;
}

.info-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  margin: 18px auto;
}

.muted {
  color: var(--muted);
}

.table-wrap.compact {
  max-width: 720px; /* prevents full-page width */
  margin: 16px auto 22px; /* centers it */
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd; /* outer border */
  border-radius: 10px;
  overflow: hidden; /* keeps rounded corners clean */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e0e0e0; /* cell borders */
}

.compare-table th {
  background: #f7f7f7;
  font-weight: 600;
}

.compare-table td:first-child {
  font-weight: 500;
  width: 40%;
}

.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .table-wrap.compact {
    max-width: 100%;
  }

  .compare-table th,
  .compare-table td {
    font-size: 14px;
    padding: 10px 12px;
  }
}

.centered {
  text-align: center;
}
