.gallerys-page {
  --gallerys-ink: #321b16;
  --gallerys-accent: #751414;
  --gallerys-red: #ed1c24;
  --gallerys-paper: #fffaf4;
  --gallerys-sand: #ead8c1;
  --gallerys-muted: #745f57;
  background: radial-gradient(circle at 8% 4%, rgba(237, 28, 36, 0.08), transparent 28rem), linear-gradient(180deg, #fff 0, var(--gallerys-paper) 36%, #fff 100%);
  color: var(--gallerys-ink);
  padding: 5rem 0 6rem; }

.gallerys-page [hidden] {
  display: none !important; }

.gallerys-page__inner {
  position: relative; }

.gallerys-page__header {
  margin: 0 0 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gallerys-sand);
  text-align: left; }

.gallerys-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gallerys-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase; }

.gallerys-page__eyebrow::before,
.gallerys-page__eyebrow::after {
  width: 32px;
  height: 1px;
  background: currentcolor;
  content: ""; }

.gallerys-page__title {
  margin: 0;
  color: var(--gallerys-red);
  font-family: inherit;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase; }

.gallerys-page__lead {
  max-width: 980px;
  margin: 0.85rem 0 0;
  color: var(--gallerys-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  text-wrap: pretty; }

.gallerys-page__back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 0.35rem;
  color: var(--gallerys-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none; }

.gallerys-page__back:hover {
  color: var(--gallerys-red); }

.gallerys-page__parent-grid,
.gallerys-page__child-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; }

.gallerys-page__section + .gallerys-page__section {
  margin-top: 6rem; }

.gallerys-page__section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gallerys-sand); }

.gallerys-page__section-index {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gallerys-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em; }

.gallerys-page__section-title {
  margin: 0;
  color: var(--gallerys-accent);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  scroll-margin-top: 7rem;
  text-wrap: balance; }

.gallerys-page__section-copy {
  max-width: 420px;
  margin: 0;
  color: var(--gallerys-muted);
  line-height: 1.65;
  text-align: right; }

.gallerys-page__parent-card {
  display: block;
  min-width: 0;
  color: var(--gallerys-red);
  font: inherit;
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
  transition: color 180ms ease; }

.gallerys-page__parent-card:focus-visible,
.gallerys-page__child-card:focus-visible,
.gallerys-page__pagination .paginationjs-page a:focus-visible,
.gallerys-page__pagination .paginationjs-prev a:focus-visible,
.gallerys-page__pagination .paginationjs-next a:focus-visible {
  outline: 3px solid var(--gallerys-red);
  outline-offset: 3px; }

.gallerys-page__parent-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: initial;
  object-fit: initial;
  transition: opacity 180ms ease; }

.gallerys-page__parent-card:hover .gallerys-page__parent-image {
  opacity: 0.88; }

.gallerys-page__parent-name {
  display: block;
  margin-top: 0.55rem;
  color: var(--gallerys-red);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35; }

.gallerys-page__parent-card:hover .gallerys-page__parent-name {
  text-decoration: underline;
  text-underline-offset: 0.2em; }

.gallerys-page__child-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  color: var(--gallerys-ink);
  text-decoration: none;
  touch-action: manipulation;
  transition: color 180ms ease; }

.gallerys-page__child-card:hover {
  color: var(--gallerys-ink); }

.gallerys-page__child-image-wrap {
  overflow: hidden;
  aspect-ratio: 2 / 1; }

.gallerys-page__child-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease; }

.gallerys-page__child-card:hover .gallerys-page__child-image {
  opacity: 0.88; }

.gallerys-page__child-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.55rem 0 0; }

.gallerys-page__child-name {
  margin: 0;
  color: var(--gallerys-red);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35; }

.gallerys-page__child-description {
  display: -webkit-box;
  margin: 0.3rem 0 0;
  overflow: hidden;
  color: var(--gallerys-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; }

.gallerys-page__pagination {
  min-height: 44px;
  margin-top: 2.25rem; }

.gallerys-page__pagination .paginationjs {
  display: flex;
  justify-content: center; }

.gallerys-page__pagination .paginationjs-pages ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none; }

.gallerys-page__pagination .paginationjs-page,
.gallerys-page__pagination .paginationjs-prev,
.gallerys-page__pagination .paginationjs-next,
.gallerys-page__pagination .paginationjs-ellipsis {
  margin: 0; }

.gallerys-page__pagination .paginationjs-page a,
.gallerys-page__pagination .paginationjs-prev a,
.gallerys-page__pagination .paginationjs-next a,
.gallerys-page__pagination .paginationjs-ellipsis a {
  display: grid;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  place-items: center;
  border: 1px solid var(--gallerys-sand);
  border-radius: 0;
  background: #fff;
  color: var(--gallerys-accent);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }

.gallerys-page__pagination .paginationjs-page a:hover,
.gallerys-page__pagination .paginationjs-prev a:hover,
.gallerys-page__pagination .paginationjs-next a:hover,
.gallerys-page__pagination .paginationjs-page.active a {
  border-color: var(--gallerys-accent);
  background: var(--gallerys-accent);
  color: #fff; }

.gallerys-page__pagination .paginationjs-prev.disabled a,
.gallerys-page__pagination .paginationjs-next.disabled a {
  cursor: not-allowed;
  opacity: 0.42; }

@media (max-width: 991px) {
  .gallerys-page {
    padding: 3.5rem 0 4.5rem; }
  .gallerys-page__header {
    margin-bottom: 2rem; }
  .gallerys-page__parent-grid,
  .gallerys-page__child-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallerys-page__section + .gallerys-page__section {
    margin-top: 4.5rem; } }

@media (max-width: 640px) {
  .gallerys-page {
    padding: 2.75rem 0 3.5rem; }
  .gallerys-page__header {
    margin-bottom: 1.75rem; }
  .gallerys-page__lead {
    font-size: 0.92rem;
    line-height: 1.65; }
  .gallerys-page__section-heading {
    display: block; }
  .gallerys-page__section-copy {
    margin-top: 0.85rem;
    text-align: left; }
  .gallerys-page__parent-grid,
  .gallerys-page__child-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem; }
  .gallerys-page__parent-name {
    font-size: 0.8rem; }
  .gallerys-page__child-body {
    padding: 0.55rem 0 0; }
  .gallerys-page__child-description {
    text-align: left; } }

@media (max-width: 767px) {
  .gallerys-page__parent-card {
    display: flex;
    flex-direction: column; }
  .gallerys-page__parent-name {
    order: -1;
    margin-top: 0;
    margin-bottom: 0.55rem; }
  .gallerys-page__child-body {
    order: -1;
    padding: 0 0 0.55rem; } }
