.paser-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pg-term {
  position: relative;
  display: block;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
  background: #eee;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.pg-term-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
}
.pg-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pg-image {
  display: block;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
  background: #eee;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.pg-title {
  font-size: 15px;
  margin: 0;
}
.pg-empty {
  color: #666;
}
.pg-actions {
  display: flex;
  justify-content: flex-start;
}
.pg-back {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.pg-loading {
  opacity: 0.6;
  pointer-events: none;
}

.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.pg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.pg-lightbox-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  padding: 8px;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 85vh;
}
.pg-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  display: block;
}
.pg-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }
}
