.v189-detail-gallery {
  --paper: #f4f4ef;
  --yellow: #ffe12c;
  --red: #d70c23;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding: 28px 0 12px;
}

.v189-detail-gallery .certificate-gallery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.v189-detail-gallery h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.v189-detail-gallery .certificate-gallery__controls { display: flex; gap: 8px; }
.v189-detail-gallery .certificate-gallery__button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font: 700 20px/1 Arial, sans-serif;
  cursor: pointer;
}
.v189-detail-gallery .certificate-gallery__button:hover,
.v189-detail-gallery .certificate-gallery__button:focus-visible {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #080808;
}

.v189-detail-gallery .certificate-gallery__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding: 4px 0 14px;
}
.v189-detail-gallery .certificate-gallery__track::-webkit-scrollbar { display: none; }
.v189-detail-gallery .certificate-gallery__track:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.v189-detail-gallery .certificate-gallery__item {
  flex: 0 0 clamp(165px, 19vw, 230px);
  margin: 0;
  scroll-snap-align: start;
}
.v189-detail-gallery .certificate-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1087 / 1536;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
}
.v189-detail-gallery .certificate-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 16px;
}
.v189-detail-gallery .certificate-gallery__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: #777;
  cursor: pointer;
}
.v189-detail-gallery .certificate-gallery__dot.is-active { width: 25px; background: var(--yellow); }
.v189-detail-gallery .certificate-gallery__dot:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 760px) {
  .v189-detail-gallery .certificate-gallery__head { align-items: flex-start; }
  .v189-detail-gallery h2 { font-size: clamp(1.25rem, 5vw, 1.8rem); }
  .v189-detail-gallery .certificate-gallery__button { width: 36px; height: 36px; }
  .v189-detail-gallery .certificate-gallery__track { gap: 12px; }
  .v189-detail-gallery .certificate-gallery__item { flex-basis: clamp(150px, 46vw, 185px); }
}
