:root {
  --lakshi-gallery-red: #8d1517;
  --lakshi-gallery-red-dark: #701012;
  --lakshi-gallery-teal: #189ba6;
  --lakshi-gallery-ink: #201716;
  --lakshi-gallery-muted: #665957;
  --lakshi-gallery-cream: #fbf6ef;
  --lakshi-gallery-line: #eadfd8;
}

.lakshi-gallery-page {
  background: #fff;
  color: var(--lakshi-gallery-ink);
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lakshi-gallery-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.lakshi-gallery-hero {
  padding: clamp(82px, 10vw, 140px) 0 clamp(52px, 7vw, 84px);
  background:
    radial-gradient(circle at 82% 72%, rgba(141, 21, 23, .08) 0 0, transparent 24%),
    linear-gradient(135deg, #fbf6ef 0%, #fff 76%);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.lakshi-gallery-kicker,
.lakshi-gallery-eyebrow {
  margin: 0 0 12px;
  color: var(--lakshi-gallery-red);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lakshi-gallery-hero h1,
.lakshi-project-hero h1 {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--lakshi-gallery-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: .94;
  letter-spacing: 0;
}

.lakshi-gallery-hero p,
.lakshi-project-hero p,
.lakshi-gallery-form-band p,
.lakshi-project-story p {
  max-width: 760px;
  margin: 0;
  color: var(--lakshi-gallery-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.lakshi-gallery-section {
  padding: clamp(44px, 6vw, 78px) 0;
}

.lakshi-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.lakshi-gallery-head h2,
.lakshi-gallery-form-band h2,
.lakshi-project-facts h2,
.lakshi-project-story h2 {
  margin: 0;
  color: var(--lakshi-gallery-ink);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.lakshi-gallery-pill,
.lakshi-gallery-form button,
.lakshi-project-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--lakshi-gallery-red);
  color: #fff !important;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(141, 21, 23, .16);
  cursor: pointer;
}

.lakshi-gallery-pill:hover,
.lakshi-gallery-form button:hover,
.lakshi-project-card a:hover span {
  background: var(--lakshi-gallery-red-dark);
  color: #fff !important;
}

.lakshi-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lakshi-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lakshi-folder-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(32, 23, 22, .07);
}

.lakshi-folder-card > a {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none !important;
}

.lakshi-folder-card span {
  color: var(--lakshi-gallery-ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.lakshi-folder-card small {
  color: var(--lakshi-gallery-muted);
  font-size: .94rem;
  line-height: 1.45;
}

.lakshi-folder-card.is-active {
  border-color: rgba(141, 21, 23, .42);
  background: #fff9f5;
}

.lakshi-subfolder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lakshi-subfolder-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 999px;
  color: var(--lakshi-gallery-red);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

.lakshi-subfolder-list a.is-active,
.lakshi-subfolder-list a:hover {
  border-color: var(--lakshi-gallery-red);
  background: var(--lakshi-gallery-red);
  color: #fff !important;
}

.lakshi-project-card {
  overflow: hidden;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(32, 23, 22, .08);
}

.lakshi-project-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

.lakshi-project-card figure {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #f4eee8;
}

.lakshi-project-card img,
.lakshi-project-hero-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lakshi-project-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--lakshi-gallery-red);
  font-weight: 900;
  font-size: .86rem;
}

.lakshi-project-card-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.lakshi-project-card h3 {
  min-height: 74px;
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.lakshi-project-card dl,
.lakshi-project-facts dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lakshi-project-card dl div,
.lakshi-project-facts dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--lakshi-gallery-line);
}

.lakshi-project-card dt,
.lakshi-project-facts dt {
  color: var(--lakshi-gallery-muted);
  font-size: .82rem;
  font-weight: 800;
}

.lakshi-project-card dd,
.lakshi-project-facts dd {
  margin: 0;
  font-weight: 900;
}

.lakshi-gallery-form-band {
  padding: clamp(44px, 6vw, 78px) 0;
  background: var(--lakshi-gallery-cream);
  border-top: 1px solid var(--lakshi-gallery-line);
}

.lakshi-gallery-form-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.lakshi-gallery-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(32, 23, 22, .08);
}

.lakshi-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lakshi-gallery-form label {
  display: grid;
  gap: 8px;
  color: var(--lakshi-gallery-ink);
  font-weight: 900;
}

.lakshi-gallery-form input,
.lakshi-gallery-form select,
.lakshi-gallery-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fff;
  color: var(--lakshi-gallery-ink);
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
}

.lakshi-gallery-form textarea {
  min-height: 96px;
  resize: vertical;
}

.lakshi-gallery-form input:focus,
.lakshi-gallery-form select:focus,
.lakshi-gallery-form textarea:focus {
  border-color: var(--lakshi-gallery-teal);
  outline: 3px solid rgba(24, 155, 166, .18);
}

.lakshi-form-status {
  padding: 13px 14px;
  border: 1px solid rgba(24, 155, 166, .24);
  border-radius: 8px;
  background: #edf9fa;
  color: #145f66;
  font-weight: 900;
}

.lakshi-form-status.is-error {
  border-color: rgba(141, 21, 23, .22);
  background: #fff1f1;
  color: var(--lakshi-gallery-red);
}

.lakshi-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  min-height: min(680px, calc(100vh - 86px));
  background: #fff;
}

