.pm-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eeece8;
  isolation: isolate;
}
.pm-viewport,
.pm-slide,
.pm-detail-link {
  position: absolute;
  inset: 0;
  display: block;
}
.pm-slide[hidden],
.pm-error[hidden] { display: none !important; }
.pm-media img.pm-image,
.pm-media video.pm-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  border: 0;
}
.pm-media--static > .pm-image {
  position: absolute;
  inset: 0;
}
.pm-viewport { touch-action: pan-y; }
.pm-toolbar {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 28px;
  background: rgb(250 249 247 / 94%);
  color: #28252a;
  box-shadow: 0 2px 14px rgb(0 0 0 / 9%);
}
.pm-toolbar button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.pm-toolbar button:hover { background: #e3ded8; }
.pm-toolbar button:focus-visible,
.pm-media:focus-visible,
.pm-detail-link:focus-visible {
  outline: 2px solid #57402c;
  outline-offset: -3px;
}
.pm-arrow { font-size: 21px !important; }
.pm-dots { display: flex; align-items: center; }
.pm-toolbar .pm-dot { width: 28px; min-width: 28px; }
.pm-dot span {
  width: 6px;
  height: 6px;
  border: 1px solid #66615c;
  border-radius: 50%;
  background: transparent;
}
.pm-dot[aria-pressed="true"] span { background: #28252a; border-color: #28252a; }
.pm-toolbar .pm-rotation { border-left: 1px solid #d7d2cb; border-radius: 0 24px 24px 0; }
.pm-error {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80%, 380px);
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 16px;
  border-radius: 4px;
  background: rgb(250 249 247 / 96%);
  color: #28252a;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.pm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .pm-toolbar { top: 8px; right: 8px; padding: 2px; }
  .pm-toolbar button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
}
