/* Mena Art & Heritage: home section (#artScroll) and art-heritage.html.
   Pictures carry the layout: full-bleed render fading into the black page,
   text set over the dark lower edge. Default state is fully visible. */

/* Lead render, full bleed */
.art-lead {
  position: relative;
  margin: 0;
}
.art-lead img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: cover;
  object-position: 50% 0;
}
.art-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.55) 10%,
    rgba(0, 0, 0, 0) 24%,
    rgba(0, 0, 0, 0) 46%,
    rgba(0, 0, 0, 0.78) 76%,
    #000 100%
  );
}

.art-overlap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-280px, -16vw, -40px);
}

.art-text {
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
}

/* Home section */
.section-art {
  position: relative;
  padding-bottom: 120px;
}
.section-art .art-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: end;
}
.section-art .art-text {
  margin: 24px 0 32px;
}
.art-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}
.art-thumbs img {
  display: block;
  width: 100%;
  height: auto;
}

/* Page: opening */
.art-hero .art-lead img {
  max-height: none;
}
.art-hero-copy h1 {
  margin: 0;
}
.art-lede {
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  text-wrap: pretty;
}

/* Page: sections */
.art-block {
  padding-top: 120px;
}
.art-h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.art-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.art-parts {
  display: grid;
}
.art-parts > div {
  padding: 28px 0;
  border-top: 1px solid var(--white-16);
}
.art-parts > div:first-child {
  border-top: 0;
  padding-top: 6px;
}
.art-parts h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.art-parts p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
}

.art-project-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.art-project-head .art-text {
  max-width: 66ch;
  margin-top: 20px;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 2vw, 32px);
  align-items: start;
}
.art-gallery figure {
  margin: 0;
}
.art-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.art-gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
}
.art-gallery .g1 {
  grid-column: 1 / -1;
}
.art-gallery .g2 {
  grid-column: 1 / 8;
}
.art-gallery .g3 {
  grid-column: 8 / -1;
  margin-top: clamp(40px, 8vw, 120px);
}
.art-gallery .g4 {
  grid-column: 5 / -1;
}
.art-showroom {
  grid-column: 1 / 5;
  grid-row: 3;
  align-self: end;
  padding-bottom: 32px;
}
.art-showroom p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.art-cta {
  padding: 120px 0;
}
.art-cta-inner {
  border-top: 1px solid var(--white-16);
  padding-top: clamp(48px, 6vw, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.art-cta-actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.art-cta-actions a.art-mail {
  color: var(--primary-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Current page in the menus */
.nav-menu-main a[aria-current="page"],
.footer-menu-list a[aria-current="page"],
.nav-ul-mb a[aria-current="page"] .text {
  color: var(--primary-bright);
}

/* Header: five items */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav-menu-main {
    gap: 14px;
  }
}

@media (max-width: 1439px) {
  .section-art {
    padding-bottom: 80px;
  }
  .art-block {
    padding-top: 80px;
  }
  .art-cta {
    padding: 80px 0;
  }
}

@media (max-width: 991px) {
  .section-art {
    padding-bottom: 60px;
  }
  .section-art .art-intro,
  .art-split {
    grid-template-columns: 1fr;
  }
  .art-block {
    padding-top: 60px;
  }
  .art-cta {
    padding: 60px 0;
  }
  .art-gallery .g1,
  .art-gallery .g2,
  .art-gallery .g3,
  .art-gallery .g4,
  .art-showroom {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .section-art .art-lead img {
    aspect-ratio: 4 / 3;
    object-position: 50% 30%;
  }
  .art-hero .art-lead img {
    height: 68svh;
    object-position: 50% 30%;
  }
  .art-overlap {
    margin-top: -56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-art .effectFade,
  .art-page .effectFade {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
