/* EVA DIAM collection mosaic — gold / black, Jewelbox-style grid. */

.edc-collection {
  --edc-bg: #070708;
  --edc-gold: #e4c66a;
  --edc-gold-2: #c9a227;
  --edc-text: #f4f1ea;
  --edc-muted: #9a9aa3;
  --edc-serif: Montserrat, system-ui, sans-serif;
  --edc-sans: Montserrat, system-ui, sans-serif;
  --edc-side: clamp(22px, 2.6vw, 40px);
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto;
  right: auto;
  background: var(--edh-bg, var(--edc-bg));
  color: var(--edh-text, var(--edc-text));
  font-family: var(--edh-sans, var(--edc-sans));
  padding: clamp(22px, 3vw, 36px) var(--edc-side) clamp(24px, 3vw, 40px) !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.edc-collection *,
.edc-collection *::before,
.edc-collection *::after {
  box-sizing: border-box;
}

body:has(.edc-collection) .entry-header,
body:has(.edc-collection) .page-header,
body:has(.edc-collection) h1.entry-title {
  display: none;
}

.elementor-section:has(.edc-collection),
.elementor-container:has(.edc-collection),
.elementor-element:has(.edc-collection),
.elementor-widget:has(.edc-collection),
.elementor-widget-wrap:has(.edc-collection),
.elementor-widget-container:has(.edc-collection),
.elementor-shortcode:has(.edc-collection),
.e-con:has(.edc-collection),
.e-con-inner:has(.edc-collection),
body:has(.edc-collection) .site,
body:has(.edc-collection) .site-main,
body:has(.edc-collection) #content,
body:has(.edc-collection) .content-area,
body:has(.edc-collection) .page-content,
body:has(.edc-collection) article,
body:has(.edc-collection) .entry-content,
body:has(.edc-collection) .elementor,
body:has(.edc-collection) .elementor-section,
body:has(.edc-collection) .elementor-section-boxed > .elementor-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

body.edh-site:has(.edc-collection) .site-main,
body.edh-site:has(.edc-collection) #content,
body.edh-site:has(.edc-collection) .page-content {
  padding-top: 0;
}

.edc-head {
  text-align: center;
  margin: 0 auto;
  padding: 0 0 clamp(22px, 3vw, 34px);
  max-width: 56rem;
}

.edc-head__kicker {
  margin: 0 0 10px;
  font-family: var(--edh-sans, var(--edc-sans));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--edh-gold-t, var(--edc-gold));
}

.edc-head__title {
  margin: 0 0 12px;
  font-family: var(--edh-sans, var(--edc-sans));
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--edh-text, var(--edc-text));
}

.edc-head__text {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--edh-muted, var(--edc-muted));
}

.edc-head__kicker,
.edc-head__title,
.edc-head__text {
  opacity: 0;
  transform: translate3d(-42px, 0, 0);
  clip-path: inset(0 110% 0 -8px);
}

.edc-collection.is-in .edc-head__kicker,
.edc-collection.is-in .edc-head__title,
.edc-collection.is-in .edc-head__text {
  animation: edc-copy-in 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.edc-collection.is-in .edc-head__kicker {
  animation-delay: 80ms;
}

.edc-collection.is-in .edc-head__title {
  animation-delay: 190ms;
}

.edc-collection.is-in .edc-head__text {
  animation-delay: 320ms;
}

@keyframes edc-copy-in {
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 -8% 0 -8px);
  }
}

.edc-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: minmax(260px, 42vh) minmax(260px, 42vh);
  grid-auto-rows: minmax(240px, 34vh);
  gap: 10px;
  padding: 0;
}

.edc-tile {
  position: relative;
  display: block;
  overflow: hidden !important;
  isolation: isolate;
  background: #101012;
  color: inherit;
  text-decoration: none;
  min-height: 220px;
  height: 100%;
  opacity: 0;
  transform: translateY(24px);
}

