.dd-gallery-page {
  --ddg-ink: #171216;
  --ddg-muted: #726a70;
  --ddg-pink: #ff2a68;
  --ddg-pink-soft: #fff0f5;
  --ddg-cream: #fbf8f6;
  --ddg-line: rgba(23, 18, 22, 0.1);
  --ddg-dark: #100d0f;
  --ddg-gold: #c9a040;
  overflow: hidden;
  color: var(--ddg-ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(255, 42, 104, 0.06), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #fff 52%, #fbf8f6 100%);
}

.dd-gallery-page *,
.dd-gallery-viewer * {
  box-sizing: border-box;
}

.dd-gallery-intro {
  position: relative;
  padding: 96px 0 72px;
}

.dd-gallery-intro::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  top: -110px;
  border: 1px solid rgba(255, 42, 104, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 42, 104, 0.025), 0 0 0 92px rgba(255, 42, 104, 0.018);
  pointer-events: none;
}

.dd-gallery-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 64px;
  align-items: end;
}

.dd-gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--ddg-pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dd-gallery-kicker i {
  font-size: 0.9rem;
}

.dd-gallery-kicker--dark {
  color: rgba(255, 255, 255, 0.72);
}

.dd-gallery-intro__copy h2,
.dd-gallery-section-head h2,
.dd-gallery-story-cta h2 {
  margin: 0;
  color: var(--ddg-ink);
  font-size: clamp(2.25rem, 4.6vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.dd-gallery-intro__copy h2 em {
  color: var(--ddg-pink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.dd-gallery-intro__copy p {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--ddg-muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.8;
}

.dd-gallery-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--ddg-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(39, 23, 31, 0.08);
  backdrop-filter: blur(16px);
}

.dd-gallery-stat {
  position: relative;
  min-width: 0;
  padding: 27px 18px 25px;
  text-align: center;
}

.dd-gallery-stat + .dd-gallery-stat::before {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 0;
  width: 1px;
  background: var(--ddg-line);
}

.dd-gallery-stat strong {
  display: block;
  color: var(--ddg-ink);
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.dd-gallery-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ddg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.dd-gallery-reels {
  position: relative;
  padding: 88px 0 98px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 42, 104, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 78%, rgba(201, 160, 64, 0.12), transparent 28rem),
    #100d0f;
}

.dd-gallery-reels::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.dd-gallery-section-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 38px;
}

.dd-gallery-reels .dd-gallery-section-head h2 {
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3.8rem);
}

.dd-gallery-section-head p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--ddg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.dd-gallery-reels .dd-gallery-section-head p {
  color: rgba(255, 255, 255, 0.6);
}

.dd-gallery-rail-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.dd-gallery-rail-controls button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dd-gallery-rail-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.dd-gallery-reel-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 300px);
  gap: 18px;
  overflow-x: auto;
  padding: 3px max(1px, calc((100vw - 1320px) / 2)) 18px 1px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.dd-gallery-reel-card {
  min-width: 0;
  scroll-snap-align: start;
}

.dd-gallery-reel-card__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: #241b20;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.dd-gallery-reel-card__media::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 3px;
  border-radius: 99px;
  background: var(--reel-accent, var(--ddg-gold));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 4;
}

.dd-gallery-reel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.dd-gallery-reel-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 9, 0.03), rgba(10, 8, 9, 0.09) 48%, rgba(10, 8, 9, 0.58));
  z-index: 1;
}

.dd-gallery-reel-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 13, 15, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.dd-gallery-reel-card__play i {
  margin-left: 3px;
}

.dd-gallery-reel-card__type,
.dd-gallery-reel-card__duration {
  position: absolute;
  z-index: 3;
  top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 9, 11, 0.38);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.dd-gallery-reel-card__type { left: 15px; }
.dd-gallery-reel-card__duration { right: 15px; }

.dd-gallery-reel-card__media:hover img {
  transform: scale(1.045);
  filter: saturate(1.07);
}

.dd-gallery-reel-card__media:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.dd-gallery-reel-card__media:hover .dd-gallery-reel-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 42, 104, 0.86);
}

.dd-gallery-reel-card__body {
  padding: 17px 8px 0;
}

.dd-gallery-reel-card__body > span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dd-gallery-reel-card__body h3 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}

.dd-gallery-reel-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dd-gallery-collection {
  padding: 104px 0 110px;
}

.dd-gallery-section-head--collection h2 {
  font-size: clamp(2rem, 3.2vw, 3.75rem);
}

