body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  padding-top: 60px;
  background-color: black;
}

#gallery-widget {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.masonry-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.masonry-column img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
  user-select: none;
}

.masonry-column img:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  body {
    padding-top: 45px;
  }

  .masonry-wrapper {
    gap: 10px;
  }

  .masonry-column {
    gap: 10px;
  }

  .lb-nav {
    display: none !important;
  }
}

#gallery-lightbox {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0);

  display: none;

  transition: background-color 0.4s ease;
}

#gallery-lightbox.is-open {
  display: block;
}

#gallery-lightbox.is-visible {
  background-color: rgba(0, 0, 0, 1);
}

#gallery-lightbox img {
  position: absolute;
  display: block;

  transform-origin: top left;

  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.lb-nav,
.close-btn {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#gallery-lightbox.is-visible .lb-nav,
#gallery-lightbox.is-visible .close-btn {
  opacity: 1;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-nav:hover {
  opacity: 0.7 !important;
}

.lb-nav::before {
  content: "";
  width: 25px;
  height: 25px;
  border-top: 1px solid white;
  border-right: 1px solid white;
  display: block;
}

.lb-prev {
  left: 10px;
}

.lb-prev::before {
  transform: rotate(-135deg);
  margin-left: 10px;
}

.lb-next {
  right: 10px;
}

.lb-next::before {
  transform: rotate(45deg);
  margin-right: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10002;
  font-family: Arial, sans-serif;
  user-select: none;
}