.edc-collection.is-in .edc-tile {
  animation: edc-tile-in 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.edc-collection.is-in .edc-tile:nth-child(1) {
  animation-delay: 260ms;
}

.edc-collection.is-in .edc-tile:nth-child(2) {
  animation-delay: 360ms;
}

.edc-collection.is-in .edc-tile:nth-child(3) {
  animation-delay: 460ms;
}

.edc-collection.is-in .edc-tile:nth-child(4) {
  animation-delay: 560ms;
}

.edc-collection.is-in .edc-tile:nth-child(n + 5) {
  animation-delay: 660ms;
}

@keyframes edc-tile-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.edc-tile--a {
  grid-column: 1;
  grid-row: 1 / 3;
}

.edc-tile--b {
  grid-column: 2 / 4;
  grid-row: 1;
}

.edc-tile--c {
  grid-column: 2;
  grid-row: 2;
}

.edc-tile--d {
  grid-column: 3;
  grid-row: 2;
}

.edc-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: block;
}

.edc-tile img,
.edc-tile__img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.edc-tile--a img,
.edc-tile--a .edc-tile__img {
  object-position: center 32% !important;
}

.edc-tile--b img,
.edc-tile--b .edc-tile__img {
  object-position: 92% 48% !important;
}

.edc-tile--c img,
.edc-tile--c .edc-tile__img {
  object-position: 52% 50% !important;
}

.edc-tile--d img,
.edc-tile--d .edc-tile__img {
  object-position: 50% 36% !important;
}

.edc-tile__ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.12), transparent 55%),
    #101012;
}

.edc-tile__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 7, 8, 0.9) 100%);
}

.edc-tile__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  padding: 52px 18px 16px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 8, 0.78) 100%);
}

.edc-tile__name {
  display: block !important;
  position: relative;
  z-index: 7;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: var(--edh-sans, var(--edc-sans));
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--edh-gold-t, var(--edc-gold));
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.edc-tile:hover img,
.edc-tile:hover .edc-tile__img {
  transform: scale(1.045);
}

@media (max-width: 900px) {
  .edc-collection {
    padding: 20px 16px 24px !important;
  }

  .edc-head {
    padding: 0 0 16px;
  }

  .edc-head__kicker {
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .edc-head__title {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .edc-head__text {
    max-width: none;
    font-size: 12px;
    line-height: 1.6;
  }

  .edc-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 8px;
    padding: 0;
  }

  .edc-tile,
  .edc-tile--a,
  .edc-tile--b,
  .edc-tile--c,
  .edc-tile--d,
  .edc-tile--x {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto;
    overflow: hidden;
    background: #070708;
  }

  .edc-tile__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    overflow: hidden;
    background: #101012;
  }

  .edc-tile img,
  .edc-tile__img,
  .edc-tile__ph {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 0;
  }

  .edc-tile--a img,
  .edc-tile--a .edc-tile__img {
    object-position: center 32% !important;
  }

  .edc-tile--b img,
  .edc-tile--b .edc-tile__img {
    object-position: 92% 48% !important;
  }

  .edc-tile--c img,
  .edc-tile--c .edc-tile__img {
    object-position: 52% 50% !important;
  }

  .edc-tile--d img,
  .edc-tile--d .edc-tile__img {
    object-position: 50% 36% !important;
  }

  .edc-tile__veil {
    display: none !important;
  }

  .edc-tile[data-name]::after {
    content: none;
    display: none;
  }

  .edc-tile__meta {
    display: flex !important;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    align-items: center;
    min-height: 36px;
    padding: 9px 10px 11px;
    background: #070708;
  }

  .edc-tile__name {
    display: block !important;
    position: relative;
    width: 100%;
    overflow: visible;
    font-size: 12px;
    letter-spacing: 0.01em;
    font-weight: 500;
    color: #e4c66a;
    text-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 380px) {
  .edc-collection {
    padding-left: min(12px, var(--edc-side, 32px)) !important;
    padding-right: min(12px, var(--edc-side, 32px)) !important;
  }

  .edc-mosaic {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-head__kicker,
  .edc-head__title,
  .edc-head__text,
  .edc-tile {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
  }

  .edc-tile img,
  .edc-tile__img {
    transition: none;
  }
}