.dd-gallery-results {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--ddg-line);
  border-radius: 999px;
  color: var(--ddg-muted);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.dd-gallery-results strong {
  color: var(--ddg-ink);
}

.dd-gallery-toolbar {
  position: sticky;
  z-index: 20;
  top: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  padding: 12px;
  border: 1px solid rgba(23, 18, 22, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(37, 20, 29, 0.07);
  backdrop-filter: blur(18px);
}

.dd-gallery-media-tabs {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.dd-gallery-media-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  color: #6f676c;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.dd-gallery-media-tabs button small {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(23, 18, 22, 0.07);
  font-size: 0.64rem;
}

.dd-gallery-media-tabs button:hover {
  color: var(--ddg-ink);
  background: #f6f2f4;
}

.dd-gallery-media-tabs button.is-active {
  color: #fff;
  background: var(--ddg-ink);
}

.dd-gallery-media-tabs button.is-active small {
  color: var(--ddg-ink);
  background: #fff;
}

.dd-gallery-category-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.dd-gallery-category-label {
  flex: 0 0 auto;
  color: #9a9196;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dd-gallery-category-chips {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.dd-gallery-category-chips::-webkit-scrollbar { display: none; }

.dd-gallery-category-chips button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(23, 18, 22, 0.09);
  border-radius: 999px;
  color: #756c72;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.dd-gallery-category-chips button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 42, 104, 0.28);
  color: var(--ddg-pink);
}

.dd-gallery-category-chips button.is-active {
  border-color: rgba(255, 42, 104, 0.16);
  color: var(--ddg-pink);
  background: var(--ddg-pink-soft);
}

.dd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.dd-gallery-card {
  grid-column: span 4;
  min-width: 0;
  animation: ddGalleryReveal 0.5s ease both;
}

.dd-gallery-card[hidden] {
  display: none !important;
}

.dd-gallery-card--feature { grid-column: span 8; }
.dd-gallery-card--wide { grid-column: span 8; }
.dd-gallery-card--portrait { grid-column: span 4; }
.dd-gallery-card--tall { grid-column: span 4; }

.dd-gallery-card__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 410px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #eee8eb;
  box-shadow: 0 15px 40px rgba(40, 21, 31, 0.08);
  isolation: isolate;
  text-align: left;
}

.dd-gallery-card--feature .dd-gallery-card__button { min-height: 540px; }
.dd-gallery-card--wide .dd-gallery-card__button { min-height: 390px; }
.dd-gallery-card--portrait .dd-gallery-card__button { min-height: 560px; }
.dd-gallery-card--tall .dd-gallery-card__button { min-height: 520px; }

.dd-gallery-card__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.dd-gallery-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 8, 10, 0.03) 5%, rgba(12, 8, 10, 0.04) 42%, rgba(12, 8, 10, 0.74) 100%);
  transition: background 0.3s ease;
}

.dd-gallery-card__topline {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dd-gallery-card__badge,
.dd-gallery-card__expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(15, 11, 13, 0.32);
  backdrop-filter: blur(13px);
}

.dd-gallery-card__badge {
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dd-gallery-card__expand {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: translateY(-4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.dd-gallery-card__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 12, 14, 0.28);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease, background 0.28s ease;
}

.dd-gallery-card__play i { margin-left: 3px; }

.dd-gallery-card__caption {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.dd-gallery-card__caption small {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dd-gallery-card__caption strong {
  font-size: clamp(1.05rem, 1.45vw, 1.42rem);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.dd-gallery-card__caption > span {
  display: -webkit-box;
  overflow: hidden;
  max-width: 600px;
  max-height: 0;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0;
  transition: max-height 0.35s ease, margin 0.35s ease, opacity 0.35s ease;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dd-gallery-card__button:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.02);
}

.dd-gallery-card__button:hover .dd-gallery-card__veil {
  background: linear-gradient(180deg, rgba(12, 8, 10, 0.02) 5%, rgba(12, 8, 10, 0.08) 42%, rgba(12, 8, 10, 0.82) 100%);
}

.dd-gallery-card__button:hover .dd-gallery-card__expand {
  transform: translateY(0);
  opacity: 1;
  background: rgba(255, 42, 104, 0.82);
}

.dd-gallery-card__button:hover .dd-gallery-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 42, 104, 0.84);
}

.dd-gallery-card__button:hover .dd-gallery-card__caption {
  transform: translateY(0);
}

.dd-gallery-card__button:hover .dd-gallery-card__caption > span {
  max-height: 52px;
  margin-top: 8px;
  opacity: 1;
}

.dd-gallery-empty {
  padding: 70px 20px;
  text-align: center;
}

.dd-gallery-empty > span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  color: var(--ddg-pink);
  background: var(--ddg-pink-soft);
  font-size: 1.4rem;
}

