/* Modern & Elegant Responsive Stylesheet for gurvich.in */

:root {
  --primary-color: #2c3e50; /* Deep elegant navy */
  --accent-color: #a0522d;  /* Sienna/terracotta accent */
  --bg-color: #fcfbfa;      /* Off-white, soft paper-like background */
  --card-bg: #ffffff;
  --text-color: #2c2c2c;
  --text-muted: #6f6f6f;
  --border-color: #eae7e1;
  --sidebar-bg: #f7f5f0;    /* Slightly warmer warm gray for sidebar */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

a {
  color: #34495e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  text-decoration: none;
}

/* Layout Container */
.wrapper {
  max-width: 1000px;
  margin: 40px auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header - Light, Elegant, Airy */
header {
  background-color: #ffffff;
  padding: 35px 50px;
  border-bottom: 1px solid var(--border-color);
}

header h1 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  text-align: left;
  letter-spacing: 0.5px;
}

header h1 a {
  color: var(--primary-color);
  border-bottom: none;
}

header h1 a:hover {
  color: var(--accent-color);
}

/* Page Structure */
.page-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
}

/* Sidebar Navigation */
aside {
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 40px 30px;
}

aside ul {
  list-style: none;
}

aside li {
  margin-bottom: 8px;
}

aside li a {
  display: block;
  padding: 8px 0;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: none;
}

aside li a:hover {
  color: var(--accent-color);
  padding-left: 3px;
}

aside li.active a {
  color: var(--accent-color);
  font-weight: 600;
  border-left: 2px solid var(--accent-color);
  padding-left: 8px;
}

/* Main Content Area */
main {
  padding: 40px 50px;
  text-align: justify;
}

main h2.title {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: normal;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.entry p {
  margin-bottom: 1.5em;
  font-size: 15px;
  color: #333;
}

.entry img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.entry hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 35px 0;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  border: 1px solid var(--border-color);
  padding: 5px;
  background: #fff;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  border-color: var(--accent-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-radius: 4px;
  border: 3px solid #fff;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-nav:hover {
  color: var(--accent-color);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Footer */
footer {
  background-color: #ffffff;
  color: var(--text-muted);
  text-align: center;
  padding: 25px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .wrapper {
    margin: 0;
    border: none;
    border-radius: 0;
  }

  .page-container {
    grid-template-columns: 1fr;
  }
  
  aside {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }
  
  aside ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  aside li {
    margin-bottom: 0;
  }
  
  aside li a {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
  }
  
  aside li.active a {
    border-left: none;
    background-color: var(--accent-color);
    color: #fff;
    padding-left: 12px;
  }

  main {
    padding: 30px 20px;
  }
  
  header {
    padding: 25px 20px;
  }
  
  header h1 {
    text-align: center;
    font-size: 20px;
  }
}
