/* ============================================================
   Tünde Gáspár Photography — Main Stylesheet
   ============================================================
   Font: Google Fonts "Raleway" (loaded in HTML)
   Palette: #0d0d0d background, #fff text, #888 muted
   ============================================================ */

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

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

body {
  background: #0d0d0d;
  color: #fff;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  min-height: 100vh;
}

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

/* ---- Header ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.site-logo {
  display: block;
  height: 38px;
  width: auto;
}

/* ---- Navigation ---- */
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #fff;
}

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Page content wrapper ---- */
main {
  padding-top: 80px; /* clear fixed header */
}

/* ---- Page heading (used on non-homepage galleries) ---- */
.page-heading {
  text-align: center;
  padding: 48px 20px 32px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---- Gallery Grid ---- */
/*
  HOW TO ADD IMAGES:
  Inside each gallery page, find the <div class="gallery"> block.
  Copy an existing <a class="gallery-item"> element and update:
    - href  → path to the full-size image
    - src   → same path for the thumbnail
    - alt   → descriptive text
  That's it — the masonry layout and lightbox handle the rest automatically.

  Images display at their natural aspect ratio (no cropping).
  Portrait, landscape, and square photos all display correctly.
*/
.gallery {
  columns: 3;
  column-gap: 4px;
  padding: 0 4px 4px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.9;
  vertical-align: bottom; /* removes inline gap below image */
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* ---- Awards page ---- */
.awards-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

.awards-section h2 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
  margin-top: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 8px;
  margin-bottom: 16px;
  align-items: start;
}

.award-entry {
  display: flex;
  flex-direction: column;
}

.award-item {
  display: block;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}

.award-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  opacity: 0.88;
  vertical-align: bottom;
}

.award-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.award-entry .award-caption {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  line-height: 1.55;
  border: none;
  padding: 0;
}

.contest-banner {
  display: block;
  max-width: 340px;
  height: auto;
  margin-bottom: 32px;
  opacity: 0.7;
}

.award-caption {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  margin-bottom: 20px;
}

.award-description {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin-top: 12px;
}

/* ---- About page ---- */
.contact-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-about h1 {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.contact-about .bio {
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.contact-about blockquote {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
}

.contact-about blockquote cite {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-style: normal;
  margin-top: 8px;
  color: rgba(255,255,255,0.35);
}

/* Featured photo alongside the bio */
.about-featured img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
}

.about-photo-caption {
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  font-style: italic;
}

/* 3-column photo grid below the bio+featured section */
.about-gallery-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 8px;
  align-items: center;
}

.about-photo-entry {
  display: flex;
  flex-direction: column;
}

.about-photo-entry img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.88;
  transition: opacity 0.3s, transform 0.4s ease;
  vertical-align: bottom;
}

.about-photo-entry img:hover {
  opacity: 1;
  transform: scale(1.02);
}

.about-photo-entry .about-photo-caption {
  /* inherits from .about-photo-caption above */
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 16px 20px;
  transition: color 0.2s;
  z-index: 1001;
  user-select: none;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  header { padding: 16px 24px; }

  .nav-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: #0d0d0d;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 80px 36px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 40px rgba(0,0,0,0.5);
  }

  nav.open { transform: translateX(0); }

  nav a { font-size: 0.82rem; }

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

  .contact-page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 24px 40px;
  }

  .about-gallery-section { padding: 0 24px 60px; }
  .about-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-section { padding: 20px 24px 60px; }
}

@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 2px; padding: 0 2px 2px; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-prev { left: 2px; font-size: 1.8rem; }
  .lightbox-next { right: 2px; font-size: 1.8rem; }
  .site-logo { height: 28px; }
}
