.gallery-container {
  border: 1px solid #fff;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pg-gallery {
  display: flex;
  width: 100%;
  height: 500px;
  position: relative;
  outline: none;
}
.pg-gallery:focus-visible {
  outline: 2px solid #4A90D9;
  outline-offset: 2px;
}
.pg-gallery button:focus-visible,
.pg-gallery .pg-thumb-item:focus-visible {
  outline: 2px solid #4A90D9;
  outline-offset: 1px;
}
html.pg-using-mouse .pg-gallery:focus-visible,
html.pg-using-mouse .pg-gallery button:focus-visible,
html.pg-using-mouse .pg-gallery .pg-thumb-item:focus-visible,
html.pg-using-mouse .pg-lightbox button:focus-visible,
html.pg-using-mouse .pg-lightbox .pg-lb-thumb:focus-visible {
  outline: none;
}
.pg-lightbox button:focus-visible,
.pg-lightbox .pg-lb-thumb:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.pg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pg-thumbs {
  width: 70px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
  padding: 4px;
  border-right: 1px solid #fff;
}
.pg-thumb-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.pg-thumb-item {
  position: relative;
  width: 60px;
  height: 60px;
  min-height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  border-radius: 3px;
  flex-shrink: 0;
}
.pg-thumb-item.pg-active {
  border-color: #333;
}
.pg-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-thumb-up,
.pg-thumb-down {
  background: none;
  border: 1px solid #888;
  border-radius: 3px;
  width: 60px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pg-thumb-up:hover,
.pg-thumb-down:hover {
  background: #f0f0f0;
  border-color: #999;
}
.pg-thumb-up.pg-hidden,
.pg-thumb-down.pg-hidden {
  display: none;
}
.pg-separator {
  display: none;
}
.pg-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin-left: 8px;
}
.pg-main {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #fff;
  cursor: crosshair;
  min-height: 0;
}
.pg-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pg-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 200ms ease-in-out;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.pg-prev,
.pg-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 150;
  font-size: 0;
  transition: background 200ms;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-prev {
  left: 6px;
}
.pg-next {
  right: 6px;
}
.pg-prev::after,
.pg-next::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
}
.pg-prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}
.pg-next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}
.pg-prev:hover,
.pg-next:hover {
  background: rgba(0, 0, 0, 0.5);
}
.pg-caption {
  padding: 4px 6px;
  color: #444;
  font-size: 12px;
  line-height: 1.3;
  min-height: 20px;
  flex-shrink: 0;
  border-top: 1px solid #fff;
}
.pg-fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: background 200ms;
  z-index: 15;
  padding: 0;
  overflow: visible;
  -webkit-appearance: none;
}
.pg-fullscreen-btn::before,
.pg-fullscreen-btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #fff;
  border-style: solid;
}
.pg-fullscreen-btn::before {
  top: 7px;
  left: 7px;
  border-width: 2px 0 0 2px;
}
.pg-fullscreen-btn::after {
  bottom: 7px;
  right: 7px;
  border-width: 0 2px 2px 0;
}
.pg-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.pg-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  display: none;
  z-index: 10;
  top: 0;
  left: 0;
}
.pg-zoom-panel {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid #ddd;
  overflow: hidden;
  display: none;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.pg-zoom-panel img {
  will-change: transform;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  max-width: none !important;
  max-height: none !important;
  object-fit: none !important;
}
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(13, 13, 13, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}
.pg-lb-header {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  z-index: 10001;
}
.pg-lb-counter {
  color: #ddd;
  font-size: 14px;
}
.pg-lb-close {
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.pg-lb-close:hover {
  opacity: 0.7;
}
.pg-lb-image {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.pg-lb-prev,
.pg-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
  z-index: 10002;
  font-size: 0;
  line-height: 0;
}
.pg-lb-prev::after,
.pg-lb-next::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
}
.pg-lb-prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}
.pg-lb-next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}
.pg-lb-prev:hover,
.pg-lb-next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.pg-lb-prev {
  left: 15px;
}
.pg-lb-next {
  right: 15px;
}
.pg-lb-thumbs {
  position: absolute;
  bottom: 15px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 90vw;
  padding: 5px;
}
.pg-lb-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: opacity 200ms;
  flex-shrink: 0;
}
.pg-lb-thumb.pg-active {
  opacity: 1;
  border-color: #fff;
}
.pg-lb-caption {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  color: #ddd;
  font-size: 14px;
  text-align: center;
  display: none;
  padding: 0 20px;
}
.pg-lb-thumb:hover {
  opacity: 0.8;
}
.pg-main {
  touch-action: pan-y;
}
.pg-slide.pg-swiping img {
  transition: none;
}
.pg-slide.pg-snapping img {
  transition: transform 200ms ease-out;
}
@media (max-width: 1024px) {
  .pg-gallery {
    flex-direction: column;
    height: 60vw;
    max-height: 500px;
    max-width: 100%;
  }
  .pg-main-col {
    flex: 1;
    min-height: 0;
    order: 1;
    margin-left: 0;
    overflow: hidden;
  }
  .pg-thumbs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    order: 2;
    border-right: none;
    border-top: 1px solid #fff;
    padding: 4px 0;
  }
  .pg-separator {
    display: none;
  }
  .pg-thumb-track {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
  }
  .pg-thumb-up,
  .pg-thumb-down {
    display: none;
  }
  .pg-main {
    cursor: default;
  }
  .pg-slide img {
    max-height: 100%;
  }
  .pg-zoom-panel {
    display: none !important;
  }
  .pg-lens {
    display: none !important;
  }
}
@media (max-width: 620px) {
  .gallery-container {
    border: none;
    padding: 0;
  }
  .pg-gallery {
    height: auto;
    max-height: none;
  }
  .pg-main-col {
    aspect-ratio: 1 / 1;
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
  }
  .pg-main {
    flex: 1;
    min-height: 0;
  }
  .pg-slide {
    height: 100%;
    overflow: hidden;
  }
  .pg-caption {
    flex-shrink: 0;
  }
  .pg-prev,
  .pg-next {
    top: 50%;
    transform: translateY(-50%);
  }
  .pg-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}
