/* Mounted photo collections: the existing sign keyline and plaque rivets. */
.animal-gallery {
  --gallery-keyline-inset: 6px;
  --gallery-keyline-width: 1px;
  --gallery-ornament-height: 28px;
  --gallery-surface: var(--cream);
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid var(--navy);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--gold);
}
.animal-gallery::before {
  content: "";
  position: absolute;
  inset: var(--gallery-keyline-inset);
  border: var(--gallery-keyline-width) solid var(--gold);
  border-radius: var(--r-sm);
  pointer-events: none;
}
.animal-gallery::after {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--gold) 42%, transparent 52%),
    radial-gradient(circle, var(--gold) 42%, transparent 52%),
    radial-gradient(circle, var(--gold) 42%, transparent 52%),
    radial-gradient(circle, var(--gold) 42%, transparent 52%);
  background-size: 6px 6px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
}
.animal-gallery .animal-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  grid-template-areas: "a b" "c d";
  gap: var(--s-4);
  align-items: center;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
}
.animal-gallery .animal-cluster--five { grid-template-areas: "a b" "c d" "e e"; }
.animal-gallery .animal-cluster__frame {
  min-width: 0;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: var(--keyline-w);
  border: 2px solid var(--navy);
  border-radius: var(--r-md);
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px var(--gold), var(--shadow-sm);
  overflow: hidden;
}
.animal-gallery .animal-cluster__frame--a { grid-area: a; }
.animal-gallery .animal-cluster__frame--b { grid-area: b; }
.animal-gallery .animal-cluster__frame--c { grid-area: c; }
.animal-gallery .animal-cluster__frame--d { grid-area: d; }
.animal-gallery .animal-cluster__frame--e { grid-area: e; aspect-ratio: 2; }
.animal-gallery .animal-cluster__frame--a,
.animal-gallery .animal-cluster__frame--b { border-radius: 50% 50% var(--r-md) var(--r-md); }
.animal-gallery .animal-cluster__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.animal-gallery .animal-cluster__frame--paint-horse img { object-position: left center; }
.animal-gallery .animal-cluster__frame--paint-horses img { object-position: 54% center; }
.animal-gallery .animal-cluster__frame--guinea-pig img { object-position: center bottom; }
.animal-gallery .animal-cluster--equine .animal-cluster__frame--c,
.animal-gallery .animal-cluster--equine .animal-cluster__frame--d { aspect-ratio: 3 / 4; }
.animal-gallery .animal-cluster--equine .animal-cluster__frame--e { aspect-ratio: 3 / 2; }
.animal-gallery .animal-cluster__frame--pens img { object-position: 92% center; }
.animal-gallery .animal-cluster__frame--stall img { object-position: 42% center; }
.animal-gallery .animal-cluster__frame--goat img { object-position: center 18%; }
.animal-gallery .animal-cluster__frame--rabbit img { object-position: center 20%; }
.animal-gallery .animal-cluster__frame--bay-horse img,
.animal-gallery .animal-cluster__frame--gray-horse img { object-position: 56% top; }
.animal-gallery--mini { max-width: 340px; padding: var(--s-4); margin-bottom: var(--s-5); }
@media (min-width: 1120px) {
  .animal-gallery:not(.animal-gallery--mini) { padding: var(--s-6); }
  .animal-gallery:not(.animal-gallery--mini) .animal-cluster { gap: var(--s-5); }
}
@media (max-width: 1119px) {
  .split--gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Match only the crest silhouette to its surface; the rest stays transparent. */
.band--deep .animal-gallery { --gallery-surface: var(--cream-deep); }
.band--navy .animal-gallery,
.sign-panel .animal-gallery { --gallery-surface: var(--navy); }
.info-card .animal-gallery { --gallery-surface: var(--white); }

/* Both stroke centerlines share the inset rule's half-pixel position. */
.animal-gallery__ornament {
  position: absolute;
  z-index: 1;
  top: calc(var(--gallery-keyline-inset) + var(--gallery-keyline-width) / 2 - var(--gallery-ornament-height) / 2);
  left: 50%;
  width: min(calc(100% - 64px), 208px);
  height: var(--gallery-ornament-height);
  margin: 0;
  transform: translateX(-50%);
  background: transparent;
  pointer-events: none;
}
.animal-gallery__ornament::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The filled diamond covers intersecting frame rules, including its holes. */
  background: var(--gallery-surface);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 48'%3E%3Cpath d='M170 .1L198 24L170 47.9L142 24Z'/%3E%3C/svg%3E") center / auto 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 48'%3E%3Cpath d='M170 .1L198 24L170 47.9L142 24Z'/%3E%3C/svg%3E") center / auto 100% no-repeat;
}
.animal-gallery__ornament::before {
  z-index: 1;
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='48' viewBox='0 0 340 48'%3E%3Cdefs%3E%3ClinearGradient id='fr' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23000'/%3E%3Cstop offset='.62' stop-color='%23000'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='fl' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23000'/%3E%3Cstop offset='.62' stop-color='%23000'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='204' y='23.1' width='134' height='1.8' fill='url(%23fr)'/%3E%3Crect x='2' y='23.1' width='134' height='1.8' fill='url(%23fl)'/%3E%3Crect x='244' y='14.6' width='76' height='1' fill='url(%23fr)'/%3E%3Crect x='20' y='14.6' width='76' height='1' fill='url(%23fl)'/%3E%3Crect x='244' y='32.4' width='76' height='1' fill='url(%23fr)'/%3E%3Crect x='20' y='32.4' width='76' height='1' fill='url(%23fl)'/%3E%3Ccircle cx='228' cy='24' r='5.4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Ccircle cx='228' cy='24' r='2' fill='%23000'/%3E%3Cpath d='M262 17.5L269.5 24L262 30.5L254.5 24Z' fill='none' stroke='%23000' stroke-width='1.15'/%3E%3Ccircle cx='288' cy='24' r='3' fill='%23000'/%3E%3Ccircle cx='112' cy='24' r='5.4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Ccircle cx='112' cy='24' r='2' fill='%23000'/%3E%3Cpath d='M78 17.5L85.5 24L78 30.5L70.5 24Z' fill='none' stroke='%23000' stroke-width='1.15'/%3E%3Ccircle cx='52' cy='24' r='3' fill='%23000'/%3E%3Crect x='307.35' y='17.5' width='1.3' height='13' fill='%23000'/%3E%3Crect x='313.5' y='20' width='1' height='8' fill='%23000' fill-opacity='.8'/%3E%3Ccircle cx='326' cy='24' r='1.5' fill='%23000' fill-opacity='.55'/%3E%3Crect x='31.35' y='17.5' width='1.3' height='13' fill='%23000'/%3E%3Crect x='25.5' y='20' width='1' height='8' fill='%23000' fill-opacity='.8'/%3E%3Ccircle cx='14' cy='24' r='1.5' fill='%23000' fill-opacity='.55'/%3E%3Cpath d='M170 1.5L197 24L170 46.5L143 24Z' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M170 6L192 24L170 42L148 24Z' fill='none' stroke='%23000' stroke-width='.9'/%3E%3Cpath fill-rule='evenodd' d='M170 11L185 24L170 37L155 24ZM170 19.6A4.4 4.4 0 1 0 170 28.4A4.4 4.4 0 1 0 170 19.6Z' fill='%23000'/%3E%3Ccircle cx='170' cy='1.5' r='1.3' fill='%23000'/%3E%3Ccircle cx='170' cy='46.5' r='1.3' fill='%23000'/%3E%3C/svg%3E") center / auto 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='48' viewBox='0 0 340 48'%3E%3Cdefs%3E%3ClinearGradient id='fr' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23000'/%3E%3Cstop offset='.62' stop-color='%23000'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='fl' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23000'/%3E%3Cstop offset='.62' stop-color='%23000'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='204' y='23.1' width='134' height='1.8' fill='url(%23fr)'/%3E%3Crect x='2' y='23.1' width='134' height='1.8' fill='url(%23fl)'/%3E%3Crect x='244' y='14.6' width='76' height='1' fill='url(%23fr)'/%3E%3Crect x='20' y='14.6' width='76' height='1' fill='url(%23fl)'/%3E%3Crect x='244' y='32.4' width='76' height='1' fill='url(%23fr)'/%3E%3Crect x='20' y='32.4' width='76' height='1' fill='url(%23fl)'/%3E%3Ccircle cx='228' cy='24' r='5.4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Ccircle cx='228' cy='24' r='2' fill='%23000'/%3E%3Cpath d='M262 17.5L269.5 24L262 30.5L254.5 24Z' fill='none' stroke='%23000' stroke-width='1.15'/%3E%3Ccircle cx='288' cy='24' r='3' fill='%23000'/%3E%3Ccircle cx='112' cy='24' r='5.4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Ccircle cx='112' cy='24' r='2' fill='%23000'/%3E%3Cpath d='M78 17.5L85.5 24L78 30.5L70.5 24Z' fill='none' stroke='%23000' stroke-width='1.15'/%3E%3Ccircle cx='52' cy='24' r='3' fill='%23000'/%3E%3Crect x='307.35' y='17.5' width='1.3' height='13' fill='%23000'/%3E%3Crect x='313.5' y='20' width='1' height='8' fill='%23000' fill-opacity='.8'/%3E%3Ccircle cx='326' cy='24' r='1.5' fill='%23000' fill-opacity='.55'/%3E%3Crect x='31.35' y='17.5' width='1.3' height='13' fill='%23000'/%3E%3Crect x='25.5' y='20' width='1' height='8' fill='%23000' fill-opacity='.8'/%3E%3Ccircle cx='14' cy='24' r='1.5' fill='%23000' fill-opacity='.55'/%3E%3Cpath d='M170 1.5L197 24L170 46.5L143 24Z' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M170 6L192 24L170 42L148 24Z' fill='none' stroke='%23000' stroke-width='.9'/%3E%3Cpath fill-rule='evenodd' d='M170 11L185 24L170 37L155 24ZM170 19.6A4.4 4.4 0 1 0 170 28.4A4.4 4.4 0 1 0 170 19.6Z' fill='%23000'/%3E%3Ccircle cx='170' cy='1.5' r='1.3' fill='%23000'/%3E%3Ccircle cx='170' cy='46.5' r='1.3' fill='%23000'/%3E%3C/svg%3E") center / auto 100% no-repeat;
}
.animal-gallery--mini .animal-gallery__ornament {
  --gallery-ornament-height: 20px;
  width: min(calc(100% - 48px), 152px);

}
