.steps  {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 20px;
  padding: 0px 50px 0px 38px;
  text-align: center;
}

.step h2  {
  font-size: 23px;
  line-height: 40px;
  color: rgb(85, 85, 85);
  margin: 19px 0px;
}

.gallery-link  {
  display: inline-block;
  width: 240px;
  max-width: 100%;
  margin-bottom: 10px;
}

.gallery-link img  {
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.4) 10px 10px 10px -10px;
  transition: transform 0.2s;
}

.gallery-link:hover img  {
  transform: scale(1.05);
}

.gallery  {
  padding: 0px;
  border: 0px;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  background: transparent;
  color: rgb(255, 255, 255);
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery::backdrop  {
  background: rgba(20, 20, 20, 0.96);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery.is-visible,
.gallery.is-visible::backdrop {
  opacity: 1;
}

.gallery[open]  {
  display: flex;
  flex-direction: column;
}

.gallery button, .gallery a  {
  color: rgb(255, 255, 255);
  background: rgb(51, 51, 51);
  border: 1px solid rgb(102, 102, 102);
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 20px;
  min-height: 40px;
  text-decoration: none;
}

.gallery button:hover, .gallery a:hover  {
  background: rgb(85, 85, 85);
}

.gallery :focus-visible  {
  outline-color: rgb(141, 210, 138);
}

.gallery-toolbar  {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
}

#gallery-position  {
  margin-right: auto;
  padding: 4px;
}

.gallery [data-gallery-action="close"]  {
  font-size: 26px;
  line-height: 20px;
}

.gallery-stage  {
  display: flex;
  flex: 1 1 0%;
  min-height: 0px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0px 12px;
}

.gallery-image-frame  {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0px;
}

#gallery-image  {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery .gallery-prev, .gallery .gallery-next  {
  font-size: 35px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

#gallery-caption  {
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  line-height: 20px;
}

#gallery-status  {
  text-align: center;
  font-size: 13px;
  color: rgb(221, 221, 221);
}

#gallery-status:empty  {
  display: none;
}

.gallery-thumbnails  {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0px 16px 16px;
}

.gallery-thumbnails button  {
  padding: 3px;
  min-height: 0px;
  border: 2px solid transparent;
  background: transparent;
}

.gallery-thumbnails [aria-current="true"]  {
  border-color: rgb(83, 175, 78);
}

.gallery-thumbnails img  {
  width: 60px;
  height: 40px;
  object-fit: cover;
}

@media (max-width: 989px)  {
  .steps  {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0px 20px 0px 10px;
  }

  .step h2  {
    font-size: 24px;
    line-height: 35px;
    color: rgb(68, 68, 68);
    margin: 20px 0px;
  }

  .gallery-link  {
    width: 80%;
    max-width: none;
  }

  .gallery-toolbar  {
    padding: 8px;
    gap: 4px;
  }

  .gallery-toolbar button, .gallery-toolbar a  {
    font-size: 12px;
    padding: 6px 8px;
  }

  .gallery-stage  {
    gap: 4px;
    padding: 0px 4px;
  }

  .gallery .gallery-prev, .gallery .gallery-next  {
    min-width: 32px;
    padding: 4px;
  }

  #gallery-caption  {
    padding: 10px;
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce)  {
  .gallery, .gallery::backdrop {
    transition: none;
  }
  .gallery-link:hover img  {
    transform: none;
  }

}

@media print  {
  .gallery  {
    display: none !important;
  }

  .steps  {
    gap: 16px;
    padding: 0px;
  }

  .step  {
    break-inside: avoid;
  }

}

/* Keep the page width stable while the modal locks scrolling. */
html {
  scrollbar-gutter: stable;
}

html.gallery-open  {
  overflow: hidden;
}

.gallery-image-frame  {
  touch-action: pan-y;
}
