.ecc-gallery {
  --ecc-green: #123f35;
  --ecc-gold: #c4a96b;
  --ecc-ink: #17211f;
  --ecc-muted: #66716f;
  --ecc-surface: #f5f3ee;
  width: min(1180px, 100%);
  margin-inline: auto;
  scroll-margin-top: 6rem;
}

.ecc-gallery-page {
  color: #17211f;
  background: #fff;
}

.ecc-gallery-page__hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 58vh, 680px);
  overflow: hidden;
  color: #fff;
  background: #123f35;
}

.ecc-gallery-page__hero > img,
.ecc-gallery-page__hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecc-gallery-page__hero > img { object-fit: cover; }
.ecc-gallery-page__hero-overlay { background: linear-gradient(180deg, rgba(6,24,20,.12), rgba(6,24,20,.82)); }

.ecc-gallery-page__hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.ecc-gallery-page__hero-content p,
.ecc-gallery-page__heading > p {
  margin: 0 0 .8rem;
  color: #c4a96b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ecc-gallery-page__hero-content h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .98;
}

.ecc-gallery-page__hero-content span {
  display: block;
  max-width: 620px;
  margin-top: 1.2rem;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.ecc-gallery-page__body {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
}

body.ecc-template-gallery .ecc-gallery-page__body {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

body.ecc-template-gallery .ecc-gallery {
  padding: 0;
}

.ecc-gallery-page__heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.ecc-gallery-page__heading h2 {
  margin: 0;
  color: #123f35;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.06;
}

.ecc-gallery-page__heading > span {
  display: block;
  margin-top: 1rem;
  color: #66716f;
  font-size: 1.05rem;
}

.ecc-gallery-filters {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(260px, 1.3fr);
  gap: 1rem 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(18, 63, 53, .12);
  border-radius: 20px;
  background: #f5f3ee;
  box-shadow: 0 12px 36px rgba(18, 63, 53, .06);
}

.ecc-gallery-login[hidden],
.ecc-gallery-view[hidden] {
  display: none;
}

.ecc-gallery-login__intro {
  grid-column: 1 / -1;
  max-width: 760px;
  padding-bottom: .35rem;
}

.ecc-gallery-login__intro p {
  margin: 0 0 .45rem;
  color: var(--ecc-gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ecc-gallery-login__intro h3 {
  margin: 0;
  color: var(--ecc-green);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.ecc-gallery-login__intro span {
  display: block;
  margin-top: .7rem;
  color: var(--ecc-muted);
  line-height: 1.55;
}

.ecc-gallery-view:focus {
  outline: none;
}

.ecc-gallery-days {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid rgba(18, 63, 53, .13);
  border-radius: 18px;
  background: var(--ecc-surface);
}

.ecc-gallery-days[hidden] { display: none; }

.ecc-gallery-days__heading {
  display: grid;
  gap: .2rem;
}

.ecc-gallery-days__heading span {
  color: var(--ecc-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ecc-gallery-days__heading strong {
  color: var(--ecc-green);
  font-size: 1rem;
  line-height: 1.3;
}

.ecc-gallery-days__list {
  display: flex;
  gap: .65rem;
  min-width: 0;
  padding: .15rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--ecc-gold) transparent;
  scrollbar-width: thin;
}

.ecc-gallery-day {
  display: grid;
  flex: 0 0 auto;
  gap: .1rem;
  min-width: 132px;
  min-height: 62px;
  padding: .7rem 1rem;
  border: 1px solid rgba(18, 63, 53, .2);
  border-radius: 13px;
  color: var(--ecc-green);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ecc-gallery-day span {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

.ecc-gallery-day strong {
  font-size: .92rem;
  text-transform: capitalize;
}

.ecc-gallery-day:hover,
.ecc-gallery-day:focus-visible,
.ecc-gallery-day.is-current {
  border-color: var(--ecc-green);
  color: #fff;
  background: var(--ecc-green);
  outline: none;
  transform: translateY(-1px);
}

.ecc-gallery-day:focus-visible {
  box-shadow: 0 0 0 3px rgba(196, 169, 107, .45);
}

.ecc-gallery-filters__field {
  display: grid;
  gap: .55rem;
}

.ecc-gallery-deal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
}

.ecc-gallery-deal-row.has-management-actions { grid-template-columns: minmax(0, 1fr) 52px 52px; }
.ecc-gallery-filters.is-locked .ecc-gallery-deal-row { grid-template-columns: 1fr; }

.ecc-gallery-secure-link,
.ecc-gallery-password-reveal {
  display: grid;
  width: 52px;
  min-height: 52px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #123f35;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.ecc-gallery-secure-link:hover,
.ecc-gallery-secure-link:focus-visible,
.ecc-gallery-secure-link.is-copied,
.ecc-gallery-password-reveal:hover,
.ecc-gallery-password-reveal:focus-visible {
  color: #123f35;
  background: #c4a96b;
  outline: 3px solid rgba(196, 169, 107, .35);
}

.ecc-gallery-secure-link:active,
.ecc-gallery-password-reveal:active { transform: scale(.94); }
.ecc-gallery-secure-link:disabled,
.ecc-gallery-password-reveal:disabled { opacity: .35; cursor: not-allowed; }

.ecc-gallery-password-output {
  grid-column: 1 / -1;
  padding: .85rem 1rem;
  border: 1px solid rgba(196, 169, 107, .7);
  border-radius: 12px;
  color: #123f35;
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.ecc-gallery-password-entry {
  grid-column: 1 / -1;
  display: grid;
  gap: .55rem;
}

.ecc-gallery-password-entry[hidden] { display: none; }

.ecc-gallery-password-entry > label {
  color: #123f35;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ecc-gallery-password-entry__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
}

.ecc-gallery-password-submit {
  min-height: 52px;
  padding: .8rem 1.2rem;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #123f35;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ecc-gallery-password-submit:hover,
.ecc-gallery-password-submit:focus-visible {
  color: #123f35;
  background: #c4a96b;
  outline: 3px solid rgba(196, 169, 107, .35);
}

.ecc-gallery-access-intro {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-left: 4px solid #c4a96b;
  border-radius: 14px;
  color: #17211f;
  background: #f5f3ee;
}

.ecc-gallery-access-intro p { margin: 0; }

.ecc-gallery-access-error {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-left: 4px solid #c4a96b;
  border-radius: 14px;
  color: #17211f;
  background: #f5f3ee;
}

.ecc-gallery-access-error h3 { margin: 0 0 .5rem; color: #123f35; }
.ecc-gallery-access-error p { margin: 0; }

.ecc-gallery-filters__field label {
  color: #123f35;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ecc-gallery-filters input,
.ecc-gallery-filters select {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid rgba(18, 63, 53, .24);
  border-radius: 12px;
  color: #17211f;
  background: #fff;
  font: inherit;
  line-height: 1.25;
}

.ecc-gallery-filters input:focus,
.ecc-gallery-filters select:focus {
  border-color: #123f35;
  outline: 3px solid rgba(196, 169, 107, .42);
  outline-offset: 1px;
}

.ecc-gallery-filters select:disabled {
  color: #66716f;
  background: #eceae4;
  cursor: not-allowed;
}

.ecc-gallery-filters__status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  color: #66716f;
  font-size: .9rem;
}

.ecc-gallery__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ecc-gallery__content {
  transition: opacity 180ms ease;
}

.ecc-gallery.is-loading .ecc-gallery__content {
  opacity: .42;
  pointer-events: none;
}

.ecc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.ecc-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(18, 63, 53, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 63, 53, .08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ecc-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(18, 63, 53, .13);
}

.ecc-gallery-card__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--ecc-surface);
  cursor: zoom-in;
}

.ecc-gallery-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2,.75,.3,1);
}

.ecc-gallery-card__hidden-film {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  pointer-events: none;
  background: rgba(255, 255, 255, .78);
  opacity: 0;
  transition: opacity 180ms ease;
}

.ecc-gallery-card.is-hidden .ecc-gallery-card__hidden-film { opacity: 1; }
.ecc-gallery-card.is-hidden .ecc-gallery-card__preview img { filter: grayscale(.45); }

.ecc-gallery-card:hover .ecc-gallery-card__preview img {
  transform: scale(1.035);
}

.ecc-gallery-card__zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 63, 53, .84);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.ecc-gallery-card__actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.ecc-gallery-card__visibility,
.ecc-gallery-card__cover {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(18, 63, 53, .22);
  border-radius: 50%;
  color: var(--ecc-green);
  background: #fff;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ecc-gallery-card__visibility:hover,
.ecc-gallery-card__visibility:focus-visible,
.ecc-gallery-card__cover:hover,
.ecc-gallery-card__cover:focus-visible {
  color: #fff;
  background: var(--ecc-green);
  transform: translateY(-1px);
}

.ecc-gallery-card__visibility[aria-pressed="true"] {
  border-color: var(--ecc-gold);
  color: var(--ecc-green);
  background: var(--ecc-gold);
}

.ecc-gallery-card__cover.is-selected,
.ecc-gallery-card__cover[aria-pressed="true"] {
  border-color: var(--ecc-gold);
  color: var(--ecc-green);
  background: var(--ecc-gold);
}

.ecc-gallery-card__visibility:disabled,
.ecc-gallery-card__cover:disabled {
  opacity: .55;
  cursor: wait;
}

.ecc-gallery-card__eye--closed,
.ecc-gallery-card__visibility[data-visible="0"] .ecc-gallery-card__eye--open { display: none; }
.ecc-gallery-card__visibility[data-visible="0"] .ecc-gallery-card__eye--closed { display: block; }

.ecc-gallery-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 68px;
  padding: .8rem 1rem;
  color: var(--ecc-muted);
  font-size: .9rem;
}

.ecc-gallery-card__download {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .8rem;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ecc-green);
  font-size: .84rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.ecc-gallery-card__download:hover,
.ecc-gallery-card__download:focus-visible,
.ecc-gallery-card__download.is-selected {
  color: var(--ecc-green) !important;
  background: var(--ecc-gold);
  transform: translateY(-1px);
}

.ecc-gallery-selection {
  position: fixed;
  z-index: 99990;
  right: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: stretch;
  width: min(1180px, calc(100% - 2rem));
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(196, 169, 107, .55);
  border-radius: 20px;
  color: #fff;
  background: rgba(18, 63, 53, .96);
  box-shadow: 0 18px 52px rgba(5, 16, 14, .34);
  transform: translateX(50%);
  backdrop-filter: blur(14px);
}

.ecc-gallery-selection[hidden] { display: none; }

.ecc-gallery-selection__main {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: .75rem 1rem;
}

.ecc-gallery-selection__count {
  flex: 0 0 auto;
  width: 138px;
  padding-right: 1rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
}

.ecc-gallery-selection__thumbnails {
  display: flex;
  flex: 1;
  gap: .55rem;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--ecc-gold) transparent;
  scrollbar-width: thin;
}

.ecc-gallery-selection__thumbnail {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.ecc-gallery-selection__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecc-gallery-selection__thumbnail span {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 63, 53, .92);
  font: 700 1rem/1 sans-serif;
}

.ecc-gallery-selection__thumbnail:hover,
.ecc-gallery-selection__thumbnail:focus-visible {
  border-color: var(--ecc-gold);
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.ecc-gallery-selection__download {
  display: grid;
  flex: 0 0 150px;
  place-items: center;
  align-content: center;
  gap: .25rem;
  padding: .75rem 1rem;
  border: 0;
  color: var(--ecc-green);
  background: var(--ecc-gold);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.ecc-gallery-selection__download:hover,
.ecc-gallery-selection__download:focus-visible {
  color: #fff;
  background: #0d3028;
  outline: 2px solid var(--ecc-gold);
  outline-offset: -4px;
}

.ecc-gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.ecc-gallery-pagination__button {
  min-width: 44px;
  min-height: 44px;
  padding: .7rem .85rem;
  border: 1px solid rgba(18, 63, 53, .2);
  border-radius: 999px;
  color: var(--ecc-green);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ecc-gallery-pagination__button:hover:not(:disabled),
.ecc-gallery-pagination__button:focus-visible,
.ecc-gallery-pagination__button.is-current {
  border-color: var(--ecc-green);
  color: #fff;
  background: var(--ecc-green);
}

.ecc-gallery-pagination__button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.ecc-gallery__empty {
  padding: 3rem 1.5rem;
  border-radius: 18px;
  background: var(--ecc-surface);
  text-align: center;
}

.ecc-gallery-lightbox {
  --ecc-green: #123f35;
  --ecc-gold: #c4a96b;
  width: min(94vw, 1440px);
  max-width: none;
  height: min(92vh, 1000px);
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.ecc-gallery-lightbox::backdrop {
  background: rgba(5, 16, 14, .9);
  backdrop-filter: blur(8px);
}

.ecc-gallery-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.ecc-gallery-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 140ms ease;
}

.ecc-gallery-lightbox.is-switching .ecc-gallery-lightbox__image { opacity: .4; }

.ecc-gallery-lightbox__close,
.ecc-gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ecc-green);
  background: var(--ecc-gold);
  font: 400 2rem/1 sans-serif;
  cursor: pointer;
}

.ecc-gallery-lightbox__close {
  top: .75rem;
  right: .75rem;
}

.ecc-gallery-lightbox__nav {
  top: 50%;
  width: 54px;
  height: 54px;
  color: #fff;
  background: rgba(18, 63, 53, .88);
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ecc-gallery-lightbox__nav--previous { left: .75rem; }
.ecc-gallery-lightbox__nav--next { right: .75rem; }

.ecc-gallery-lightbox__nav:hover,
.ecc-gallery-lightbox__nav:focus-visible {
  color: var(--ecc-green);
  background: var(--ecc-gold);
  transform: translateY(-50%) scale(1.06);
}

.ecc-gallery-lightbox__toolbar {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .45rem .45rem .45rem .9rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 63, 53, .9);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  transform: translateX(50%);
  backdrop-filter: blur(8px);
}

.ecc-gallery-lightbox__counter {
  min-width: 3.5rem;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.ecc-gallery-lightbox__download {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--ecc-green) !important;
  background: var(--ecc-gold);
  font-size: .9rem;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.ecc-gallery-lightbox__download:hover,
.ecc-gallery-lightbox__download:focus-visible,
.ecc-gallery-lightbox__download.is-selected {
  color: #fff !important;
  background: var(--ecc-green);
  outline: 2px solid var(--ecc-gold);
}

@media (max-width: 850px) {
  .ecc-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ecc-gallery-filters { grid-template-columns: 1fr; padding: 1rem; border-radius: 14px; }
  .ecc-gallery-deal-row.has-management-actions { grid-template-columns: minmax(0, 1fr) 48px 48px; }
  .ecc-gallery-password-entry__row { grid-template-columns: 1fr; }
  .ecc-gallery-days { grid-template-columns: 1fr; gap: .8rem; padding: 1rem; border-radius: 14px; }
  .ecc-gallery-day { min-width: 120px; min-height: 58px; padding: .65rem .85rem; }
  .ecc-gallery-filters__status { grid-column: auto; }
  .ecc-gallery__grid { grid-template-columns: 1fr; }
  .ecc-gallery-card { border-radius: 14px; }
  .ecc-gallery-card__footer { min-height: 62px; }
  .ecc-gallery-pagination__arrow { width: 100%; }
  .ecc-gallery-lightbox { width: 100vw; height: 100dvh; }
  .ecc-gallery-lightbox__nav { width: 46px; height: 46px; }
  .ecc-gallery-lightbox__nav--previous { left: .35rem; }
  .ecc-gallery-lightbox__nav--next { right: .35rem; }
  .ecc-gallery-lightbox__close { top: .5rem; right: .5rem; }
  .ecc-gallery-lightbox__toolbar { bottom: max(.65rem, env(safe-area-inset-bottom)); }
  .ecc-gallery-selection {
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: calc(100% - 1rem);
    min-height: 82px;
    border-radius: 15px;
  }
  .ecc-gallery-selection__main { padding: .55rem; }
  .ecc-gallery-selection__count { width: 76px; padding-right: .5rem; font-size: .72rem; }
  .ecc-gallery-selection__thumbnail { flex-basis: 54px; width: 54px; height: 54px; }
  .ecc-gallery-selection__download { flex-basis: 72px; padding: .5rem; }
  .ecc-gallery-selection__download span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-width: 680px) {
  body.ecc-template-gallery footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecc-gallery *, .ecc-gallery-lightbox * { scroll-behavior: auto !important; transition: none !important; }
}
