/* Shared media gallery chrome (show poster + person photo). */
.pgallery {
  position: relative;
  touch-action: pan-y;
}
.pgallery.has-gallery {
  cursor: grab;
}
.pgallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  appearance: none;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0 0 0.08rem;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.32);
  color: rgba(243, 235, 227, 0.88);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.15s ease;
}
.pgallery-nav.is-prev {
  left: 0.4rem;
  transform: translate(-130%, -50%);
}
.pgallery-nav.is-next {
  right: 0.4rem;
  transform: translate(130%, -50%);
}
.pgallery-nav:hover,
.pgallery-nav:focus-visible {
  background: rgba(8, 7, 6, 0.48);
  color: #f3ebe3;
  outline: none;
}
@media (hover: hover) and (pointer: fine) {
  .pgallery.is-gallery-active .pgallery-nav:not([hidden]),
  .pgallery:hover .pgallery-nav:not([hidden]),
  .pgallery:focus-within .pgallery-nav:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
  }
}
@media (hover: none), (pointer: coarse) {
  .pgallery.has-gallery .pgallery-nav:not([hidden]) {
    opacity: 0;
    pointer-events: auto;
    transform: translate(0, -50%);
    width: 22%;
    max-width: 4.5rem;
    height: 55%;
    border-color: transparent;
    background: transparent;
    color: transparent;
    box-shadow: none;
    touch-action: none;
  }
}
.pgallery.is-zoomed .pgallery-nav {
  display: none;
}
.pgallery-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4.1rem;
  z-index: 3;
  display: flex;
  justify-content: safe center;
  align-items: flex-end;
  gap: 0.3rem;
  height: 4.1rem;
  padding: 0.45rem 0.4rem 0.4rem;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.88) 0%, rgba(8, 7, 6, 0.45) 70%, transparent 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: bottom 0.2s ease, opacity 0.15s ease, visibility 0.2s;
}
.pgallery-strip::-webkit-scrollbar {
  display: none;
}
.pgallery.is-gallery-active .pgallery-strip:not([hidden]) {
  bottom: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pgallery.is-zoomed .pgallery-strip:not([hidden]) {
  z-index: 125;
  --gallery-h: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  height: var(--gallery-h);
  bottom: calc(-1 * var(--gallery-h));
  padding: 0.55rem 1rem max(0.55rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(8, 7, 6, 0.92) 0%, rgba(8, 7, 6, 0.55) 65%, transparent 100%);
}
.pgallery.is-zoomed.is-gallery-active .pgallery-strip:not([hidden]) {
  bottom: 0;
}
.pgallery.is-zoomed .pgallery-thumb {
  width: 2.75rem;
}
@media (hover: none), (pointer: coarse) {
  .pgallery.is-zoomed .pgallery-strip {
    display: none !important;
  }
}
.pgallery-thumb {
  flex: 0 0 auto;
  width: 2.35rem;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(243, 235, 227, 0.35);
  border-radius: 0.25rem;
  padding: 0;
  margin: 0;
  background-color: #1a1614;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.82;
  scroll-snap-align: start;
  touch-action: manipulation;
  appearance: none;
}
.pgallery-thumb:hover,
.pgallery-thumb:focus-visible {
  opacity: 1;
  border-color: rgba(243, 235, 227, 0.85);
  outline: none;
}
.pgallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent-2, #c45c26);
  box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.55);
}
