.theme6-gallery {
  background: #f8fafc;
}

.theme6-gallery--has-images {
  padding-top: clamp(2.75rem, 5vw, 4.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.theme6-gallery--empty {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.theme6-gallery--empty .theme6-gallery__header {
  margin-bottom: clamp(1rem, 3vw, 1.35rem);
}

.theme6-gallery__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 0;
}

.theme6-gallery__header-main {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.theme6-gallery__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0.15rem;
  border-radius: 12px;
  color: #2a8489;
  background: rgba(42, 132, 137, 0.1);
  border: 1px solid rgba(42, 132, 137, 0.2);
}

.theme6-gallery__title-group {
  flex: 1;
  min-width: 0;
}

.theme6-gallery__accent {
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 999px;
  background: #2a8489;
  margin-bottom: 0.65rem;
}

.theme6-gallery__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.theme6-gallery__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.01em;
  max-width: 36rem;
}

.theme6-gallery__subtitle--empty {
  max-width: 40rem;
}

.theme6-gallery__collection-name {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
}

html[dir=rtl] .theme6-gallery__header-main {
  flex-direction: row-reverse;
}

.theme6-gallery__slider-row {
  margin-top: 0;
}

.theme6-gallery__swiper-shell {
  padding-inline: clamp(0.25rem, 2vw, 2.75rem);
}

.theme6-gallery__swiper-shell--single .theme6-gallery__nav,
.theme6-gallery__swiper-shell--single .theme6-gallery__pagination {
  display: none !important;
}

.theme6-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.theme6-gallery__nav:hover {
  color: #2a8489;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.theme6-gallery__nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.theme6-gallery__nav--prev {
  left: clamp(0rem, 1vw, 0.5rem);
}

.theme6-gallery__nav--next {
  right: clamp(0rem, 1vw, 0.5rem);
}

html[dir=rtl] .theme6-gallery__nav--prev {
  left: auto;
  right: clamp(0rem, 1vw, 0.5rem);
}

html[dir=rtl] .theme6-gallery__nav--next {
  right: auto;
  left: clamp(0rem, 1vw, 0.5rem);
}

.theme6-home-gallery-slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.theme6-home-gallery-slider .swiper-wrapper {
  align-items: stretch;
}

.theme6-gallery__link {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #e8edf2;
}

.theme6-gallery__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.theme6-gallery__img {
  display: block;
  height: 220px;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

.theme6-gallery .theme6-gallery__pagination.swiper-pagination {
  position: relative !important;
  margin-top: 1.25rem;
  inset: auto !important;
  width: 100% !important;
  text-align: center !important;
  transform: none !important;
}

.theme6-gallery .theme6-gallery__pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: rgba(15, 23, 42, 0.22);
  opacity: 1;
}

.theme6-gallery .theme6-gallery__pagination .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 999px;
  background: #2a8489;
}

@media (max-width: 575.98px) {
  .theme6-gallery__img {
    height: 200px;
  }
}
.theme6-gallery__empty {
  margin-top: 0;
}

.theme6-gallery__empty-panel {
  margin-inline: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 900px;
}

.theme6-gallery__empty-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.theme6-gallery__empty-icon {
  color: rgba(42, 132, 137, 0.45);
}

.theme6-gallery__skeleton-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.theme6-gallery__skeleton-item {
  position: relative;
  flex: 1 1 160px;
  min-height: 112px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8edf2 0%, #dfe7f0 100%);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.theme6-gallery__skeleton-shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.65) 45%, transparent 90%);
  animation: theme6-gallery-shimmer 1.85s ease-in-out infinite;
}

@keyframes theme6-gallery-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme6-gallery__skeleton-shimmer {
    animation: none;
    opacity: 0.35;
  }
}
