.cde-front {
  --cde-pink: #ff2ca8;
  --cde-orange: #ffb434;
  --cde-navy: #15182b;
  --cde-cream: #fff9f2;
  --cde-green: #2de1b0;
  --cde-ink: #111426;
  --cde-muted: #5c6174;
  background: var(--cde-cream);
  color: var(--cde-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.path-frontpage {
  background: var(--cde-cream);
}

body.path-frontpage #main-wrapper,
body.path-frontpage #main,
body.path-frontpage main#content {
  background: var(--cde-cream);
  max-width: none;
  padding: 0;
  width: 100%;
}

body.path-frontpage #block-logoportada,
body.path-frontpage #block-recursosinformacion,
body.path-frontpage #block-logospie,
body.path-frontpage #block-bootstrap-barrio-subtheme-content,
body.path-frontpage .highlighted {
  display: none;
}

body.path-frontpage #header {
  background: transparent;
  position: absolute;
  width: 100%;
  z-index: 20;
}

body.path-frontpage #navbar-main {
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

body.path-frontpage #block-anonimo a,
body.path-frontpage .navbar a {
  color: #ffffff;
}

body.path-frontpage .navbar-toggler {
  background: rgba(255, 255, 255, .92);
  border-radius: 8px;
}

.cde-wrap {
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 24px;
  width: 100%;
}

.cde-hero {
  background: var(--cde-navy);
  color: #ffffff;
  overflow: hidden;
  padding: 118px 0 84px;
  position: relative;
}

.cde-hero__accent {
  background: var(--cde-pink);
  height: 210px;
  opacity: .95;
  position: absolute;
  transform: rotate(-8deg);
  width: 58%;
}

.cde-hero__accent--pink {
  right: -16%;
  top: -90px;
}

.cde-hero__accent--orange {
  background: var(--cde-orange);
  bottom: -130px;
  left: -18%;
}

.cde-hero__grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  position: relative;
  z-index: 1;
}

.cde-hero__logo-link {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  display: inline-flex;
  margin-bottom: 34px;
  max-width: 100%;
  padding: 12px 16px;
}

.cde-hero__logo {
  height: auto;
  max-width: 300px;
  width: 100%;
}

