/* SN Gallery Lite v2.1.1 */

.sn2-gallery-wrap {
  margin: 12px 0;
  width: 100%;
}

.sn-gallery-lite {
  display: grid;
  gap: var(--sn2-gap, 10px);
  margin: 0;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sn-gallery-lite.sn-gallery-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.sn-gallery-lite.sn-gallery-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sn-gallery-lite.sn-gallery-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sn-gallery-lite.sn-gallery-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sn-gallery-lite.sn-gallery-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sn-gallery-lite.sn-gallery-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sn-gallery-item {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  aspect-ratio: var(--sn2-ratio, 3/4);
  cursor: pointer;
  line-height: 0;
  text-align: initial;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sn-gallery-item:hover,
.sn-gallery-item:focus,
.sn-gallery-item:active {
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  outline: none;
  transform: none;
}

.sn-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.sn2-gallery-more {
  display: block;
  margin-top: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: center;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}

.sn2-gallery-more:hover,
.sn2-gallery-more:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.sn2-gallery-more:active {
  transform: translateY(1px);
}

.sn2-lightbox-opened {
  overflow: hidden !important;
}

.sn2-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  touch-action: manipulation;
}

.sn2-lightbox-inner {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  box-sizing: border-box;
}

.sn2-lightbox-img {
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  border-radius: 14px;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  box-sizing: border-box;
}

.sn2-lightbox-close,
.sn2-lightbox-prev,
.sn2-lightbox-next {
  position: fixed;
  z-index: 1000000;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.sn2-lightbox-close:hover,
.sn2-lightbox-close:focus,
.sn2-lightbox-prev:hover,
.sn2-lightbox-prev:focus,
.sn2-lightbox-next:hover,
.sn2-lightbox-next:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
  outline: none;
}

.sn2-lightbox-close {
  top: 16px;
  right: 16px;
}

.sn2-lightbox-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
}

.sn2-lightbox-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
}

.sn2-lightbox-disabled {
  opacity: 0.35;
}

.sn2-lightbox-counter {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000000;
  padding: 8px 10px;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
  font-size: 14px;
  line-height: 1.2;
}

.sni-img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .sn-gallery-lite.sn-gallery-cols-2,
  .sn-gallery-lite.sn-gallery-cols-3,
  .sn-gallery-lite.sn-gallery-cols-4,
  .sn-gallery-lite.sn-gallery-cols-5,
  .sn-gallery-lite.sn-gallery-cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sn2-lightbox {
    padding: 12px;
  }

  .sn2-lightbox-img {
    max-width: 96vw;
    max-height: 86vh;
    border-radius: 12px;
  }

  .sn2-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .sn2-lightbox-counter {
    top: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .sn-gallery-lite.sn-gallery-cols-1,
  .sn-gallery-lite.sn-gallery-cols-2,
  .sn-gallery-lite.sn-gallery-cols-3,
  .sn-gallery-lite.sn-gallery-cols-4,
  .sn-gallery-lite.sn-gallery-cols-5,
  .sn-gallery-lite.sn-gallery-cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sn2-lightbox-prev,
  .sn2-lightbox-next {
    padding: 10px 10px;
    font-size: 30px;
  }

  .sn2-lightbox-prev {
    left: 8px;
  }

  .sn2-lightbox-next {
    right: 8px;
  }
}

.sn2-gallery-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 16px;
}