.ddc-gallery-page {
  background: #F8FBFD;
  color: #000000;
}

/* 1. HERO + TOOLBAR */
.ddc-gallery-hero {
  padding: 58px 5vw 32px;
  background: linear-gradient(180deg, #EEF7F7 0%, #F8FBFD 100%);
  text-align: center;
}

.ddc-gallery-hero .section-head {
  margin-bottom: 1.75rem;
}

.ddc-gallery-hero__title {
  color: #1E8E85;
  margin: 0 0 .65rem;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
}

.ddc-gallery-hero .section-intro {
  color: #334155;
  max-width: 600px;
  margin: 0 auto;
  font-size: .98rem;
  line-height: 1.65;
}

.ddc-gallery-toolbar {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #DCEAF5;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(26, 59, 66, .05);
}

.ddc-gallery-search-wrap {
  position: relative;
  margin-bottom: .9rem;
}

.ddc-gallery-search-wrap .dashicons {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.ddc-gallery-search-input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.5rem;
  border: 1px solid #DCEAF5;
  border-radius: 10px;
  background: #F8FBFD;
  color: #000000;
  font-size: .92rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.ddc-gallery-search-input:focus {
  border-color: #2BB3A7;
  background: #ffffff;
}

.ddc-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
}

.ddc-gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: .46rem 1.05rem;
  border-radius: 999px;
  border: 1px solid #CFE0EF;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.ddc-gallery-filter-btn:hover {
  border-color: #2BB3A7;
  color: #1E8E85;
  background: #EBF7F6;
}

.ddc-gallery-filter-btn.is-active {
  background: #2BB3A7;
  border-color: #2BB3A7;
  color: #ffffff;
}

/* SECTION HEADINGS */
.ddc-gallery-sec-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 1.65rem;
  font-family: var(--heading-font, 'Inter'), sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #0F172A;
}

.ddc-gallery-sec-heading .dashicons {
  color: #2BB3A7;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

/* 2. FEATURED TRANSFORMATIONS (4 CARDS) */
.ddc-gallery-featured {
  padding: 2.25rem 5vw 2.75rem;
  background: #F8FBFD;
}

.ddc-gallery-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.ddc-feat-card {
  background: #ffffff;
  border: 1px solid #DCEAF5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(26, 59, 66, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ddc-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(26, 59, 66, .1);
}

.ddc-feat-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: #E6F0F8;
}

.ddc-feat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.ddc-feat-card__media:hover img {
  transform: scale(1.04);
}

.ddc-ba-pill {
  position: absolute;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #ffffff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.ddc-ba-pill--top {
  top: 8px;
}

.ddc-ba-pill--bot {
  bottom: 8px;
  background: rgba(30, 142, 133, .88);
}

.ddc-feat-card__body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ddc-gallery-cat-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: .2rem .62rem;
  border-radius: 999px;
  background: #2BB3A7;
  color: #ffffff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .55rem;
}

.ddc-feat-card__body h3 {
  margin: 0 0 .65rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.38;
  color: #0F172A;
}

.ddc-feat-card__tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.ddc-feat-card__tags span {
  padding: .18rem .52rem;
  border-radius: 6px;
  background: #F1F5F9;
  color: #475569;
  font-size: .7rem;
  font-weight: 600;
}

/* 3. BROWSE RESULTS (3-COL CARDS) */
.ddc-gallery-browse {
  padding: 2.5rem 5vw 3.5rem;
  background: #F8FBFD;
}

.ddc-browse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ddc-browse-card {
  background: #ffffff;
  border: 1px solid #DCEAF5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(26, 59, 66, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ddc-browse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 59, 66, .11);
}

.ddc-browse-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0F172A;
}

.ddc-browse-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ddc-browse-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.ddc-browse-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ddc-browse-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem .85rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .82) 100%);
}

.ddc-browse-card__overlay h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
}

.ddc-browse-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ddc-browse-card__note {
  margin: 0 0 1.15rem;
  font-size: .88rem;
  line-height: 1.6;
  color: #475569;
}

.ddc-browse-card__meta {
  margin-top: auto;
  padding-top: .75rem;
  margin-bottom: .9rem;
  border-top: 1px solid #EEF4F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.ddc-browse-card__count {
  padding: .2rem .55rem;
  border-radius: 6px;
  background: #E8F7F6;
  color: #1E8E85;
  font-size: .72rem;
  font-weight: 700;
}

.ddc-browse-card__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #475569;
}

.ddc-browse-card__btn {
  width: 100%;
  padding: .72rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #2BB3A7;
  color: #ffffff;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.ddc-browse-card__btn:hover {
  background: #1E8E85;
}

.ddc-gallery-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #475569;
  font-size: .96rem;
}

/* 4. BOTTOM CTA BANNER */
.ddc-gallery-cta {
  padding: 1rem 5vw 4.5rem;
  background: #F8FBFD;
}

.ddc-gallery-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #1E8E85 0%, #2BB3A7 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(30, 142, 133, .2);
}

.ddc-gallery-cta-inner h2 {
  margin: 0 0 .65rem;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
}

.ddc-gallery-cta-inner p {
  margin: 0 auto 1.5rem;
  max-width: 580px;
  color: rgba(255, 255, 255, .94);
  font-size: .96rem;
  line-height: 1.65;
}

.ddc-gallery-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
}

.ddc-gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease;
}

.ddc-gallery-cta-btn--white {
  background: #ffffff;
  color: #1E8E85;
}

.ddc-gallery-cta-btn--white:hover {
  transform: translateY(-1px);
  color: #1A3B42;
}

.ddc-gallery-cta-btn--outline {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .72);
  color: #ffffff;
}

.ddc-gallery-cta-btn--outline:hover {
  background: rgba(255, 255, 255, .24);
  color: #ffffff;
}

/* LIGHTBOX MODAL */
.ddc-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, .88);
  backdrop-filter: blur(6px);
}

.ddc-gallery-lightbox.is-open {
  display: flex;
}

.ddc-gallery-lightbox__dialog {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.ddc-gallery-lightbox__media {
  background: #0F172A;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ddc-gallery-lightbox__media img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  display: block;
}

.ddc-gallery-lightbox__caption {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
}

.ddc-gallery-lightbox__info {
  display: flex;
  flex-direction: column;
}

.ddc-gallery-lightbox__info strong {
  font-size: 1.05rem;
  color: #0F172A;
  margin-bottom: .35rem;
}

.ddc-gallery-lightbox__info p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: #475569;
}

.ddc-gallery-lightbox__controls {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

.ddc-gallery-lightbox__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #CFE0EF;
  background: #F3F8FC;
  color: #1E8E85;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ddc-gallery-lightbox__btn:hover {
  background: #1E8E85;
  border-color: #1E8E85;
  color: #ffffff;
}

.ddc-gallery-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, .8);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ddc-gallery-lightbox__close:hover {
  background: #2BB3A7;
}

@media (max-width: 1024px) {
  .ddc-gallery-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ddc-browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ddc-gallery-hero {
    padding: 44px 4vw 24px;
  }

  .ddc-gallery-featured-grid,
  .ddc-browse-grid {
    grid-template-columns: 1fr;
  }

  .ddc-gallery-cta-inner {
    padding: 2.25rem 1.25rem;
  }

  .ddc-gallery-lightbox__caption {
    flex-direction: column;
  }
}
