.catalogue-gallery { margin: 0 0 1rem; }
.catalogue-gallery figure { margin: 0; }

.catalogue-gallery-frame {
  position: relative;
  clear: both;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sage);
}

.catalogue-gallery-frame.has-photo {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  max-block-size: 20rem;
}

.catalogue-gallery-frame.is-swipeable {
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

.catalogue-gallery-frame.is-swipeable:active { cursor: grabbing; }

.catalogue-gallery-frame .detail-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
}

.catalogue-gallery-frame .catalogue-wine-photo {
  object-fit: contain;
  background: var(--paper);
}

.catalogue-gallery-placeholder {
  display: grid;
  place-items: center;
  min-height: 7rem;
}

.catalogue-gallery-frame.has-photo .catalogue-gallery-placeholder { height: 100%; }

.catalogue-gallery-arrow {
  position: absolute;
  inset-block-start: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgb(35 42 36 / .86);
}

.catalogue-gallery-arrow[data-gallery-previous] { inset-inline-start: .65rem; }
.catalogue-gallery-arrow[data-gallery-next] { inset-inline-end: .65rem; }

.catalogue-gallery-arrow::before {
  content: "";
  inline-size: .5rem;
  block-size: .5rem;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  rotate: 45deg;
}

.catalogue-gallery-arrow[data-gallery-previous]::before { rotate: -135deg; }
.catalogue-gallery-arrow[aria-disabled="true"] { opacity: .45; cursor: default; }
.catalogue-gallery-arrow:focus-visible { outline-color: var(--white); outline-offset: -5px; }

.catalogue-gallery-navigation {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  margin-top: .15rem;
}

.catalogue-gallery-dots { display: flex; }

.catalogue-gallery-dots button {
  display: grid;
  place-items: center;
  min-inline-size: 1.75rem;
  min-block-size: 1.75rem;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.catalogue-gallery-dots button::before {
  content: "";
  inline-size: .45rem;
  block-size: .45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.catalogue-gallery-dots button[aria-current="true"]::before {
  inline-size: .65rem;
  block-size: .65rem;
  border-color: var(--plum);
  background: var(--plum);
}

.catalogue-gallery-count { position: absolute; inset-inline-end: 0; font-variant-numeric: tabular-nums; }

.catalogue-gallery-status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalogue-gallery figcaption > span { display: block; overflow-wrap: anywhere; }
.catalogue-gallery figcaption { margin-top: .3rem; }

@media (max-width: 460px) {
  .catalogue-gallery-count { position: static; }
}
