.gojo-gallery {
  margin-top: 1.5rem;
}

.gojo-gallery__intro {
  margin: 0 0 1.25rem;
  color: #43554c;
}

.gojo-gallery__grid {
  column-count: 3;
  column-gap: 1rem;
}

.gojo-gallery__item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #edf6f1;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

.gojo-gallery__item:focus-visible {
  outline: 3px solid #d78b2f;
  outline-offset: 3px;
}

.gojo-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .gojo-gallery__item:hover img {
    transform: scale(1.02);
  }
}

@media (max-width: 700px) {
  .gojo-gallery__grid {
    column-count: 2;
    column-gap: 0.75rem;
  }

  .gojo-gallery__item {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 380px) {
  .gojo-gallery__grid {
    column-count: 1;
  }
}

.gojo-gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.78);
}

.gojo-gallery-lightbox[hidden] {
  display: none;
}

body.gojo-gallery-lightbox-open {
  overflow: hidden;
}

.gojo-gallery-lightbox__content {
  position: relative;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 2.5rem);
  padding: 3.9rem 1rem 1rem;
  border-radius: 0.65rem;
  background: #fff;
}

.gojo-gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  margin: 0 auto;
}

.gojo-gallery-lightbox__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #16704d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gojo-gallery-lightbox__close:hover,
.gojo-gallery-lightbox__close:focus-visible {
  background: #0e583b;
}
