button.aisec-gallery-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-link-color, #0d6efd);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
button.aisec-gallery-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.aisec-photo-gallery .modal-content {
  background: #151515;
  color: #fff;
}
.aisec-photo-gallery .modal-header {
  border-bottom-color: #444;
}
.aisec-photo-gallery .modal-title {
  text-transform: none;
}
.aisec-photo-gallery [hidden] {
  display: none !important;
}
.aisec-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}
.aisec-gallery-image {
  display: block;
  width: 100%;
  height: min(68vh, 900px);
  object-fit: contain;
}
.aisec-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  min-width: 44px;
  min-height: 52px;
  border: 1px solid #888;
  border-radius: 4px;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.aisec-gallery-arrow:hover,
.aisec-gallery-arrow:focus-visible {
  background: #000;
  outline: 2px solid #fff;
}
.aisec-gallery-prev { left: 0; }
.aisec-gallery-next { right: 0; }
.aisec-gallery-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.aisec-photo-gallery .aisec-gallery-original {
  color: #b8d9ff;
}
.aisec-gallery-status {
  margin: 0.75rem 0;
}
@media (max-width: 575px) {
  .aisec-photo-gallery .modal-body { padding: 0.5rem; }
  .aisec-gallery-image { height: 65vh; }
}
