/*
 Theme Name:   Divi Child
 Theme URI:    https://yoursite.com
 Description:  Divi Child Theme
 Author:       Your Name
 Template:     Divi
 Version:      1.0.0
*/

@import url("../Divi/style.css");
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@300;400;500&display=swap');

.ma-project {
  --black: #171615;
  --charcoal: #302d29;
  --mid: #625d56;
  --light: #f4f3f1;
  --warm-white: #fafaf8;
  --accent: #8b7355;
  --accent-light: #f0ebe3;
  --divider: #cfc6ba;

  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  max-width: 1020px;
  margin: 0 0;
  padding: 88px 0px;
}

@media (max-width: 768px) {
  .ma-project {
    padding: 48px 24px;
  }
}

/* ── Label ── */
.ma-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ── Title ── */
.ma-project__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--black);
  margin: 0 0 44px;
}

/* ── Meta strip ── */
.ma-project__meta {
  display: flex;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 60px;
}

.ma-project__meta-item {
  flex: 1;
  padding: 18px 22px;
  border-right: 1px solid var(--divider);
}

.ma-project__meta-item:last-child {
  border-right: none;
}

.ma-project__meta-key {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 7px;
}

.ma-project__meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--black);
  margin: 0;
}

@media (max-width: 560px) {
  .ma-project__meta {
    flex-direction: column;
  }

  .ma-project__meta-item {
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }

  .ma-project__meta-item:last-child {
    border-bottom: none;
  }
}

/* ── Hero image ── */
.ma-project__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 58px;
}

/* ── Body copy ── */
.ma-project__copy {
  max-width: 620px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--charcoal);
  margin-bottom: 84px;
}

.ma-project__copy p {
  margin: 0 0 24px;
}

.ma-project__copy p:last-child {
  margin-bottom: 0;
}



/* ── Nav ── */
.ma-project__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--divider);
  padding-top: 36px;
  margin-top: 48px;
}

.ma-project__nav-left {
  text-align: left;
}

.ma-project__nav-center {
  text-align: center;
}

.ma-project__nav-right {
  text-align: right;
}

.ma-project__nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ma-project__nav a:hover {
  color: var(--black);
}

.ma-lightbox {
  cursor: zoom-in;
}
.ma-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(20, 19, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.ma-lightbox-overlay.is-open {
  display: flex;
}

.ma-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.ma-lightbox-close,
.ma-lightbox-prev,
.ma-lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.ma-lightbox-close {
  top: 24px;
  right: 32px;
}

.ma-lightbox-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.ma-lightbox-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}
/* ── Gallery grid ── */
.ma-project__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 72px;
}

.ma-project__gallery a {
  display: block;
  overflow: hidden;
}

.ma-project__gallery a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.ma-project__gallery-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ma-project__gallery a:first-child img {
  aspect-ratio: auto;
  height: 100%;
}

@media (max-width: 640px) {
  .ma-project__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ma-project__gallery a:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .ma-project__gallery a:first-child img {
    aspect-ratio: 4 / 3;
  }
}