.cde-eyebrow {
  color: var(--cde-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cde-hero h1,
.cde-library-hero h1 {
  color: #ffffff;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.cde-hero__lead,
.cde-library-hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 650px;
}

.cde-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cde-button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  text-decoration: none;
}

.cde-button:hover,
.cde-text-link:hover {
  text-decoration: none;
}

.cde-button--primary {
  background: var(--cde-pink);
  color: #ffffff;
}

.cde-button--light {
  background: #ffffff;
  color: var(--cde-navy);
}

.cde-button--dark {
  background: var(--cde-navy);
  color: #ffffff;
}

.cde-hero__panel {
  display: grid;
  gap: 16px;
}

.cde-mini-card {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 3px 16px;
  grid-template-columns: 118px 1fr;
  min-height: 112px;
  padding: 12px;
  text-decoration: none;
}

.cde-mini-card:hover {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  text-decoration: none;
}

.cde-mini-card img {
  border-radius: 6px;
  grid-row: span 2;
  height: 88px;
  object-fit: cover;
  width: 118px;
}

.cde-mini-card span {
  color: var(--cde-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cde-mini-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.cde-event-gallery-band {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.cde-event-gallery {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(21, 24, 43, .08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(21, 24, 43, .13);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 370px;
  padding: 18px;
}

.cde-event-gallery__copy {
  padding: 8px 6px;
}

.cde-event-gallery__copy .cde-eyebrow {
  color: var(--cde-pink);
}

.cde-event-gallery__copy h2 {
  color: var(--cde-navy);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.cde-event-gallery__copy p:not(.cde-eyebrow) {
  color: var(--cde-muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 12px 0 18px;
  max-width: 660px;
}

.cde-event-gallery__preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.cde-event-gallery__preview img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.cde-feature-section {
  padding: 70px 0 78px;
}

.cde-section-heading h2,
.cde-resources-head h2 {
  color: var(--cde-navy);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.cde-feature-grid,
.cde-resource-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.cde-feature-card,
.cde-resource-card,
.cde-empty-state {
  background: #ffffff;
  border: 1px solid rgba(21, 24, 43, .08);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(21, 24, 43, .08);
  overflow: hidden;
}

.cde-feature-card__image {
  aspect-ratio: 16 / 10;
  background: var(--cde-orange);
  overflow: hidden;
}

.cde-feature-card__image img,
.cde-resource-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cde-feature-card__body,
.cde-resource-card__body {
  padding: 22px;
}

.cde-feature-card__body span {
  color: var(--cde-pink);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cde-resource-card__tag {
  background: rgba(45, 225, 176, .16);
  border: 1px solid rgba(45, 225, 176, .42);
  border-radius: 999px;
  color: var(--cde-navy);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.cde-feature-card h3,
.cde-resource-card h3,
.cde-empty-state h3 {
  color: var(--cde-navy);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 10px;
}

.cde-feature-card p,
.cde-resource-card p,
.cde-resources-head p,
.cde-empty-state p {
  color: var(--cde-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.cde-text-link {
  color: var(--cde-pink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  margin-top: 18px;
  text-decoration: none;
}

.cde-resource-card__download {
  align-items: center;
  background: var(--cde-pink);
  border: 2px solid var(--cde-pink);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  margin-top: 20px;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
}

.cde-resource-card__download:hover,
.cde-resource-card__download:focus {
  background: var(--cde-navy);
  border-color: var(--cde-navy);
  color: #ffffff;
  text-decoration: none;
}

.cde-resources-band {
  background: var(--cde-pink);
  color: #ffffff;
  padding: 72px 0 84px;
}

.cde-resources-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cde-resources-head h2,
.cde-resources-head p,
.cde-resources-head .cde-eyebrow {
  color: #ffffff;
}

.cde-resources-head p {
  max-width: 680px;
  opacity: .86;
}

.cde-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.cde-filter__button {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 13px;
}

.cde-filter__button.is-active,
.cde-library-page .cde-filter__button.is-active {
  background: var(--cde-orange);
  border-color: var(--cde-orange);
  color: var(--cde-navy);
}

.cde-resource-card {
  display: flex;
  flex-direction: column;
}

.cde-resource-card.is-hidden {
  display: none;
}

.cde-resource-card__media {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: var(--cde-navy);
  display: flex;
  justify-content: center;
  min-height: 178px;
  overflow: hidden;
}

.cde-resource-card__file {
  align-items: center;
  background: #ffffff;
  border: 4px solid var(--cde-orange);
  border-radius: 8px;
  color: var(--cde-navy);
  display: inline-flex;
  font-size: 28px;
  font-weight: 900;
  height: 96px;
  justify-content: center;
  width: 128px;
}

.cde-resource-card__body {
  flex: 1;
}

.cde-institutional {
  background: var(--cde-cream);
  padding: 42px 24px 32px;
  text-align: center;
}

.cde-institutional img {
  height: auto;
  max-width: 760px;
  width: 86%;
}

.cde-maker-banner {
  background: var(--cde-navy);
  border-top: 2px solid #2ecff6;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.cde-maker-banner:before {
  background:
    linear-gradient(90deg, rgba(46, 207, 246, .26) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(46, 207, 246, .16) 1px, transparent 1px) 0 0 / 64px 64px;
  content: "";
  inset: 0;
  opacity: .28;
  pointer-events: none;
  position: absolute;
}

.cde-maker-banner:after {
  background: var(--cde-pink);
  content: "";
  height: 190px;
  opacity: .95;
  position: absolute;
  right: -130px;
  top: -80px;
  transform: rotate(-8deg);
  width: 300px;
}

.cde-maker-banner__inner {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  min-height: 330px;
  padding-bottom: 42px;
  padding-top: 42px;
  position: relative;
  z-index: 1;
}

.cde-maker-banner__content {
  max-width: 620px;
  position: relative;
}

.cde-maker-banner__content:before {
  border-left: 2px solid rgba(46, 207, 246, .7);
  border-top: 2px solid rgba(46, 207, 246, .7);
  content: "";
  height: 42px;
  left: -18px;
  position: absolute;
  top: -14px;
  width: 86px;
}

.cde-maker-banner__identity {
  align-items: flex-start;
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
  max-width: 238px;
}

.cde-maker-banner__logo {
  display: block;
  filter: brightness(0) invert(1);
  height: auto;
  opacity: .96;
  width: 210px;
}

.cde-maker-banner__brand {
  color: var(--cde-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.cde-maker-banner h2 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.cde-maker-banner p {
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  line-height: 1.52;
  margin: 16px 0 24px;
}

.cde-maker-banner__button {
  background: var(--cde-pink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 44, 168, .2);
}

.cde-maker-banner__button:hover,
.cde-maker-banner__button:focus {
  background: #2ecff6;
  color: var(--cde-navy);
  outline: 3px solid rgba(46, 207, 246, .35);
  outline-offset: 3px;
  text-decoration: none;
}

.cde-maker-banner__media {
  align-self: stretch;
  border-left: 1px solid rgba(46, 207, 246, .34);
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.cde-maker-banner__media:before {
  background: linear-gradient(90deg, var(--cde-navy) 0%, rgba(21, 24, 43, .72) 24%, rgba(21, 24, 43, 0) 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.cde-maker-banner__media:after {
  border: 1px solid rgba(46, 207, 246, .45);
  border-left: 0;
  border-bottom: 0;
  content: "";
  height: 78px;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 160px;
  z-index: 2;
}

.cde-maker-banner__media img {
  display: block;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

.cde-library-hero {
  background: var(--cde-navy);
  color: #ffffff;
  padding: 86px 0 64px;
}

.cde-library-content {
  padding: 48px 24px 80px;
}

.cde-library-page .cde-filter__button {
  background: #ffffff;
  border-color: rgba(21, 24, 43, .12);
  color: var(--cde-navy);
}

.cde-empty-state {
  padding: 28px;
}

@media (max-width: 991px) {
  .cde-hero {
    padding: 96px 0 64px;
  }

  .cde-hero__grid,
  .cde-feature-grid,
  .cde-resource-grid {
    grid-template-columns: 1fr;
  }

  .cde-event-gallery {
    grid-template-columns: 1fr;
  }

  .cde-maker-banner__inner {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .cde-maker-banner__media {
    border-left: 0;
  }

  .cde-hero h1,
  .cde-library-hero h1 {
    font-size: 42px;
  }

  .cde-hero__lead,
  .cde-library-hero p {
    font-size: 18px;
  }

  .cde-resources-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .cde-wrap {
    padding: 0 16px;
  }

  .cde-hero {
    padding: 84px 0 48px;
  }

  .cde-hero h1,
  .cde-library-hero h1 {
    font-size: 34px;
  }

  .cde-hero__logo {
    max-width: 220px;
  }

  .cde-hero__actions {
    flex-direction: column;
  }

  .cde-button {
    width: 100%;
  }

  .cde-mini-card {
    grid-template-columns: 88px 1fr;
  }

  .cde-mini-card img {
    height: 70px;
    width: 88px;
  }

  .cde-mini-card strong {
    font-size: 18px;
  }

  .cde-section-heading h2,
  .cde-resources-head h2 {
    font-size: 30px;
  }

  .cde-feature-section {
    padding: 34px 0 40px;
  }

  .cde-event-gallery-band {
    margin-top: -20px;
  }

  .cde-event-gallery {
    gap: 14px;
    padding: 14px;
  }

  .cde-event-gallery__copy {
    padding: 2px 0 0;
  }

  .cde-event-gallery__copy h2 {
    font-size: 26px;
  }

  .cde-event-gallery__copy p:not(.cde-eyebrow) {
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0 14px;
  }

  .cde-event-gallery__preview {
    gap: 6px;
  }

  .cde-maker-banner:after {
    height: 150px;
    right: -150px;
    top: -90px;
  }

  .cde-maker-banner__inner {
    gap: 22px;
    min-height: 0;
    padding-bottom: 30px;
    padding-top: 32px;
  }

  .cde-maker-banner__content:before {
    height: 32px;
    left: -10px;
    top: -10px;
    width: 58px;
  }

  .cde-maker-banner__identity {
    margin-bottom: 12px;
    max-width: 205px;
  }

  .cde-maker-banner__logo {
    width: 180px;
  }

  .cde-maker-banner h2 {
    font-size: 28px;
  }

  .cde-maker-banner p {
    font-size: 15px;
    line-height: 1.45;
    margin: 13px 0 18px;
  }

  .cde-maker-banner__media,
  .cde-maker-banner__media img {
    min-height: 220px;
  }

  .cde-maker-banner__media:before {
    background: linear-gradient(180deg, var(--cde-navy) 0%, rgba(21, 24, 43, .18) 38%, rgba(21, 24, 43, 0) 66%);
  }

  .cde-section-heading .cde-eyebrow {
    margin-bottom: 7px;
  }

  .cde-feature-grid {
    gap: 12px;
    margin-top: 16px;
  }

  .cde-feature-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cde-feature-card__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .cde-feature-card__body {
    padding: 13px 14px;
  }

  .cde-feature-card__body span {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .cde-feature-card h3,
  .cde-resource-card h3 {
    font-size: 18px;
    line-height: 1.18;
    margin-bottom: 6px;
  }

  .cde-feature-card p,
  .cde-resource-card p {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cde-feature-card .cde-text-link {
    background: var(--cde-pink);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    justify-content: center;
    margin-top: 10px;
    min-height: 34px;
    padding: 7px 10px;
  }

  .cde-resources-band {
    padding: 36px 0 42px;
  }

  .cde-resources-head {
    gap: 12px;
    margin-bottom: 16px;
  }

  .cde-resources-head .cde-eyebrow {
    margin-bottom: 7px;
  }

  .cde-resources-head h2 {
    font-size: 28px;
  }

  .cde-resources-head p {
    font-size: 13px;
    line-height: 1.35;
  }

  .cde-resources-head .cde-button {
    min-height: 38px;
    padding: 8px 13px;
  }

  .cde-filter {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 14px;
    overflow-x: auto;
    padding: 0 16px 4px;
  }

  .cde-filter__button {
    flex: 0 0 auto;
    font-size: 12px;
    min-height: 34px;
    padding: 7px 11px;
  }

  .cde-resource-grid {
    gap: 12px;
    margin-top: 16px;
  }

  .cde-resource-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .cde-resource-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .cde-resource-card__file {
    border-width: 3px;
    font-size: 18px;
    height: 56px;
    width: 72px;
  }

  .cde-resource-card__body {
    padding: 12px;
  }

  .cde-resource-card__tag {
    font-size: 9px;
    margin-bottom: 7px;
    padding: 5px 7px;
  }

  .cde-resource-card__download {
    font-size: 12px;
    margin-top: 10px;
    min-height: 34px;
    padding: 7px 10px;
    width: 100%;
  }
}

.cde-gallery-hero {
  padding-bottom: 62px;
}

.cde-gallery-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cde-gallery-hero__count {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 800;
}

.cde-gallery-content {
  padding: 42px 24px 76px;
}

.cde-gallery-albums {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 28px;
}

.cde-gallery-album {
  background: #ffffff;
  border: 1px solid rgba(21, 24, 43, .1);
  border-left: 6px solid var(--cde-pink);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 24, 43, .07);
  color: var(--cde-ink);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 16px;
  text-align: left;
  text-decoration: none;
}

.cde-gallery-album:nth-child(2n) {
  border-left-color: var(--cde-orange);
}

.cde-gallery-album:nth-child(3n) {
  border-left-color: var(--cde-green);
}

.cde-gallery-album:hover {
  box-shadow: 0 16px 36px rgba(21, 24, 43, .12);
  color: var(--cde-ink);
  text-decoration: none;
}

.cde-gallery-album.is-active {
  background: var(--cde-navy);
  border-color: var(--cde-navy);
  color: #ffffff;
}

.cde-gallery-album.is-active strong {
  color: rgba(255, 255, 255, .78);
}

.cde-gallery-album span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.cde-gallery-album strong {
  color: var(--cde-muted);
  font-size: 13px;
}

.cde-gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.cde-gallery-card {
  background: #ffffff;
  border: 1px solid rgba(21, 24, 43, .08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(21, 24, 43, .08);
  overflow: hidden;
}

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

.cde-gallery-card__media {
  aspect-ratio: 4 / 3;
  background: #edf0f5;
  border: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.cde-gallery-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
  width: 100%;
}

.cde-gallery-card__media:hover img,
.cde-gallery-card__media:focus img {
  transform: scale(1.04);
}

.cde-gallery-card__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.cde-gallery-card__body span {
  color: var(--cde-pink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cde-gallery-card__body strong {
  color: var(--cde-navy);
  font-size: 14px;
  line-height: 1.25;
  min-height: 36px;
  overflow-wrap: anywhere;
}

.cde-gallery-card__actions {
  display: flex;
  gap: 8px;
}

.cde-gallery-card__actions a {
  align-items: center;
  background: var(--cde-navy);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  text-decoration: none;
  width: 100%;
}

.cde-gallery-card__actions a + a {
  background: #f1f3f8;
  color: var(--cde-navy);
}

.cde-gallery-lightbox[hidden] {
  display: none;
}

.cde-gallery-lightbox {
  align-items: center;
  background: rgba(17, 20, 38, .88);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.cde-gallery-lightbox__dialog {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  max-height: calc(100vh - 48px);
  max-width: 1120px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cde-gallery-lightbox__dialog img {
  background: #15182b;
  display: block;
  height: min(72vh, 760px);
  object-fit: contain;
  width: 100%;
}

.cde-gallery-lightbox__close {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  color: var(--cde-navy);
  display: flex;
  font-size: 30px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
}

.cde-gallery-lightbox__footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.cde-gallery-lightbox__footer strong {
  color: var(--cde-navy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cde-gallery-lightbox__footer div {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

@media (max-width: 991px) {
  .cde-gallery-albums {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 575px) {
  .cde-gallery-hero {
    padding: 82px 0 38px;
  }

  .cde-gallery-hero__actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .cde-gallery-hero__actions .cde-button {
    width: 100%;
  }

  .cde-gallery-hero__count {
    font-size: 13px;
  }

  .cde-gallery-content {
    padding: 24px 16px 54px;
  }

  .cde-gallery-albums {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .cde-gallery-album {
    min-height: 72px;
    padding: 13px 14px;
  }

  .cde-gallery-grid {
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .cde-gallery-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .cde-gallery-card__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .cde-gallery-card__body {
    padding: 10px;
  }

  .cde-gallery-card__body strong {
    font-size: 13px;
    min-height: 0;
  }

  .cde-gallery-card__actions a {
    font-size: 11px;
    min-height: 32px;
  }

  .cde-gallery-lightbox {
    padding: 10px;
  }

  .cde-gallery-lightbox__dialog {
    max-height: calc(100vh - 20px);
  }

  .cde-gallery-lightbox__dialog img {
    height: 58vh;
  }

  .cde-gallery-lightbox__footer {
    align-items: stretch;
    display: grid;
    gap: 12px;
  }

  .cde-gallery-lightbox__footer div {
    display: grid;
    gap: 8px;
  }
}
