.gallery-page .gallery-category { padding-block: 44px 52px; scroll-margin-top: 110px; }
.gallery-category__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.gallery-category__header h2 { margin-bottom: 0; }
.gallery-category__link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--brand-green); text-decoration: none; font-size: .95rem; line-height: 1.5; }
.gallery-category__arrow { display: flex; align-items: center; width: 44px; flex: 0 0 44px; }
.gallery-category__link .construct-line { display: block; width: 24px; height: 10px; background: transparent; transition: width .28s ease, transform .28s ease; }
.gallery-category__link .construct-line::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transform: translateY(-50%); }
.gallery-category__link .construct-line::after { display: block; content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border: 0; border-top: 1px solid currentColor; border-right: 1px solid currentColor; border-radius: 0; background: transparent; transform: translateY(-50%) rotate(45deg); }
.gallery-category__link:hover .construct-line, .gallery-category__link:focus-visible .construct-line { width: 36px; transform: translateX(4px); }
.gallery-category__link:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 4px; }
.gallery-page .pergola-inspirations__track a { flex-basis: calc((100% - 32px) / 3); overflow: hidden; background: #edf0ec; }
.gallery-page .pergola-inspirations__track img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery-page .pergola-inspirations__track a:hover img { transform: scale(1.025); }
@media (max-width: 1020px) { .gallery-page .pergola-inspirations__track a { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) {
  .gallery-page .gallery-category { padding-block: 32px 36px; }
  .gallery-category__header { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .gallery-page .pergola-inspirations__track a { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) { .gallery-page .pergola-inspirations__track img, .gallery-category__link .construct-line { transition: none; } }

/* Native product navigation after the final photograph in each gallery. */
.gallery-page .pergola-inspirations__track .gallery-category__end-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-basis: clamp(180px, 18vw, 260px);
  gap: 18px;
  padding: 24px;
  background: #d5dfd1;
  color: var(--brand-green);
  text-align: center;
  text-decoration: none;
}
.gallery-category__end-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(38,49,42,.3);
  border-radius: 50%;
  color: var(--graphite);
  font: 400 32px/1 "Inter", sans-serif;
}
.gallery-category__end-label {
  max-width: 16ch;
  font: 400 clamp(1.125rem, 1.5vw, 1.375rem)/1.2 "DM Serif Display", serif;
}
.gallery-category__end-label::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 14px auto 0;
  background: currentColor;
  opacity: .4;
}
.gallery-category__end-link:hover .gallery-category__end-arrow { background: rgba(255,255,255,.35); }
@media (max-width: 600px) {
  .gallery-page .pergola-inspirations__track .gallery-category__end-link { flex-basis: 70%; padding: 20px; }
}
