.font-light {
  font-family: "Inter", serif;
  font-weight: 300;
  font-style: normal;
}

.font-regular {
  font-family: "Inter", serif;
  font-weight: 400;
  font-style: normal;
}

.font-heavy {
  font-family: "Inter", serif;
  font-weight: 600;
  font-style: normal;
}

/* variables */
:root {
  --accent: #cd6e00;
  /* Signature Orange */
  --bg: #FDFCFB;
  /* Warm White Background */
  --secondary: #F1EDE9;
  /* Light Cream/Grey for dividers/footer */
  --card-bg: #ffffff;
  /* Pure White for cards */
  --text-main: #1A120B;
  /* Deep Brown/Black for readability */
  --text-dim: #716051;
  /* Muted Brown for captions */
  --transition: all 0.3s ease;
  --white: #fff;
}

.selectDisable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* hide page scrollbar */
html {
  scrollbar-width: none;
}

/* Firefox */
body {
  -ms-overflow-style: none;
}

/* IE and Edge */
body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: rgba(0, 0, 0, 0);
}

.diagonal-divider {
  width: 0;
  height: 0;
  border-right: 100vw solid transparent;
  border-bottom: max(4vw, 3vh) solid var(--secondary);
  margin-top: -max(4vw, 3vh);
}

.selectDisable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.post-nav {
  padding: 2rem 10% 0;
}

.back-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);

  display: inline-block;
  padding: 0.5rem 0;
}

.back-link:hover {
  color: var(--accent);
}

.post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 10% 5rem;
}

.post-header {
  margin-bottom: 4rem;
  max-width: 800px;
}

.post-header h1 {
  font-size: 3rem;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.1;
}

.post-description {
  font-size: 1.1rem;
  line-height: 1.8;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 1.5rem;
}

.photo-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--secondary);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.photo-item:hover img {
  transform: scale(1.03);
}

.photo-item.wide {
  grid-column: span 2;
}

.photo-item.tall {
  grid-row: span 2;
}

footer {
  background-color: var(--secondary);
  padding: 4rem 10%;
  text-align: center;
  color: var(--text-dim);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 18, 11, 0.95);
  backdrop-filter: blur(5px);
  cursor: zoom-out;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

#lightbox-caption {
  color: var(--white);
  margin-top: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  max-width: 600px;
  text-align: center;
  padding: 0 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  left: 30px;
  color: var(--white);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
}

.description-source {
  display: none;
}

.photo-item {
  cursor: zoom-in;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {

  .post-nav {
    padding: 2rem 20px 0;
  }

  .post-container {
    padding: 2rem 20px 5rem;
  }

  .post-header h1 {
    font-size: 2rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 10px;
  }

  .photo-item.wide {
    grid-column: span 2;
  }

  .back-link {
    font-size: 0.8rem;
  }
}