.o24-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.o24-gallery-main {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #effcff, #fff1f8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.o24-gallery-slide {
  background: none;
  border: 0;
  cursor: zoom-in;
  display: none;
  height: 100%;
  padding: 0;
  width: 100%;
}
.o24-gallery-slide.is-active {
  display: block;
}
.o24-gallery-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.o24-gallery-arrow {
  align-items: center;
  background: rgba(22, 39, 95, 0.55);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.6rem;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease;
  width: 40px;
  z-index: 2;
}
.o24-gallery-arrow:hover {
  background: #fa3fa4;
}
.o24-gallery-arrow--prev {
  left: 12px;
}
.o24-gallery-arrow--next {
  right: 12px;
}
.o24-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.o24-gallery-thumb {
  background: #fff;
  border: 2px solid #d5ebf6;
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 72px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease;
}
.o24-gallery-thumb:hover {
  border-color: #fa9bd0;
}
.o24-gallery-thumb.is-active {
  border-color: #fa3fa4;
}
.o24-gallery-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.o24-gallery-lightbox {
  align-items: center;
  background: rgba(15, 20, 40, 0.92);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100000;
}
.o24-gallery-lightbox[hidden] {
  display: none;
}
.o24-gallery-lightbox img {
  max-height: 88vh;
  max-width: 88vw;
  object-fit: contain;
}
.o24-gallery-lightbox-close {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  padding: 8px;
  position: absolute;
  right: 20px;
  top: 20px;
}
.o24-gallery-lightbox-close:hover {
  color: #fa3fa4;
}
@media (max-width: 781px) {
  .o24-gallery-thumb {
    flex-basis: 56px;
    height: 56px;
  }
  .o24-gallery-arrow {
    height: 34px;
    width: 34px;
  }
}
