.xeeni-dynamic-gallery-loading {
  color: #aaaaaa;
  text-align: center;
  padding: 40px 0;
  width: 100%;
}

.xeeni-dynamic-gallery-section {
  padding: 48px 0 12px;
  width: 100%;
  background: #2b2b2b;
}

.xeeni-dynamic-gallery-shell {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 10px;
  box-sizing: border-box;
}

.xeeni-dynamic-gallery-grid {
  column-count: 6;
  column-gap: 12px;
}

.xeeni-dynamic-gallery-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.xeeni-dynamic-gallery-card.is-hidden {
  display: none;
}

.xeeni-dynamic-gallery-frame {
  position: relative;
  display: block;
  padding: 5px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xeeni-dynamic-gallery-image-count {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5c800;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.xeeni-dynamic-gallery-card:hover .xeeni-dynamic-gallery-frame,
.xeeni-dynamic-gallery-card:focus .xeeni-dynamic-gallery-frame {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.xeeni-dynamic-gallery-photo {
  display: block;
  width: 100%;
  height: auto;
}

.xeeni-dynamic-gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-bottom: 24px;
}

.xeeni-dynamic-gallery-load-more {
  min-width: 180px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #ffffff;
  color: #000000;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  animation: xeeniDynamicGalleryBlink 1.4s ease-in-out infinite;
}

.xeeni-dynamic-gallery-load-more:hover {
  background: #ffffff;
  color: #000000;
  animation-play-state: paused;
}

.xeeni-dynamic-gallery-load-more:focus {
  background: #ffffff;
  color: #000000;
}

@keyframes xeeniDynamicGalleryBlink {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

.xeeni-dynamic-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 24, 0.94);
}

.xeeni-dynamic-gallery-modal.is-open {
  display: flex;
}

.xeeni-dynamic-gallery-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.xeeni-dynamic-gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.75);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.xeeni-dynamic-gallery-content {
  padding: 28px 28px 24px;
}

.xeeni-dynamic-gallery-title {
  margin: 0 72px 6px 0;
  color: #1b1b1b;
  font-size: 2rem;
  line-height: 1.15;
}

.xeeni-dynamic-gallery-copy {
  margin: 0 0 18px;
  color: #555555;
}

.xeeni-dynamic-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background: #f5f5f5;
  border-radius: 14px;
  overflow: hidden;
}

.xeeni-dynamic-gallery-stage img {
  display: block;
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  background: #f5f5f5;
}

.xeeni-dynamic-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.45);
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.xeeni-dynamic-gallery-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.xeeni-dynamic-gallery-nav.prev {
  left: 18px;
}

.xeeni-dynamic-gallery-nav.next {
  right: 18px;
}

.xeeni-dynamic-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.xeeni-dynamic-gallery-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f4f4f4;
  cursor: pointer;
  overflow: hidden;
}

.xeeni-dynamic-gallery-thumb.is-active {
  border-color: #478ac9;
}

.xeeni-dynamic-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.xeeni-dynamic-gallery-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .xeeni-dynamic-gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 767px) {
  .xeeni-dynamic-gallery-section {
    padding-top: 28px;
  }

  .xeeni-dynamic-gallery-grid {
    column-count: 2;
    column-gap: 14px;
  }

  .xeeni-dynamic-gallery-shell {
    padding: 0 12px;
  }

  .xeeni-dynamic-gallery-card {
    margin-bottom: 14px;
  }

  .xeeni-dynamic-gallery-modal {
    padding: 10px;
  }

  .xeeni-dynamic-gallery-content {
    padding: 18px 18px 16px;
  }

  .xeeni-dynamic-gallery-title {
    margin-right: 54px;
    font-size: 1.35rem;
  }

  .xeeni-dynamic-gallery-stage {
    min-height: 240px;
  }

  .xeeni-dynamic-gallery-stage img {
    max-height: 48vh;
  }

  .xeeni-dynamic-gallery-nav {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .xeeni-dynamic-gallery-nav.prev {
    left: 10px;
  }

  .xeeni-dynamic-gallery-nav.next {
    right: 10px;
  }

  .xeeni-dynamic-gallery-thumb {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 575px) {
  .xeeni-dynamic-gallery-grid {
    column-count: 1;
  }
}
