.wm-gallery-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.wm-gallery {
  --wm-gallery-columns: 3;
  --wm-gallery-aspect: 4 / 3;
  --wm-gallery-gap: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.wm-gallery__name {
  margin: 0;
  font-size: 1.4em;
  font-weight: 700;
}

.wm-gallery__desc {
  margin: 0;
  color: inherit;
  opacity: 0.8;
}

.wm-gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wm-gallery__link {
  display: block;
  line-height: 0;
  cursor: zoom-in;
}

.wm-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.wm-gallery__caption {
  font-size: 0.9em;
  line-height: 1.4;
  opacity: 0.85;
}

.wm-gallery--grid .wm-gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--wm-gallery-columns, 3), minmax(0, 1fr));
  gap: var(--wm-gallery-gap, 12px);
}
@media (max-width: 900px) {
  .wm-gallery--grid .wm-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .wm-gallery--grid .wm-gallery__grid {
    grid-template-columns: 1fr;
  }
}

.wm-gallery--grid .wm-gallery__img {
  aspect-ratio: var(--wm-gallery-aspect, 4/3);
  object-fit: cover;
}

.wm-gallery--aspect-original .wm-gallery__img {
  aspect-ratio: auto;
  object-fit: contain;
}

.wm-gallery--masonry .wm-gallery__grid {
  column-count: var(--wm-gallery-columns, 3);
  column-gap: var(--wm-gallery-gap, 12px);
}
@media (max-width: 900px) {
  .wm-gallery--masonry .wm-gallery__grid {
    column-count: 2;
  }
}
@media (max-width: 540px) {
  .wm-gallery--masonry .wm-gallery__grid {
    column-count: 1;
  }
}

.wm-gallery--masonry .wm-gallery__item {
  break-inside: avoid;
  margin-bottom: var(--wm-gallery-gap, 12px);
}

.wm-gallery--offset .wm-gallery__grid--offset {
  display: flex;
  align-items: flex-start;
  gap: var(--wm-gallery-gap, 12px);
}

.wm-gallery--offset .wm-gallery__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wm-gallery-gap, 12px);
}

.wm-gallery--offset .wm-gallery__col:nth-child(2) {
  margin-top: 60px;
}

@media (max-width: 540px) {
  .wm-gallery--offset .wm-gallery__grid--offset {
    flex-direction: column;
  }
  .wm-gallery--offset .wm-gallery__col {
    display: contents;
  }
  .wm-gallery--offset .wm-gallery__item {
    order: var(--wm-i);
  }
}
.wm-gallery--justified .wm-gallery__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wm-gallery-gap, 12px);
}

.wm-gallery--justified .wm-gallery__item {
  --row-h: 220px;
  flex: var(--ar, 1) 1 calc(var(--row-h) * var(--ar, 1));
}

.wm-gallery--justified .wm-gallery__link {
  height: var(--row-h);
}

.wm-gallery--justified .wm-gallery__img {
  height: 100%;
  object-fit: cover;
}

@media (max-width: 540px) {
  .wm-gallery--justified .wm-gallery__item {
    --row-h: 160px;
  }
}
.wm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  touch-action: none;
}
.wm-lightbox[hidden] {
  display: none;
}

.wm-lightbox__stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wm-lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  padding: 0 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.wm-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.wm-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.wm-lightbox__btn--prev {
  left: 18px;
}

.wm-lightbox__btn--next {
  right: 18px;
}

.wm-lightbox__btn--close {
  top: 16px;
  right: 18px;
  transform: none;
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.wm-lightbox--single .wm-lightbox__btn--prev,
.wm-lightbox--single .wm-lightbox__btn--next {
  display: none;
}

/*# sourceMappingURL=gallery-frontend.css.map */
