.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}.cpg-gallery-wrapper {
  width: 100%;
}

.cpg-gallery-wrapper * {
  box-sizing: border-box;
}

.cpg-item {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--cpg-radius);
  position: relative;
  text-decoration: none;
  background: transparent;
}

.cpg-item img {
  display: block;
  width: 100%;
  height: var(--cpg-height);
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease, opacity 0.45s ease;
}

.cpg-gallery-wrapper.hover-zoom .cpg-item:hover img {
  transform: scale(1.08);
}

.cpg-gallery-wrapper.hover-zoom_soft .cpg-item:hover img {
  transform: scale(1.04);
}

.cpg-gallery-wrapper.hover-grayscale .cpg-item img {
  filter: grayscale(100%);
}

.cpg-gallery-wrapper.hover-grayscale .cpg-item:hover img {
  filter: grayscale(0%);
}

.cpg-gallery-wrapper.hover-lift .cpg-item {
  transition: transform 0.35s ease;
}

.cpg-gallery-wrapper.hover-lift .cpg-item:hover {
  transform: translateY(-6px);
}

/* =======================
   SLIDER
======================= */
.cpg-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cpg-slider-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.45s ease;
  will-change: transform;
}

.cpg-slide {
  flex: 0 0 auto;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  padding-right: var(--cpg-gap);
}

.cpg-slide:last-child {
  padding-right: 0;
}

.cpg-slide .cpg-item {
  width: 100%;
  display: block;
}

.cpg-slide .cpg-item img {
  width: 100%;
  height: var(--cpg-height);
  object-fit: cover;
  display: block;
}

.cpg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, background 0.25s ease;
  opacity: 0.88;
}

.cpg-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
}

.cpg-arrow span {
  display: inline-block;
  transform: translateY(-1px);
}

.cpg-prev {
  left: 18px;
}

.cpg-next {
  right: 18px;
}

/* =======================
   GRID
======================= */
.layout-grid .cpg-grid {
  display: grid;
  grid-template-columns: repeat(var(--cpg-columns-desktop), 1fr);
  gap: var(--cpg-gap);
}

/* =======================
   MASONRY
======================= */
.layout-masonry .cpg-grid {
  column-count: var(--cpg-columns-desktop);
  column-gap: var(--cpg-gap);
}

.layout-masonry .cpg-grid-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 var(--cpg-gap);
  display: inline-block;
  width: 100%;
}

.layout-masonry .cpg-grid-item .cpg-item {
  display: block;
  width: 100%;
  overflow: hidden;
}

.layout-masonry .cpg-grid-item .cpg-item img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: unset;
}

/* =======================
   COLLAGE
======================= */
.layout-collage .cpg-grid {
  display: grid;
  grid-template-columns: repeat(var(--cpg-columns-desktop), 1fr);
  gap: var(--cpg-gap);
}

.layout-collage .cpg-grid-item:nth-child(5n+1) {
  grid-row: span 2;
}

.layout-collage .cpg-grid-item:nth-child(5n+1) .cpg-item img {
  height: calc(var(--cpg-height) * 2 + var(--cpg-gap));
}

.layout-collage .cpg-grid-item:not(:nth-child(5n+1)) .cpg-item img {
  height: var(--cpg-height);
}

/* =======================
   FILMSTRIP / CONTACT SHEET
======================= */
.cpg-filmstrip {
  width: 100%;
}

/* HORIZONTAL */
.cpg-filmstrip-horizontal {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--cpg-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cpg-filmstrip-horizontal .cpg-filmstrip-item {
  flex: 0 0 auto;
  width: 280px;
  min-width: 280px;
}

.cpg-filmstrip-horizontal .cpg-filmstrip-item .cpg-item img {
  height: calc(var(--cpg-height) * 0.9);
}

/* VERTICAL */
.cpg-filmstrip-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--cpg-gap);
  max-width: 760px;
}

.cpg-filmstrip-vertical .cpg-filmstrip-item {
  width: 100%;
}

.cpg-filmstrip-vertical .cpg-filmstrip-item .cpg-item img {
  height: calc(var(--cpg-height) * 0.58);
}

/* CONTACT SHEET */
.cpg-filmstrip-contact_sheet {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(var(--cpg-gap) * 0.45);
}

.cpg-filmstrip-contact_sheet .cpg-filmstrip-item .cpg-item img {
  height: calc(var(--cpg-height) * 0.28);
}

/* =======================
   TABLET
======================= */
@media (max-width: 1024px) {
  .cpg-slide {
    flex: 0 0 calc((100% - var(--cpg-slider-peek)) / var(--cpg-slides-tablet));
    width: calc((100% - var(--cpg-slider-peek)) / var(--cpg-slides-tablet));
    max-width: calc((100% - var(--cpg-slider-peek)) / var(--cpg-slides-tablet));
    min-width: calc((100% - var(--cpg-slider-peek)) / var(--cpg-slides-tablet));
  }

  .layout-grid .cpg-grid,
  .layout-collage .cpg-grid {
    grid-template-columns: repeat(var(--cpg-columns-tablet), 1fr);
  }

  .layout-masonry .cpg-grid {
    column-count: var(--cpg-columns-tablet);
  }

  .cpg-filmstrip-horizontal .cpg-filmstrip-item {
    width: 220px;
    min-width: 220px;
  }

  .cpg-filmstrip-contact_sheet {
    grid-template-columns: repeat(3, 1fr);
  }

  .cpg-filmstrip-vertical {
    max-width: 100%;
  }
}

/* =======================
   MOBILE
======================= */
@media (max-width: 767px) {
  .cpg-slide {
    flex: 0 0 calc((100% - (var(--cpg-slider-peek) * 0.6)) / var(--cpg-slides-mobile));
    width: calc((100% - (var(--cpg-slider-peek) * 0.6)) / var(--cpg-slides-mobile));
    max-width: calc((100% - (var(--cpg-slider-peek) * 0.6)) / var(--cpg-slides-mobile));
    min-width: calc((100% - (var(--cpg-slider-peek) * 0.6)) / var(--cpg-slides-mobile));
  }

  .layout-grid .cpg-grid,
  .layout-collage .cpg-grid {
    grid-template-columns: repeat(var(--cpg-columns-mobile), 1fr);
  }

  .layout-masonry .cpg-grid {
    column-count: var(--cpg-columns-mobile);
  }

  .cpg-filmstrip-horizontal .cpg-filmstrip-item {
    width: 180px;
    min-width: 180px;
  }

  .cpg-filmstrip-vertical .cpg-filmstrip-item .cpg-item img {
    height: calc(var(--cpg-height) * 0.42);
  }

  .cpg-filmstrip-contact_sheet {
    grid-template-columns: repeat(2, 1fr);
  }

  .cpg-filmstrip-contact_sheet .cpg-filmstrip-item .cpg-item img {
    height: calc(var(--cpg-height) * 0.2);
  }

  .cpg-arrow {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .cpg-prev {
    left: 10px;
  }

  .cpg-next {
    right: 10px;
  }
}