.z5sg {
  --z5sg-dark: #171214;
  --z5sg-light: #ffffff;
  --z5sg-muted: rgba(255, 255, 255, .72);
  --z5sg-accent: #D32127;
  --z5sg-radius: 18px;
  position: relative;
  width: 100%;
  overflow: clip;
  background: var(--z5sg-dark);
  color: var(--z5sg-light);
}

.z5sg,
.z5sg * { box-sizing: border-box; }

.z5sg--light {
  background: #f3f3f3;
  color: var(--z5sg-dark);
  --z5sg-muted: rgba(23, 18, 20, .66);
}

.z5sg__container {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.z5sg__header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.z5sg__eyebrow {
  margin: 0 0 14px;
  color: var(--z5sg-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.z5sg__heading {
  margin: 0;
  color: currentColor;
  font-size: clamp(34px, 4.1vw, 62px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.z5sg__intro {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--z5sg-muted);
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 400;
  line-height: 1.55;
}

.z5sg__intro p { margin: 0; }
.z5sg__intro p + p { margin-top: .8em; }

.z5sg__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.z5sg__item {
  position: relative;
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: var(--z5sg-radius);
  background: rgba(255, 255, 255, .06);
  isolation: isolate;
  transform: translateZ(0);
}

.z5sg--light .z5sg__item { background: rgba(23, 18, 20, .06); }

.z5sg__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
  opacity: .10;
}

.z5sg__item--wide { grid-column: span 6; }
.z5sg__item--hero { grid-column: span 6; }
.z5sg__item--tall { grid-column: span 4; }
.z5sg__item--full { grid-column: span 12; }

.z5sg--layout-equal .z5sg__item,
.z5sg--layout-equal .z5sg__item--wide,
.z5sg--layout-equal .z5sg__item--hero,
.z5sg--layout-equal .z5sg__item--tall,
.z5sg--layout-equal .z5sg__item--full {
  grid-column: span 4;
}

.z5sg__media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  aspect-ratio: 1.34;
}

.z5sg__item--wide .z5sg__media-wrap { aspect-ratio: 1.82; }
.z5sg__item--hero .z5sg__media-wrap { aspect-ratio: 1.55; }
.z5sg__item--tall .z5sg__media-wrap { aspect-ratio: .82; }
.z5sg__item--full .z5sg__media-wrap { aspect-ratio: 2.25; }
.z5sg--layout-equal .z5sg__media-wrap { aspect-ratio: 1.34; }

.z5sg__media-layer,
.z5sg__picture,
.z5sg__media-wrap picture {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden;
}

.z5sg[data-parallax="true"] .z5sg__media-layer {
  top: -14% !important;
  bottom: auto !important;
  height: 128% !important;
}

.z5sg__media,
.z5sg__media-wrap img,
.z5sg__media-wrap video,
.z5sg__media-wrap picture,
.z5sg__media-wrap picture > img,
.z5sg__media-wrap .z5sg__picture,
.z5sg__media-wrap .z5sg__picture > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.z5sg__media {
  transform: scale(1.001);
  transition: transform .8s cubic-bezier(.625,.05,0,1), filter .8s cubic-bezier(.625,.05,0,1);
  will-change: transform;
}

.z5sg__item:hover .z5sg__media {
  transform: scale(1.04);
}

.z5sg--kenburns .z5sg__item:nth-child(odd) .z5sg__media {
  animation: z5sgKenburnsA 15s ease-in-out infinite alternate;
}

.z5sg--kenburns .z5sg__item:nth-child(even) .z5sg__media {
  animation: z5sgKenburnsB 16s ease-in-out infinite alternate;
}

.z5sg__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.z5sg[data-reveal='true'] .z5sg__header,
.z5sg[data-reveal='true'] .z5sg__item {
  will-change: transform, opacity;
}

.elementor-editor-active .z5sg[data-reveal='true'] .z5sg__header,
.elementor-editor-active .z5sg[data-reveal='true'] .z5sg__item {
  opacity: 1 !important;
  transform: none !important;
}

@keyframes z5sgKenburnsA {
  from { transform: scale(1.02) translate3d(-.8%, -.8%, 0); }
  to { transform: scale(1.075) translate3d(.8%, .8%, 0); }
}

@keyframes z5sgKenburnsB {
  from { transform: scale(1.02) translate3d(.8%, -.8%, 0); }
  to { transform: scale(1.075) translate3d(-.8%, .8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .z5sg__media,
  .z5sg__item:hover .z5sg__media,
  .z5sg--kenburns .z5sg__media {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .z5sg__item,
  .z5sg__item--wide,
  .z5sg__item--hero,
  .z5sg__item--tall,
  .z5sg__item--full,
  .z5sg--layout-equal .z5sg__item {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .z5sg__header { text-align: left; margin-inline: 0; }
  .z5sg__heading { font-size: clamp(32px, 10vw, 44px); }
  .z5sg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .z5sg--mobile-cols-1 .z5sg__grid { grid-template-columns: 1fr; }
  .z5sg__item,
  .z5sg__item--wide,
  .z5sg__item--hero,
  .z5sg__item--tall,
  .z5sg__item--full,
  .z5sg--layout-equal .z5sg__item {
    grid-column: auto;
  }
  .z5sg__media-wrap,
  .z5sg__item--wide .z5sg__media-wrap,
  .z5sg__item--hero .z5sg__media-wrap,
  .z5sg__item--full .z5sg__media-wrap {
    aspect-ratio: 1.18;
  }
  .z5sg__item--tall .z5sg__media-wrap { aspect-ratio: .88; }
}
