:root {
  --blue: #278ba3;
  --blue-light: #4ec3d8;
  --white: #ffffff;
  --black: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, serif;
  background: var(--black);
  color: var(--white);
  padding: 40px clamp(20px, 4vw, 60px);
  overflow-x: hidden;
}

.header-container {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
  flex-direction: column;
  user-select: none;
}

.title-link { text-decoration: none; color: inherit; }

.title-link h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 30px);
  line-height: 1;
  text-transform: uppercase;
}

.title-link .line1 { display: block; margin-bottom: 6px; }
.title-link .line2 { display: inline; }

.blue  { color: var(--blue); }
.white { color: var(--white); }

.gallery-title {
  font-size: 30px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
  user-select: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  max-width: 1250px;
  margin: 0 auto;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

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

.img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}

.img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--blue-light);
  font-style: italic;
  user-select: none;
}

/* poza mărită la click */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
.lightbox .lb-caption { color: var(--blue-light); font-style: italic; font-size: 15px; }

@media (max-width: 900px) {
  body { padding: 30px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-item:hover { transform: none; }
  
}