.lakshi-project-hero-gallery {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(180px, .85fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: min(620px, calc(100vh - 120px));
  min-height: 540px;
  padding: 10px;
  background: #fff;
}

.lakshi-project-hero-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f4eee8;
}

.lakshi-project-hero-gallery figure.is-primary {
  grid-row: span 3;
}

.lakshi-project-hero-gallery figure:nth-child(2):last-child {
  grid-row: span 3;
}

.lakshi-project-hero-gallery figure:nth-child(3):last-child {
  grid-row: span 2;
}

.lakshi-project-hero-gallery figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--lakshi-gallery-ink);
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.25;
}

.lakshi-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lakshi-photo-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(141, 21, 23, .1);
  color: var(--lakshi-gallery-red);
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.lakshi-project-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(32px, 6vw, 76px);
  background: linear-gradient(135deg, #fbf6ef, #fff);
}

.lakshi-project-hero .lakshi-project-hero-content h1 {
  font-size: clamp(2.7rem, 5.4vw, 5.8rem);
}

.lakshi-project-module-note {
  padding: 14px 16px;
  border-left: 4px solid var(--lakshi-gallery-red);
  border-radius: 8px;
  background: rgba(141, 21, 23, .06);
  font-weight: 800;
}

.lakshi-project-photo-story {
  padding: clamp(40px, 6vw, 78px) 0;
  background: #fff;
}

.lakshi-project-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lakshi-project-photo-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f4eee8;
  box-shadow: 0 18px 38px rgba(32, 23, 22, .08);
}

.lakshi-project-photo-grid figure.is-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 462px;
}

.lakshi-project-photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lakshi-project-photo-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--lakshi-gallery-ink);
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.25;
}

.lakshi-project-detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.lakshi-project-facts {
  position: sticky;
  top: 100px;
  padding: 26px;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(32, 23, 22, .08);
}

.lakshi-project-facts h2 {
  margin-bottom: 18px;
  font-size: 1.7rem;
}

.lakshi-project-story {
  padding: 10px 0;
}

.lakshi-project-story p {
  margin-top: 16px;
}

.lakshi-scope-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(32, 23, 22, .07);
}

.lakshi-scope-panel h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.lakshi-scope-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lakshi-scope-panel li {
  position: relative;
  padding-left: 24px;
  color: var(--lakshi-gallery-muted);
  font-weight: 800;
  line-height: 1.45;
}

.lakshi-scope-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lakshi-gallery-red);
}

.lakshi-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lakshi-tag-list span {
  padding: 9px 13px;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lakshi-gallery-red);
  font-weight: 900;
  font-size: .88rem;
}

.lakshi-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.lakshi-highlight-grid article {
  padding: 20px;
  border: 1px solid var(--lakshi-gallery-line);
  border-radius: 8px;
  background: #fff;
}

.lakshi-highlight-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lakshi-gallery-red);
  font-size: 1rem;
}

.lakshi-highlight-grid p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .lakshi-project-grid,
  .lakshi-folder-grid,
  .lakshi-project-hero,
  .lakshi-gallery-form-layout,
  .lakshi-project-detail-grid {
    grid-template-columns: 1fr;
  }

  .lakshi-gallery-head {
    align-items: start;
    flex-direction: column;
  }

  .lakshi-project-facts {
    position: static;
  }

  .lakshi-project-hero-gallery {
    height: auto;
    min-height: 500px;
  }

  .lakshi-project-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lakshi-project-photo-grid figure.is-large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .lakshi-gallery-container {
    width: min(100% - 22px, 1180px);
  }

  .lakshi-gallery-hero {
    padding-top: 54px;
  }

  .lakshi-gallery-hero h1,
  .lakshi-project-hero h1 {
    font-size: 3rem;
  }

  .lakshi-form-row {
    grid-template-columns: 1fr;
  }

  .lakshi-project-card h3 {
    min-height: 0;
  }

  .lakshi-project-card dl div,
  .lakshi-project-facts dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lakshi-project-hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: 0;
    gap: 8px;
    padding: 8px;
  }

  .lakshi-project-hero-gallery figure {
    aspect-ratio: 1 / 1;
  }

  .lakshi-project-hero-gallery figure.is-primary {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 16 / 11;
  }

  .lakshi-project-hero-gallery figcaption {
    position: static;
    border-radius: 0;
    font-size: .75rem;
  }

  .lakshi-photo-tags {
    gap: 5px;
  }

  .lakshi-photo-tags em {
    min-height: 22px;
    padding: 5px 7px;
    font-size: .64rem;
  }

  .lakshi-project-hero-content {
    padding: 28px 16px 36px;
  }

  .lakshi-project-photo-grid,
  .lakshi-highlight-grid {
    grid-template-columns: 1fr;
  }

  .lakshi-project-photo-grid figure,
  .lakshi-project-photo-grid figure.is-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 250px;
  }

  .lakshi-project-photo-grid figcaption {
    position: static;
    border-radius: 0;
  }
}