.dd-gallery-empty h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.dd-gallery-empty p {
  margin: 8px 0 18px;
  color: var(--ddg-muted);
}

.dd-gallery-empty button {
  border: 0;
  border-bottom: 1px solid var(--ddg-ink);
  color: var(--ddg-ink);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 800;
}

.dd-gallery-loadmore-wrap {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.dd-gallery-loadmore {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--ddg-line);
  border-radius: 999px;
  color: var(--ddg-ink);
  background: #fff;
  box-shadow: 0 12px 30px rgba(37, 20, 29, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dd-gallery-loadmore:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 42, 104, 0.25);
  box-shadow: 0 18px 40px rgba(37, 20, 29, 0.1);
}

.dd-gallery-loadmore i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ddg-pink);
}

.dd-gallery-story-cta {
  padding: 0 0 110px;
}

.dd-gallery-story-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  overflow: hidden;
  padding: 54px 58px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 42, 104, 0.32), transparent 24rem),
    linear-gradient(125deg, #130f12, #21161c);
  box-shadow: 0 28px 80px rgba(31, 17, 24, 0.16);
}

.dd-gallery-story-cta__inner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: 9%;
  bottom: -235px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 84px rgba(255, 255, 255, 0.018);
}

.dd-gallery-story-cta__inner > * {
  position: relative;
  z-index: 1;
}

