/* ============================================
   GALI GELBER — Photography Portfolio
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a1a1a;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */

.page {
  padding-top: 56px;
  min-height: 100vh;
}

/* ============================================
   HERO (Home only)
   ============================================ */

.hero {
  width: 100%;
  height: calc(100vh - 56px);
  overflow: hidden;
  position: relative;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-header {
  padding: 48px 40px 32px;
}

.gallery-header h1 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 40px 60px;
}

.gallery-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

/* Gallery photos — natural height, no cropping */
.gallery-grid .photo {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f5f5f5;
}

.gallery-grid .photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Wide photos span 2 columns */
.gallery-grid .photo.wide {
  grid-column: span 2;
}

.gallery-grid .photo img {
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-grid .photo:hover img {
  transform: scale(1.03);
  filter: brightness(0.88);
}

/* Photo overlay on hover */
.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-grid .photo:hover .photo-overlay {
  opacity: 1;
}

.photo-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

/* ============================================
   HOME — INTRO TEXT
   ============================================ */

.home-intro {
  padding: 80px 40px;
  max-width: 560px;
}

.home-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  font-weight: 300;
}

/* ============================================
   HOME — SECTION LINKS
   ============================================ */

.section-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 40px 80px;
}

.section-link {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
}

.section-link img {
  object-position: top;
  transition: transform 0.6s ease, filter 0.3s ease;
}

.section-link:hover img {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.section-link-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-link-label span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.25);
  padding: 8px 16px;
  backdrop-filter: blur(2px);
}

/* ============================================
   BLOG
   ============================================ */

.blog-list {
  padding: 48px 40px 80px;
  max-width: 720px;
}

.blog-post {
  border-top: 1px solid #eee;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: start;
}

.blog-post:last-child {
  border-bottom: 1px solid #eee;
}

.blog-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 12px;
}

.blog-post h2 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-post p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.blog-read-more {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-top: 16px;
  display: inline-block;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
}

.blog-post-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  border-top: 1px solid #f0f0f0;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #1a1a1a;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  font-weight: 200;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   PRINTS PAGE
   ============================================ */

.prints-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  padding: 0 40px 80px;
}

.print-item {
  display: flex;
  flex-direction: column;
}

.print-image {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  margin-bottom: 16px;
}

.print-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.print-image:hover img {
  transform: scale(1.02);
  filter: brightness(0.9);
}

.print-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.print-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.print-inquire {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.print-inquire:hover {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

@media (max-width: 768px) {
  .prints-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }
}

/* ============================================
   BLOG GRID (index page)
   ============================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 40px 80px;
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 16px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
  filter: brightness(0.88);
}

.blog-card-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
  font-weight: 300;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }
}

/* ============================================
   BLOG POST (individual pages)
   ============================================ */

.blog-post-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.blog-post-page .post-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
}

.blog-post-page h1 {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.blog-post-page .post-hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 40px;
  background: #f5f5f5;
}

.blog-post-page .post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-post-page p {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  font-weight: 300;
  margin-bottom: 24px;
}

.blog-post-page h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 40px 0 16px;
}

.blog-post-page .post-image {
  width: 100%;
  margin: 32px 0;
  background: #f5f5f5;
  overflow: hidden;
}

.blog-post-page .post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-page .post-image-caption {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #aaa;
  text-transform: uppercase;
  margin-top: 8px;
}

.blog-post-page .post-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}

.blog-post-page .post-image-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.blog-post-page .post-recommendations {
  border-top: 1px solid #eee;
  margin-top: 48px;
  padding-top: 32px;
}

.blog-post-page .post-recommendations h2 {
  margin-top: 0;
}

.blog-post-page .rec-group {
  margin-bottom: 24px;
}

.blog-post-page .rec-group h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.blog-post-page .rec-group ul {
  list-style: none;
  padding: 0;
}

.blog-post-page .rec-group ul li {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  padding-left: 16px;
  position: relative;
}

.blog-post-page .rec-group ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #ccc;
}

.blog-post-page .post-nav {
  border-top: 1px solid #eee;
  margin-top: 64px;
  padding-top: 24px;
}

.blog-post-page .post-nav a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  transition: color 0.2s;
}

.blog-post-page .post-nav a:hover {
  color: #1a1a1a;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.contact-page p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #1a1a1a;
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit button {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid #1a1a1a;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-submit button:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
  }

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

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

  .gallery-header,
  .home-intro,
  .blog-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-links {
    grid-template-columns: 1fr 1fr;
  }

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

  .blog-post-thumb {
    order: -1;
  }

  footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .photo.wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}
