/* ===== ATELIER NĀGA — CSS v6 ===== */
/* Fidèle à la maquette Direction A validée. Bould. Zen minimaliste. */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Bould';
  src: url('../fonts/Bould-ExtraLight.woff2') format('woff2'),
       url('../fonts/Bould-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bould';
  src: url('../fonts/Bould-Light.woff2') format('woff2'),
       url('../fonts/Bould-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bould';
  src: url('../fonts/Bould-Regular.woff2') format('woff2'),
       url('../fonts/Bould-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bould';
  src: url('../fonts/Bould-Medium.woff2') format('woff2'),
       url('../fonts/Bould-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bould';
  src: url('../fonts/Bould-SemiBold.woff2') format('woff2'),
       url('../fonts/Bould-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
  --teal: #5a8a7a;
  --teal-light: rgba(90, 138, 122, 0.08);
  --teal-border: rgba(90, 138, 122, 0.2);
  --dark: rgba(0, 0, 0, 0.48);
  --gray: #888;
  --light-gray: #bbb;
  --border: rgba(0, 0, 0, 0.06);
  --font: 'Bould', system-ui, sans-serif;
  --max-width: 1100px;
  --content-width: 640px;
  --radius: 3px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  font-weight: 200;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--dark);
  background: #fff;
}
a { color: var(--teal); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo img { height: 48px; width: auto; }
.logo { display: flex; align-items: center; }

/* Navigation */
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1.5px solid transparent;
  transition: all 0.25s ease;
}
.main-nav a:hover { color: var(--dark); }
.main-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem 2.5rem; border-bottom: none; text-transform: uppercase; }
}

/* ===== HERO / ACCUEIL ===== */
.hero {
  padding: 6rem 2.5rem 4.5rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 0.5px solid rgba(90, 138, 122, 0.12);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 0.5px solid rgba(90, 138, 122, 0.06);
  pointer-events: none;
}
.hero .logo-img {
  height: 80px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.hero .line {
  width: 36px;
  height: 0.5px;
  background: var(--teal);
  margin: 1.25rem auto;
  position: relative;
  z-index: 1;
}
.hero .subtitle {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Intro texte centré sous le hero */
.intro {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  text-align: center;
}
.intro p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--gray);
  font-weight: 200;
}

/* Divider fin */
.divider {
  width: 60%;
  margin: 0 auto;
  height: 0.5px;
  background: var(--border);
}

/* ===== TEXT SECTIONS (pages longues) ===== */
.text-section {
  padding: 3rem 0;
}
.text-section p {
  text-align: justify;
  margin-bottom: 1.4rem;
  color: var(--dark);
  line-height: 2.0;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0.015em;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light-gray);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ===== PROJECTS GRID (catégories — 2 colonnes, dégradés pastel) ===== */
.projects-section {
  padding: 3.5rem 2.5rem 4rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: var(--content-width);
  margin: 0 auto;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: var(--dark);
}
.project-card:hover {
  transform: scale(0.97);
  color: var(--dark);
}
/* Dégradés pastel naturels */
.project-card:nth-child(1) { background: linear-gradient(150deg, #dce5e0 0%, #b8ccc2 100%); }
.project-card:nth-child(2) { background: linear-gradient(150deg, #e0ddd8 0%, #c5c0b8 100%); }
.project-card:nth-child(3) { background: linear-gradient(150deg, #d6dce1 0%, #b5c0c8 100%); }
.project-card:nth-child(4) { background: linear-gradient(150deg, #e2dfd9 0%, #cac5bc 100%); }
.project-card:nth-child(5) { grid-column: 1 / -1; aspect-ratio: 8/3; background: linear-gradient(150deg, #d9ddd6 0%, #bcc2b5 100%); }
.project-card .number {
  font-size: 56px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.35);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  line-height: 1;
}
.project-card .card-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.project-card .card-subtitle {
  font-size: 11px;
  color: rgba(42, 42, 40, 0.5);
  letter-spacing: 0.04em;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(5) { grid-column: auto; aspect-ratio: 4/3; }
}

/* ===== CONTACT BANNER ===== */
.contact-banner {
  margin: 0 2.5rem;
  padding: 2rem 2.5rem;
  border: 0.5px solid var(--teal-border);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-banner h3 {
  font-weight: 400;
  font-size: 17px;
  color: var(--dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.contact-banner p {
  font-size: 12px;
  color: #aaa;
}
.contact-banner .cta {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  padding: 0.6rem 1.75rem;
  border: 0.5px solid rgba(90, 138, 122, 0.35);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.contact-banner .cta:hover { background: var(--teal-light); }

@media (max-width: 600px) {
  .contact-banner { flex-direction: column; gap: 1.25rem; text-align: center; margin: 0 1.5rem; }
}

/* ===== CONSTRUCTION NOTICE ===== */
.notice {
  text-align: center;
  padding: 1.25rem 2rem;
  color: var(--teal);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  border-top: 0.5px solid var(--teal-border);
  border-bottom: 0.5px solid var(--teal-border);
  margin: 2rem auto;
  max-width: var(--content-width);
}

/* ===== PAGE BANNER (pages intérieures) ===== */
.page-banner {
  padding: 1.5rem 0 1rem;
  border-bottom: none;
}
.page-banner h1 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.01em;
}
.breadcrumb {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--teal); }

/* ===== CATEGORY PAGE ===== */
.category-header {
  padding: 2.5rem 0 1.5rem;
}
.category-header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.category-header .cat-subtitle {
  font-size: 13px;
  font-weight: 200;
  color: var(--gray);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.category-header p {
  text-align: justify;
  line-height: 2.0;
  color: var(--dark);
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0.015em;
}

/* Portfolio list — Mosaïque immersive (3 colonnes, overlay au survol) */
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 1rem 0 3rem;
}
.portfolio-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover img {
  transform: scale(1.03);
}
.portfolio-card .info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 42, 40, 0.4) 0%, rgba(42, 42, 40, 0.05) 35%, transparent 60%);
  opacity: 1;
  transition: background 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}
.portfolio-card:hover .info {
  background: linear-gradient(to top, rgba(42, 42, 40, 0.7) 0%, rgba(42, 42, 40, 0.15) 45%, transparent 65%);
}
.portfolio-card .info h3 {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.15rem;
}
.portfolio-card .info p {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}
.portfolio-card:hover .info h3 {
  color: #fff;
}
.portfolio-card:hover .info p {
  color: rgba(255, 255, 255, 0.7);
}
/* Carte double largeur (pour varier le rythme — appliquer .wide sur certains projets) */
.portfolio-card.wide {
  grid-column: span 2;
  aspect-ratio: 8/3;
}

@media (max-width: 768px) {
  .portfolio-list { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card.wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .portfolio-list { grid-template-columns: 1fr; }
  .portfolio-card.wide { grid-column: auto; aspect-ratio: 4/3; }
}

/* ===== PORTFOLIO DETAIL ===== */
.portfolio-detail {
  padding: 2.5rem 0 3rem;
}
.portfolio-detail .project-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--teal);
}
.portfolio-detail .project-subtitle {
  font-size: 15px;
  color: var(--dark);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Meta-box : grille label/valeur, labels en petites caps 9px */
.portfolio-detail .meta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 3rem;
  padding: 1.5rem 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 2.5rem;
}
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-item .label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-gray);
  font-weight: 400;
}
.meta-item .value {
  font-size: 14px;
  color: #555;
  font-weight: 200;
}

/* Fallback pour ancien format <ul> dans meta-box */
.portfolio-detail .meta-box ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 3rem;
  grid-column: 1 / -1;
}
.portfolio-detail .meta-box li {
  font-size: 14px;
  font-weight: 300;
  color: #555;
}
.portfolio-detail .meta-box strong {
  display: block;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-gray);
}

/* Project content */
.portfolio-detail .project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.portfolio-detail .project-content p {
  text-align: justify;
  line-height: 1.9;
  font-size: 13.5px;
  font-weight: 200;
  letter-spacing: 0.015em;
}
.portfolio-detail .project-content img {
  width: 100%;
  border-radius: var(--radius);
}

/* Gallery 3 colonnes */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.gallery-grid img:hover { opacity: 0.8; }

/* Footer de projet */
.portfolio-detail .project-footer {
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 300;
  color: var(--gray);
  margin-top: 2rem;
}
.portfolio-detail .category-tag {
  color: var(--teal);
  font-weight: 400;
}

@media (max-width: 768px) {
  .portfolio-detail .project-content { grid-template-columns: 1fr; }
  .portfolio-detail .meta-box { grid-template-columns: 1fr; }
  .portfolio-detail .meta-box ul { grid-template-columns: 1fr; }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 2.5rem 0 3rem;
}
.contact-info { margin-bottom: 2.5rem; }
.contact-info h2 {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
}
.contact-details .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-details .meta-item .label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-gray);
  font-weight: 400;
}
.contact-details .meta-item .value {
  font-size: 14px;
  color: #555;
  font-weight: 200;
}
.contact-details .meta-item .value a {
  color: #555;
}
.contact-details .meta-item .value a:hover {
  color: var(--teal);
}
.contact-section .divider {
  margin: 2.5rem 0;
}
.contact-info li {
  margin-bottom: 0.35rem;
  font-weight: 200;
}
@media (max-width: 480px) {
  .contact-details { grid-template-columns: 1fr; }
}

.contact-form { max-width: 500px; }
.contact-form label {
  display: block;
  font-weight: 400;
  margin-bottom: 0.3rem;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.contact-form label .required { color: #c0392b; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 200;
  font-size: 14px;
  margin-bottom: 1rem;
  transition: border-color 0.25s ease;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: transparent;
  color: var(--teal);
  border: 0.5px solid rgba(90, 138, 122, 0.35);
  padding: 0.7rem 2rem;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.contact-form button:hover { background: var(--teal-light); }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
  font-size: 13px;
  font-weight: 300;
}
.form-status.success { display: block; background: rgba(90, 138, 122, 0.08); color: var(--teal); }
.form-status.error { display: block; background: rgba(192, 57, 43, 0.06); color: #c0392b; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: transparent;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  font-size: 10px;
  font-weight: 300;
  color: #ccc;
  letter-spacing: 0.06em;
}
.footer-inner a { color: #ccc; }
.footer-inner a:hover { color: var(--teal); }

/* ===== LIGHTBOX (fond blanc flou) ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 300;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== PROTECTION IMAGES ===== */
/* Empêcher la sélection et le drag sur les images */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* Filigrane en overlay sur les conteneurs d'images */
.gallery-grid,
.portfolio-card,
.project-content {
  position: relative;
}
.gallery-grid::after,
.project-content::after {
  content: '© Atelier Nāga';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 2;
}

/* Filigrane sur chaque image de la galerie individuellement */
.gallery-grid img {
  position: relative;
}
.gallery-grid {
  position: relative;
}

/* Filigrane sur les cartes portfolio (mosaïque catégorie) */
.portfolio-card::after {
  content: '© Atelier Nāga';
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-family: var(--font);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 3;
}

/* Filigrane dans la lightbox */
.lightbox::after {
  content: '© Atelier Nāga — Reproduction interdite';
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1001;
}
/* ===== HARMONIE PHOTOGRAPHIQUE ===== */
/* Désaturation légère (80%) pour cohérence visuelle — comme le portfolio papier */
.portfolio-card img,
.gallery-grid img,
.project-content img,
.lightbox img,
.project-card--cover {
  filter: saturate(0.7) brightness(1.15) contrast(0.9);
}
.portfolio-card:hover img,
.gallery-grid img:hover {
  filter: saturate(0.8) brightness(1.05) contrast(0.95);
  transition: filter 0.4s ease;
}
/* Fix hover texte blanc */
.portfolio-card:hover .info h3 {
  color: #fff !important;
}
.portfolio-card:hover .info p {
  color: rgba(255, 255, 255, 0.7) !important;
}
.portfolio-card:hover {
  color: #fff !important;
}
/* ===== LIGHTBOX NAVIGATION ===== */
.lightbox img {
  max-width: 75vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.3);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  font-weight: 200;
  font-family: var(--font);
  transition: color 0.2s ease;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  color: rgba(0, 0, 0, 0.6);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.3);
  z-index: 1002;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: rgba(0, 0, 0, 0.3);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 300;
  z-index: 1002;
  transition: color 0.2s ease;
}
.lightbox-close:hover {
  color: rgba(0, 0, 0, 0.6);
}
@media (max-width: 768px) {
  .lightbox img {
    max-width: 92vw;
    max-height: 75vh;
  }
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}