/* On-going Projects — standalone page + embedded gallery */

:root {
  --se-op-green: #3f5d38;
  --se-op-green-dark: #2a4a26;
  --se-op-ink: #1a1a1a;
  --se-op-muted: #5c6658;
  --se-op-line: #e4ebe1;
  --se-op-paper: #f7f8f5;
  --se-op-white: #ffffff;
  --se-op-gold: #c4a35a;
  --se-op-shadow: 0 12px 40px rgba(42, 74, 38, 0.08);
  --se-op-font: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.se-op {
  margin: 0;
  padding: 0;
  background: var(--se-op-paper);
  color: var(--se-op-ink);
  font-family: var(--se-op-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

body.se-op img {
  max-width: 100%;
  height: auto;
}

/* ——— Top bar ——— */
.se-op__topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--se-op-white);
  border-bottom: 1px solid var(--se-op-line);
  box-shadow: 0 1px 0 rgba(42, 74, 38, 0.04);
}

.se-op__topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.se-op__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--se-op-ink);
  min-width: 0;
}

.se-op__brand img {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.se-op__brand span {
  font-family: var(--se-op-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--se-op-green);
  white-space: nowrap;
}

.se-op__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--se-op-green);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--se-op-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.se-op__back:hover {
  background: var(--se-op-green-dark);
  transform: translateY(-1px);
}

/* ——— Hero ——— */
.se-op__hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 12px;
  text-align: center;
}

.se-op__hero h1 {
  margin: 0 0 12px;
  font-family: var(--se-op-font);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--se-op-green);
}

.se-op__hero p {
  margin: 0;
  font-family: var(--se-op-font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--se-op-muted);
}

/* ——— Main grid ——— */
.se-op__main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.se-op--embedded {
  padding: 36px 0 56px;
  width: 100%;
}

.se-op__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--se-op-muted);
  font-family: var(--se-op-font);
}

.se-op__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  width: 100%;
}

.se-op__card {
  background: var(--se-op-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--se-op-shadow);
  border: 1px solid rgba(63, 93, 56, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.se-op__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 40, 20, 0.14);
}

.se-op__card-media {
  display: block;
  background: #eef2ea;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}

.se-op__card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.se-op__card-body {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--se-op-line);
  background: var(--se-op-white);
}

.se-op__country {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--se-op-green);
  margin-bottom: 6px;
  font-family: var(--se-op-font);
}

.se-op__card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--se-op-ink);
  font-family: var(--se-op-font);
}

/* ——— Lightbox ——— */
.se-op__lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 8, 0.88);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.se-op__lightbox.is-open {
  display: flex;
}

.se-op__lightbox img {
  max-width: min(960px, 100%);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.se-op__lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  font-family: var(--se-op-font);
}

.se-op__lightbox-close:hover {
  background: #f0f2ed;
}

/* ——— Footer spacing on this page ——— */
body.se-op .footer_area,
body.se-op #footer_contents {
  margin-top: 0;
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .se-op__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .se-op__brand span {
    display: none;
  }

  .se-op__brand img {
    max-width: 160px;
    max-height: 56px;
  }
}

@media (max-width: 600px) {
  .se-op__topbar-inner {
    padding: 10px 16px;
    min-height: 72px;
  }

  .se-op__brand img {
    max-width: 140px;
    max-height: 48px;
  }

  .se-op__back {
    padding: 8px 14px;
    font-size: 13px;
  }

  .se-op__hero {
    padding: 32px 16px 8px;
  }

  .se-op__main {
    padding: 20px 16px 48px;
  }

  .se-op--embedded {
    padding: 24px 0 40px;
  }

  .se-op__grid {
    grid-template-columns: 1fr;
  }

  .se-op__intro {
    margin-bottom: 22px;
    font-size: 15px;
    padding: 0 4px;
  }
}
