/* Azerab.az article slideshow */
.azerab-slayd {
  width: 100%;
  max-width: 1100px;
  margin: 28px auto 18px;
  overflow: hidden;
  color: #fff;
  background: #111;
  border-radius: 10px;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .12);
  font-family: inherit;
}
.azerab-slayd__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  cursor: grab;
  touch-action: pan-y;
}
.azerab-slayd__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.azerab-slayd__viewport.is-dragging .azerab-slayd__image {
  pointer-events: none;
  transition: none !important;
}
.azerab-slayd__image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
  will-change: transform;
}
.azerab-slayd__image:active { cursor: grabbing; }
.azerab-slayd__image.is-active,
.azerab-slayd__image.is-leaving,
.azerab-slayd__image.is-drag-preview {
  display: block;
}
.azerab-slayd__image.is-active { z-index: 2; }
.azerab-slayd__image.is-leaving { z-index: 2; }
.azerab-slayd__image.is-transitioning { z-index: 1; }
.azerab-slayd__image.is-drag-preview { z-index: 1; }
.azerab-slayd__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.azerab-slayd__arrow:hover,
.azerab-slayd__arrow:focus-visible {
  color: #fff;
  background: #a77b35;
}
.azerab-slayd__arrow--prev { left: 14px; }
.azerab-slayd__arrow--next { right: 14px; }
.azerab-slayd__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 7px 12px;
  background: #171717;
}
.azerab-slayd__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.azerab-slayd__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #777;
  cursor: pointer;
}
.azerab-slayd__dot.is-active {
  background: #d7ad62;
  transform: scale(1.18);
}
.azerab-slayd__counter {
  flex: 0 0 auto;
  min-width: 42px;
  color: #eee;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.azerab-slayd__small-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #333;
  cursor: pointer;
}
.azerab-slayd__small-arrow:hover,
.azerab-slayd__small-arrow:focus-visible {
  background: #a77b35;
}
.azerab-slayd__caption {
  padding: 10px 14px 12px;
  color: #f5f5f5;
  background: #222;
  font-size: 14px;
  text-align: center;
}
.azerab-slayd button:focus-visible,
.azerab-slayd__image:focus-visible {
  outline: 2px solid #d7ad62;
  outline-offset: 2px;
}

/* Full-window lightbox */
.azerab-lightbox[hidden] { display: none !important; }
.azerab-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .96);
  color: #fff;
}
body.azerab-lightbox-open { overflow: hidden !important; }
.azerab-lightbox__panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.azerab-lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  color: #fff;
  font: 14px/1.3 Arial, sans-serif;
}
.azerab-lightbox__counter { padding-left: 6px; }
.azerab-lightbox__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.azerab-lightbox__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 7px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 20px;
  cursor: pointer;
}
.azerab-lightbox__tool:hover,
.azerab-lightbox__tool:focus-visible,
.azerab-lightbox__nav:hover,
.azerab-lightbox__nav:focus-visible {
  background: #a77b35;
  color: #fff;
}
.azerab-lightbox__zoom-level {
  min-width: 46px;
  color: #ddd;
  text-align: center;
  font-size: 12px;
}
.azerab-lightbox__close {
  margin-left: 6px;
  font-size: 28px;
}
.azerab-lightbox__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.azerab-lightbox__image {
  display: block;
  cursor: grab;
  touch-action: pan-y;
  max-width: calc(100% - 100px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .34s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.azerab-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
.azerab-lightbox__nav--prev { left: 4px; }
.azerab-lightbox__nav--next { right: 4px; }
.azerab-lightbox__stage.is-dragging .azerab-lightbox__image {
  cursor: grabbing;
  user-select: none;
  transition: none !important;
}

@media (max-width: 600px) {
  .azerab-slayd {
    border-radius: 6px;
    margin-top: 20px;
  }
  .azerab-slayd__viewport { aspect-ratio: 4 / 3; }
  .azerab-slayd__arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .azerab-slayd__arrow--prev { left: 8px; }
  .azerab-slayd__arrow--next { right: 8px; }
  .azerab-slayd__controls {
    gap: 8px;
    padding: 7px 6px;
  }
  .azerab-slayd__dots { gap: 6px; }
  .azerab-slayd__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
  }
  .azerab-lightbox { padding: 8px; }
  .azerab-lightbox__topbar { min-height: 46px; gap: 8px; }
  .azerab-lightbox__tools { gap: 5px; }
  .azerab-lightbox__tool {
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
  }
  .azerab-lightbox__zoom-level { min-width: 36px; }
  .azerab-lightbox__image { max-width: calc(100% - 64px); }
  .azerab-lightbox__nav {
    width: 30px;
    height: 44px;
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .azerab-slayd__image,
  .azerab-lightbox__image {
    transition-duration: .01ms !important;
  }
}
