.tn-photo-frame { position: relative; }
.tn-photo-frame .tn-photo-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.tn-photo-track::-webkit-scrollbar { display: none; }
.tn-photo-slide { display: block; width: 100%; height: 100%; }
.tn-photo-track > .tn-photo-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.tn-photo-controls { position: absolute; inset: 0; pointer-events: none; }
.tn-photo-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.tn-photo-controls button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(17 17 17 / 85%);
  font: 600 23px/1 system-ui, sans-serif;
}
.tn-photo-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
.tn-photo-prev { left: 0; }
.tn-photo-next { right: 0; }
.tn-photo-counter {
  position: absolute;
  inset: auto 50% 8px auto;
  transform: translateX(50%);
  padding: 3px 8px;
  border-radius: 12px;
  background: rgb(17 17 17 / 85%);
  color: #fff;
  font: 600 11px/1.3 system-ui, sans-serif;
  white-space: nowrap;
}
.tn-photo-track:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tn-photo-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.tn-photo-thumbnails:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tn-photo-thumbnails button {
  width: 52px;
  height: 52px;
  padding: 2px;
  border: 1px solid #b8b2a2;
  background: #fdfbf4;
  cursor: pointer;
}

.tn-photo-thumbnails button[aria-current="true"] { border: 2px solid #294333; padding: 1px; }
.tn-photo-thumbnails button:focus-visible { outline: 2px solid #294333; outline-offset: 2px; }
.tn-photo-thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; }
