#pdf-mobile-slider {
  display: none;
}

@media (max-width: 850px) {
  .pdf-section .pdf-viewer-wrap {
    display: none;
  }

  #pdf-mobile-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    flex: 1;
    min-height: 0;
  }

  .pdf-mobile-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    aspect-ratio: 1 / 1.414;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  #pdf-mobile-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
  }

  .pdf-mobile-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: filter 300ms ease;
  }

  .pdf-mobile-slide.active {
    display: flex;
  }

  .pdf-mobile-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .pdf-mobile-slide.shadow-left {
    filter: drop-shadow(-12px 0 20px rgba(0, 0, 0, 0.7));
  }

  .pdf-mobile-slide.shadow-right {
    filter: drop-shadow(12px 0 20px rgba(0, 0, 0, 0.7));
  }

  .pdf-mobile-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: var(--color-black-30);
    border: 1px solid var(--color-white-30);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
    transition:
      background var(--transition-fast),
      border-color var(--transition-fast);
  }

  #pdf-mobile-prev {
    left: 0;
  }
  #pdf-mobile-next {
    right: 0;
  }

  .pdf-mobile-arrow:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
  }

  .pdf-mobile-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .pdf-section {
    padding: calc(var(--mobile-gutter) * 2) var(--mobile-gutter)
      var(--mobile-gutter);
    height: 100vh;
  }

  .pdf-section .pdf-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    height: 100%;
    flex: 1;
    justify-content: center !important;
  }

  .pdf-section .btn {
    font-size: 12px !important;
    line-height: 17px !important;
  }
}
