.gallery-disclosure { position: relative; pointer-events: auto; }
.gallery-toggle {
  position: relative;
  display: block;
  margin: 0;
  border: 0;
  appearance: none;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.gallery-toggle::after {
  content: "";
  position: absolute;
  top: calc(50% - .25em);
  width: .38em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.gallery-toggle[aria-expanded="true"]::after {
  top: calc(50% - .05em);
  transform: rotate(225deg);
}
.home-menu .gallery-toggle {
  padding: 0 calc(var(--menu-padding, 8px) + .8em) 0 var(--menu-padding, 8px);
  line-height: var(--menu-hit, 40px);
  text-transform: none;
  white-space: nowrap;
  text-decoration: underline 1px #a6a6a6;
  text-underline-offset: 5px;
}
.home-menu .gallery-toggle::after { right: var(--menu-padding, 8px); }
.home-menu .gallery-disclosure[data-current="true"] .gallery-toggle { color: #6b6b6b; }
.home-menu .gallery-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) {
  color: black;
  text-decoration-color: currentColor;
}
.gallery-options {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  width: min(10.5rem, calc(100vw - 16px));
  max-height: 65vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5px;
  padding: 5px;
  border: 1px solid #d4d2cb;
  background: #fff;
  color: #171813;
  font: 400 15px/1.25 var(--portfolio-font);
  box-shadow: 0 7px 16px rgb(0 0 0 / 12%);
}
.gallery-options[hidden] { display: none; }
.gallery-options a {
  display: block;
  padding: 9px 10px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
}
.gallery-options a:is(:hover, :focus-visible) { background: #f0efec; color: #171813; }
.gallery-options a:focus-visible { outline-offset: -2px; }
.gallery-options a[aria-current] { text-decoration: underline; text-underline-offset: .2em; background: #efefed; color: #171813; }
.gallery-options .gallery-overview-link { margin-top: 4px; border-top: 1px solid #d4d2cb; }
@media (pointer: coarse) {
  .gallery-options a { min-height: 44px; display: flex; align-items: center; }
}
