
:root {
  --green: #45a64a;
  --ink: #1f2a24;
  --muted: #66736b;
  --line: #e5e9e6;
  --soft: #f5f7f5;
  --white: #ffffff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header__inner,
.page,
.profile {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}
.return-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}
.hero { padding: 64px 0 32px; }
.hero h1,
.profile h1 {
  margin: 0 0 12px;
  line-height: 1.05;
  font-size: clamp(38px, 6vw, 68px);
}
.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.archive-note {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}
.search {
  flex: 1 1 300px;
  min-height: 46px;
  border: 1px solid #ccd4ce;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
}
.filter {
  border: 1px solid #ccd4ce;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.filter.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.count {
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 70px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.card[hidden] { display: none !important; }
.card__image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__body { padding: 18px; }
.card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.card h2 {
  margin: 0;
  font-size: 26px;
}
.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.card__meta {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.card__link {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}
.profile { padding: 38px 0 80px; }
.back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
}
.profile__head { margin-bottom: 26px; }
.profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.profile__badges span {
  background: var(--soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 42px;
}
.gallery img {
  width: 100%;
  display: block;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}
.gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
}
.profile__content {
  max-width: 800px;
  font-size: 17px;
}
.profile__content p:first-child { margin-top: 0; }
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13px;
}
.footer__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .site-header__inner, .page, .profile, .footer__inner {
    width: min(100% - 28px, var(--max));
  }
  .site-header__inner { min-height: 64px; }
  .return-link { font-size: 12px; }
  .hero { padding-top: 44px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
}


/* GAPSA Legacy Dogs image lightbox */
.gallery img {
  cursor: zoom-in;
}

.legacy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.88);
}

.legacy-lightbox.is-open {
  display: flex;
}

.legacy-lightbox__image {
  display: block;
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.legacy-lightbox__close,
.legacy-lightbox__prev,
.legacy-lightbox__next {
  position: fixed;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a24;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.legacy-lightbox__close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.legacy-lightbox__prev,
.legacy-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 56px;
  border-radius: 12px;
  font-size: 30px;
}

.legacy-lightbox__prev {
  left: 18px;
}

.legacy-lightbox__next {
  right: 18px;
}

body.legacy-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .legacy-lightbox {
    padding: 16px;
  }

  .legacy-lightbox__image {
    max-width: 96vw;
    max-height: 84vh;
  }

  .legacy-lightbox__prev,
  .legacy-lightbox__next {
    width: 40px;
    height: 50px;
  }

  .legacy-lightbox__prev {
    left: 8px;
  }

  .legacy-lightbox__next {
    right: 8px;
  }

  .legacy-lightbox__close {
    top: 10px;
    right: 10px;
  }
}