.dd-gallery-story-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.dd-gallery-story-cta p {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.dd-gallery-story-cta__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.dd-gallery-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.dd-gallery-btn:hover { transform: translateY(-2px); }
.dd-gallery-btn--primary { color: #fff; background: var(--ddg-pink); }
.dd-gallery-btn--primary:hover { color: #fff; background: #ee1758; }
.dd-gallery-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; background: rgba(255, 255, 255, 0.06); }
.dd-gallery-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.dd-gallery-viewer[hidden] { display: none !important; }

.dd-gallery-viewer {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dd-gallery-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 7, 0.96);
}

.dd-gallery-viewer__panel {
  position: relative;
  display: grid;
  width: min(1500px, 100%);
  height: min(920px, calc(100vh - 36px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: #fff;
  background: #0f0c0e;
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.48);
  animation: ddGalleryViewerIn 0.3s ease both;
}

.dd-gallery-viewer__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 16px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dd-gallery-viewer__counter {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dd-gallery-viewer__counter span:first-child { color: #fff; }
.dd-gallery-viewer__counter i { width: 25px; height: 1px; background: rgba(255, 255, 255, 0.25); }

.dd-gallery-viewer__actions {
  display: flex;
  gap: 8px;
}

.dd-gallery-viewer__actions button,
.dd-gallery-viewer__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dd-gallery-viewer__actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dd-gallery-viewer__actions button:hover,
.dd-gallery-viewer__nav:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.dd-gallery-viewer__stage {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 50%),
    #0a0809;
}

.dd-gallery-viewer__media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  place-items: center;
  padding: 16px;
  contain: layout paint;
}

.dd-gallery-viewer__media::after {
  content: "Loading video…";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(10, 8, 9, 0.82);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.16s ease;
}

.dd-gallery-viewer__media.is-loading::after {
  opacity: 1;
}

.dd-gallery-viewer__media img,
.dd-gallery-viewer__media video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.dd-gallery-viewer__media img { width: auto; height: auto; }
.dd-gallery-viewer__media video { width: auto; height: 100%; background: #000; }

.dd-gallery-viewer.is-video .dd-gallery-viewer__stage {
  background: #000;
}

.dd-gallery-viewer.is-video .dd-gallery-viewer__panel,
.dd-gallery-viewer.is-video .dd-gallery-viewer__media video {
  box-shadow: none;
}

.dd-gallery-viewer.is-video .dd-gallery-viewer__media video {
  border-radius: 8px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dd-gallery-viewer__nav {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
}

.dd-gallery-viewer__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 112px;
  padding: 18px 26px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dd-gallery-viewer__info > div > span {
  color: #ff7da2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dd-gallery-viewer__info h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.dd-gallery-viewer__info p {
  max-width: 760px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  line-height: 1.55;
}

.dd-gallery-viewer__info a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.dd-gallery-viewer__info a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.dd-gallery-viewer-open {
  overflow: hidden !important;
}

@keyframes ddGalleryReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ddGalleryViewerIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1199px) {
  .dd-gallery-intro__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .dd-gallery-stats {
    max-width: 680px;
  }

  .dd-gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dd-gallery-category-wrap {
    width: 100%;
  }

  .dd-gallery-category-chips { flex: 1 1 auto; }

  .dd-gallery-card,
  .dd-gallery-card--portrait,
  .dd-gallery-card--tall {
    grid-column: span 6;
  }

  .dd-gallery-card--feature,
  .dd-gallery-card--wide {
    grid-column: span 6;
  }

  .dd-gallery-card__button,
  .dd-gallery-card--feature .dd-gallery-card__button,
  .dd-gallery-card--wide .dd-gallery-card__button,
  .dd-gallery-card--tall .dd-gallery-card__button {
    min-height: 430px;
  }

  .dd-gallery-card--portrait .dd-gallery-card__button { min-height: 540px; }

  .dd-gallery-story-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .dd-gallery-intro { padding: 70px 0 54px; }
  .dd-gallery-intro__copy h2 { font-size: clamp(2.3rem, 12vw, 4rem); }
  .dd-gallery-intro__copy p { margin-top: 18px; line-height: 1.65; }

  .dd-gallery-stats {
    width: 100%;
    border-radius: 22px;
  }

  .dd-gallery-stat { padding: 20px 8px; }
  .dd-gallery-stat span { font-size: 0.64rem; }

  .dd-gallery-reels { padding: 66px 0 70px; }
  .dd-gallery-section-head { align-items: flex-start; margin-bottom: 28px; }
  .dd-gallery-reels .dd-gallery-section-head { padding-right: 0; }
  .dd-gallery-rail-controls { display: none; }
  .dd-gallery-reel-rail { grid-auto-columns: minmax(210px, 72vw); gap: 13px; }

  .dd-gallery-collection { padding: 72px 0 78px; }
  .dd-gallery-section-head--collection { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dd-gallery-results { display: none; }

  .dd-gallery-toolbar {
    top: 68px;
    gap: 11px;
    margin: 0 -4px 24px;
    padding: 9px;
    border-radius: 19px;
  }

  .dd-gallery-media-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .dd-gallery-media-tabs button {
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
  }

  .dd-gallery-media-tabs button small { display: none; }
  .dd-gallery-category-label { display: none; }
  .dd-gallery-category-wrap { gap: 0; }

  .dd-gallery-grid { gap: 11px; }
  .dd-gallery-card,
  .dd-gallery-card--feature,
  .dd-gallery-card--wide,
  .dd-gallery-card--portrait,
  .dd-gallery-card--tall {
    grid-column: span 12;
  }

  .dd-gallery-card__button,
  .dd-gallery-card--feature .dd-gallery-card__button,
  .dd-gallery-card--wide .dd-gallery-card__button,
  .dd-gallery-card--tall .dd-gallery-card__button {
    min-height: 390px;
    border-radius: 21px;
  }

  .dd-gallery-card--portrait .dd-gallery-card__button { min-height: min(620px, 125vw); }
  .dd-gallery-card__expand { transform: none; opacity: 1; }
  .dd-gallery-card__caption { right: 18px; bottom: 18px; left: 18px; }
  .dd-gallery-card__caption > span { display: none; }

  .dd-gallery-story-cta { padding-bottom: 76px; }
  .dd-gallery-story-cta__inner { padding: 36px 24px; border-radius: 26px; }
  .dd-gallery-story-cta__actions { width: 100%; flex-direction: column; }
  .dd-gallery-btn { width: 100%; }

  .dd-gallery-viewer { padding: 0; }
  .dd-gallery-viewer__panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .dd-gallery-viewer__stage { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .dd-gallery-viewer__media { padding: 8px 0; }
  .dd-gallery-viewer__nav { width: 36px; height: 36px; font-size: 0.75rem; }
  .dd-gallery-viewer__info { min-height: 105px; padding: 14px 18px 17px; }
  .dd-gallery-viewer__info a { display: none !important; }
  .dd-gallery-viewer__info p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

@media (max-width: 430px) {
  .dd-gallery-stats { grid-template-columns: repeat(3, 1fr); }
  .dd-gallery-stat strong { font-size: 1.35rem; }
  .dd-gallery-media-tabs button i { display: none; }
  .dd-gallery-category-chips button { min-height: 36px; padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .dd-gallery-page *,
  .dd-gallery-viewer * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
