#gallery-stcm-1 {
  justify-items: flex-end;
}
#gallery-stcm-1 .gallery-wrapper-stcm {
  max-width: 384px;
  width: 100%;
}
#gallery-stcm-1 .gallery-grid-stcm {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 32px;
}
#gallery-stcm-2 .gallery-grid-stcm {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 32px;
}
.gallery-item-stcm {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: all 0.3s;
  aspect-ratio: 11 / 7;
  object-fit: cover;
  object-position: center;
}
.gallery-item-wrapper-stcm {
  position: relative;
  overflow: hidden;
}
.gallery-item-wrapper-stcm:hover .gallery-item-stcm {
  transform: scale(1.1);
}
.gallery-overlay-stcm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0e2536cc;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery-overlay-stcm:hover {
  background: #0e2536e6;
}
.lightbox-stcm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0e2536f2;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
}
.lightbox-wrapper-stcm {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}
.lightbox-inner-stcm {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lightbox-content-stcm {
  width: 100%;
  height: auto;
  max-height: 100%;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
}
.lightbox-controls-stcm {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.ctrl-btn-stcm {
  display: flex;
  cursor: pointer;
  font-size: 20px;
  color: #ffffff;
  background: #0e2536;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 7px;
  user-select: none;
  transition: all 0.2s;
}
.ctrl-btn-stcm:hover {
  background: rgba(255, 255, 255, 0.2);
}
.ctrl-spacer-stcm {
  flex: 1;
}
.close-stcm {
  position: absolute;
  right: 0;
  top: -55px;
}
.prev-stcm,
.next-stcm {
  font-size: 18px;
}
.zoom-in-stcm,
.zoom-out-stcm,
.fullscreen-stcm,
.close-stcm {
  font-size: 20px;
}
@media (max-width: 767px) {
  #gallery-stcm-1 .gallery-wrapper-stcm {
    max-width: 100%;
  }
  #gallery-stcm-1 .gallery-grid-stcm,
  #gallery-stcm-2 .gallery-grid-stcm {
    grid-template-columns: repeat(3, minmax(50px, 1fr));
    gap: 10px;
  }
  .gallery-overlay-stcm {
    font-size: 16px;
  }
}
