.cor-gallery-container {
  --buttonWidth: 50px;

  background: white;
  position: relative;
}

.cor-gallery {
  border: 2px solid var(--oc-blue-9);
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -webkit-scroll-snap-type: mandatory;
  -ms-scroll-snap-type: mandatory;
  scroll-snap-type: mandatory;
  -webkit-scroll-snap-points-x: repeat(100%);
  -ms-scroll-snap-points-x: repeat(100%);
  scroll-snap-points-x: repeat(100%);
}

.cor-gallery:focus,
.cor-gallery-controls button:focus {
  outline: 4px solid skyBlue;
  outline-offset: -4px;
}

.cor-gallery ul {
  display: flex;
}

.cor-gallery li {
  flex: 0 0 100%;
  display: flex;
}

.cor-gallery img {
  display: block;
  margin: 2rem auto 0;
  max-width: 100%;
  max-height: calc(100% - 4rem);
  min-width: 1px;
  min-height: 1px;
}

.cor-gallery::-webkit-scrollbar {
  height: 0.75rem;
}

.cor-gallery::-webkit-scrollbar-track {
  background-color: #ddd;
}

.cor-gallery::-webkit-scrollbar-thumb {
  background-color: var(--oc-blue-8);
}

#instructions {
  display: none;
  text-align: center;
  margin-top: 0.5rem;
  padding: var(--space, 1rem);
}

.cor-gallery:hover + #instructions,
.cor-gallery:focus + #instructions,
.touch #instructions {
  display: block;
}

.cor-gallery figure,
noscript {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  height: 50vh;
}

noscript {
  padding: 0;
}

.cor-gallery figcaption {
  height: 2rem;
  line-height: 2rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
}

@keyframes flash {
  to {
    opacity: 0;
  }
}

img.dots {
  max-width: 5rem;
  max-height: 5rem;
  padding: 0;
  animation: flash 0.5s linear infinite;
}

.no-js .dots {
  display: none;
}

.cor-gallery-controls li {
  display: inline;
}

.cor-gallery-controls button {
  background: white;
  position: absolute;
  bottom: 0;
  top: 0;
  width: var(--buttonWidth);
  border: 0;
  padding: 0.5rem;
  background: var(--oc-blue-8);
  min-width: auto;
}

.cor-gallery-controls button[disabled][disabled] {
  background: white;
}

.cor-gallery-controls button:hover {
  cursor: pointer;
}

.cor-gallery-controls svg {
  width: 30px;
  fill: #fff;
  stroke: white;
}

.previous {
  left: 0;
}

.next {
  left: calc(100% - var(--buttonWidth));
}

blockquote {
  margin: 0;
}

blockquote p {
  padding: 15px;
  background: #eee;
  border-radius: 5px;
}

blockquote p::before {
  content: "\201C";
}

blockquote p::after {
  content: "\201D";
}
