.inri-cremation-gallery {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  color: #123d34;
  background: #fffcf6;
  border: 1px solid #c6ac7860;
  border-radius: 12px;
}

.inri-cremation-gallery__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block-end: 20px;
}

.inri-cremation-gallery__header h2 {
  flex: 1 1 440px;
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

.inri-cremation-gallery__arrows:not([hidden]),
.inri-cremation-gallery__markers:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inri-cremation-gallery__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  touch-action: manipulation;
  background: #082e26;
  border-radius: 8px;
}

.inri-cremation-gallery[data-ready] .inri-cremation-gallery__track {
  scrollbar-width: none;
}

.inri-cremation-gallery[data-ready] .inri-cremation-gallery__track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .inri-cremation-gallery__track {
    scroll-behavior: smooth;
  }
}

.inri-cremation-gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  scroll-snap-align: center;
}

.inri-cremation-gallery__slide picture,
.inri-cremation-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.inri-cremation-gallery__slide img {
  object-fit: contain;
}

.inri-cremation-gallery button {
  display: inline-grid;
  place-items: center;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.inri-cremation-gallery__arrows button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #8b7344;
  border-radius: 50%;
  font: 23px/1 Arial, sans-serif;
}

.inri-cremation-gallery__arrows button:hover {
  color: #fffcf6;
  background: #123d34;
}

.inri-cremation-gallery__markers:not([hidden]) {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-block-start: 12px;
}

.inri-cremation-gallery__markers button {
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
}

.inri-cremation-gallery__markers button::before {
  width: 8px;
  height: 8px;
  border: 1px solid #755d35;
  border-radius: 999px;
  background: #decba7;
  content: "";
}

.inri-cremation-gallery__markers button[aria-current="true"]::before {
  width: 20px;
  border-color: #123d34;
  background: #123d34;
}

.inri-cremation-gallery__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.inri-cremation-gallery button:focus-visible,
.inri-cremation-gallery__track:focus-visible {
  outline: 2px solid #755d35;
  outline-offset: 3px;
}
