/* Separate controls above the card link, aligned with the photo. */
.portfolio-card-gallery {
  position:absolute;
  inset:0 0 auto;
  height:var(--portfolio-gallery-height,auto);
  aspect-ratio:var(--portfolio-gallery-ratio,1.625);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-inline:12px;
  pointer-events:none;
  z-index:2;
}
html:not([data-portfolio-gallery-ready]) .portfolio-card-gallery {display:none;}
.portfolio-card-gallery-arrow {
  display:grid;
  place-items:center;
  flex:none;
  width:36px;
  height:36px;
  padding:0;
  border:0;
  border-radius:50%;
  color:#151515;
  background:#fff;
  box-shadow:0 1px 5px rgba(0,0,0,.12);
  cursor:pointer;
  pointer-events:auto;
}
.portfolio-card-gallery-arrow:focus-visible {
  outline:2px solid #006c75;
  outline-offset:2px;
}
.portfolio-card-gallery[aria-busy="true"] .portfolio-card-gallery-arrow {
  cursor:wait;
}
.portfolio-card-gallery-status {
  position:absolute;
  bottom:12px;
  left:12px;
  right:12px;
  text-align:center;
  font-size:12px;
  color:#fff;
  background:rgba(0,0,0,.65);
  padding:6px;
}
.portfolio-card-gallery-status:empty {display:none;}
@media (hover:hover) and (pointer:fine) {
  .portfolio-card-gallery-arrow {
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
  }
  [data-portfolio-gallery]:hover .portfolio-card-gallery-arrow,
  .portfolio-card-gallery-arrow:focus-visible {
    opacity:1;
    pointer-events:auto;
  }
}
@media (pointer:coarse) {
  .portfolio-card-gallery-arrow {width:44px;height:44px;}
}
@media (prefers-reduced-motion:reduce) {
  .portfolio-card-gallery-arrow {transition:none;}
}
