.specimen-controls{
  position: sticky;
  top: var(--sp-sticky-top, 0px);
  z-index: 9999;
  isolation: isolate;
  background: white;
  padding: 3px 0;
}

.specimen-zoom{
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}

.specimen-wrap{
  --sp-cols: 5;
  --sp-gap: 12px;
}

.specimen-grid{
  display: grid;
  grid-template-columns: repeat(var(--sp-cols), minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 0;
  grid-column: 1 / -1;
}

.specimen-wrap .h2{
  grid-column: 1 / -1;
}

.specimen-wrap h2.h2{
  margin: -5px 0 -5px 4px;
  padding: 0;
  
}

.specimen-grid-item{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.specimen-grid-item img,
.specimen-grid-item video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.specimen-strip{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 16px 0 32px;
}

.specimen-strip-track{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.specimen-strip-item{
  flex: 0 0 auto;
  width: min(320px, 70vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.04);
}

.specimen-strip-item img,
.specimen-strip-item video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.specimen-strip-prev,
.specimen-strip-next{
  cursor: pointer;
  user-select: none;
}

@media (max-width: 700px){
  .specimen-wrap{
    --sp-cols: 2;
  }
  .specimen-grid-item{
    aspect-ratio: 1 / 1;
  }
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.specimen-grid-item{
  position: relative;
}

.specimen-grid[data-video-ui="minimal"] video{
  cursor: pointer;
}

.specimen-mute{
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolygon%20points%3D'11%205%206%209%202%209%202%2015%206%2015%2011%2019%2011%205'/%3E%3Cline%20x1%3D'23'%20y1%3D'9'%20x2%3D'17'%20y2%3D'15'/%3E%3Cline%20x1%3D'17'%20y1%3D'9'%20x2%3D'23'%20y2%3D'15'/%3E%3C/svg%3E");
}

.specimen-grid-item:hover .specimen-mute,
.specimen-grid-item.specimen-show-controls .specimen-mute{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine){
  .specimen-grid-item:focus-within .specimen-mute{
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .specimen-mute:focus-visible{
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 2px;
  }
}

.specimen-mute[data-muted="false"]{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolygon%20points%3D'11%205%206%209%202%209%202%2015%206%2015%2011%2019%2011%205'/%3E%3Cpath%20d%3D'M15.54%208.46a5%205%200%200%201%200%207.07'/%3E%3Cpath%20d%3D'M19.07%204.93a10%2010%200%200%201%200%2014.14'/%3E%3C/svg%3E");
}
