:root {
  --page-bg: #ffffff;
  --text: #181818;
  --muted: #909090;
  --line: #e8e8e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-wrap {
  width: 100%;
  margin: 0 auto;
}

.site-wrap-home {
  max-width: 1610px;
  padding: 50px 185px 80px;
}

.site-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.site-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #050505;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 0.9;
  margin: 0;
  text-decoration: none;
}

.header-right {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: flex-end;
  padding-top: 8px;
}

.social-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-nav a {
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.back-link {
  color: #2c2c2c;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  margin-right: 6px;
  text-decoration: none;
  text-transform: uppercase;
}

.social-nav a:hover,
.back-link:hover,
.post-card-title a:hover {
  opacity: 0.65;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

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

.post-card {
  margin: 0;
}

.post-card-media {
  aspect-ratio: 1 / 1;
  background: #efefef;
  display: block;
  margin-bottom: 12.944px;
  overflow: hidden;
}

.post-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card-body {
  padding-top: 0;
}

.post-date {
  color: rgba(29, 29, 29, 0.4);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12.74px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0 0 8px;
}

.post-card-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21.56px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.51;
  margin: 0;
}

.post-card-title a {
  color: #242424;
  text-decoration: none;
}

.site-wrap-post {
  max-width: 1610px;
  padding: 50px 185px 80px;
}

.site-wrap-post .site-header {
  align-items: flex-start;
  margin-bottom: 86px;
}

.post-header-right {
  align-items: center;
  display: flex;
  gap: 0;
}

.post-main {
  margin: 0 auto;
  max-width: none;
}

.post-title {
  font-family: 'EB Garamond', Georgia, serif;
  color: #222;
  font-size: 41.16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.39;
  margin: 0;
  text-align: center;
}

.post-byline {
  color: rgba(29, 29, 29, 0.4);
  display: flex;
  flex-wrap: wrap;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12.74px;
  font-style: italic;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.01em;
  margin: 31px 0 39px;
}

.post-hero {
  margin-bottom: 22px;
}

.post-hero-link {
  display: block;
}

.post-hero img {
  width: 100%;
}

.post-lead-caption {
  color: #4a4a4a;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12.74px;
  letter-spacing: 0.01em;
  line-height: 1.45;
  margin: 0 0 26px;
}

.post-content {
  border-top: 0;
  padding-top: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.2;
}

.post-content p,
.post-content li,
.post-content figcaption {
  color: #3b3b3b;
  font-size: 17.64px;
  letter-spacing: 0.01em;
  line-height: 1.86;
}

.post-content figure {
  margin: 0 0 1.2rem;
}

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

.post-gallery-item {
  margin: 0;
}

.post-gallery-link {
  display: block;
}

.post-gallery-item img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.lightbox-open {
  overflow: hidden;
}

.post-lightbox {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: 1000;
}

.post-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.post-lightbox-stage {
  align-items: center;
  display: flex;
  height: 90vh;
  justify-content: center;
  max-width: min(92vw, 1780px);
  position: relative;
  width: 100%;
}

.post-lightbox-image {
  max-height: 88vh;
  max-width: 100%;
  object-fit: contain;
}

.post-lightbox-close {
  background: transparent;
  border: 0;
  color: rgba(144, 144, 144, 0.95);
  cursor: pointer;
  font-size: 2.1rem;
  line-height: 1;
  position: absolute;
  right: 26px;
  top: 18px;
}

.post-lightbox-nav {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(144, 144, 144, 0.85);
  cursor: pointer;
  display: flex;
  font-size: 2.2rem;
  height: 100%;
  justify-content: center;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 180ms ease, color 180ms ease;
  width: 16%;
}

.post-lightbox-nav span {
  pointer-events: none;
}

.post-lightbox-nav-prev {
  left: 0;
}

.post-lightbox-nav-next {
  right: 0;
}

.post-lightbox-nav:hover,
.post-lightbox-nav:focus-visible {
  color: rgba(110, 110, 110, 0.95);
  opacity: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #787878;
  font-size: 0.88rem;
  margin-top: 40px;
  padding-top: 16px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .site-wrap-home {
    padding-left: 64px;
    padding-right: 64px;
    padding-top: 42px;
    padding-bottom: 60px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .header-right {
    justify-content: flex-start;
    padding-top: 4px;
  }

  .post-grid {
    gap: 28px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-wrap-post {
    padding-left: 64px;
    padding-right: 64px;
    padding-top: 42px;
    padding-bottom: 60px;
  }

  .post-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-wrap-home {
    padding-left: 48px;
    padding-right: 48px;
  }

  .site-wrap-post {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 768px) {
  .site-wrap-home {
    padding-left: 36px;
    padding-right: 36px;
  }

  .site-wrap-post {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 640px) {
  .site-wrap-home {
    padding-left: 20px;
    padding-right: 20px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .social-nav {
    gap: 14px;
  }

  .social-nav a {
    font-size: 1.2rem;
  }

  .site-wrap-post {
    padding-left: 20px;
    padding-right: 20px;
  }

  .post-title {
    font-size: 32px;
    line-height: 1.3;
  }

  .post-gallery {
    grid-template-columns: 1fr;
  }
}
  