* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  font-family: "Inter", Arial, sans-serif !important;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

/* GRID PROIECTE: 5 coloane, spatiere dubla */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 32px;
  padding: 0 24px 72px 24px;
}

.item {
  display: block;
  position: relative;
  overflow: hidden;
}

.item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

/* HOVER: voal alb peste poză, titlu sus, locatie jos, text negru */
.item .title,
.item .place {
  position: absolute;
  left: 0;
  right: 0;
  padding: 12px 14px;
  color: #000;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 2;
  font-weight: 500;
}

.item .title {
  top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0));
  padding-bottom: 28px;
}

.item .place {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.85), rgba(255,255,255,0));
  padding-top: 28px;
}

.item:hover .title,
.item:hover .place {
  opacity: 1;
}

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.45);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.item:hover::after {
  opacity: 1;
}

/* TOTEM: singur pe ultimul rand */
.item.totem {
  grid-column: 1 / 2;
}

/* TABLETA */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .item.totem {
    grid-column: auto;
  }
  .intro {
    white-space: normal;
  }
}

/* ============================= */
/* GALERIE PROIECT + LIGHTBOX    */
/* ============================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 32px;
  padding: 24px 24px 72px 24px;
  align-items: start;
}

.gallery-item {
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #f2f2f2;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
}

.lb-close,
.lb-arrow {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  line-height: 1;
}

.lb-close {
  top: 20px;
  right: 28px;
  font-size: 36px;
}

.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  padding: 20px;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 16px 48px 16px;
  }
}

/* ============================= */
/* HEADER: logo stanga, meniu dreapta */
/* ============================= */

header,
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0 24px;
}

.logo {
  display: block;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

nav,
.menu {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: flex-end;
  text-align: right;
  font-size: 13px;
}

nav a,
.menu a {
  color: #000;
}

nav a:hover,
.menu a:hover {
  opacity: 0.5;
}

/* TEXT INTRO: sub meniu, aliniat la dreapta */
.intro {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
  max-width: 420px;
  margin-left: auto;
  padding: 8px 24px 24px 24px;
}

/* ============================= */
/* PAGINA CONTACT                */
/* ============================= */

.contact {
  padding: 24px 24px 72px 30px;
}

.contact p {
  margin-bottom: 4px;
}

.contact a:hover {
  opacity: 0.5;
}

/* ============================= */
/* PAGINA AWARDS                 */
/* ============================= */

.awards {
  padding: 24px 24px 72px 30px;
  max-width: 1100px;
}

.awards h1 {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 36px;
}

.awards ul {
  list-style: none;
}

.awards li {
  display: grid;
  grid-template-columns: 70px 150px 1fr;
  column-gap: 32px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
}

.awards li:last-child {
  border-bottom: none;
}

/* ============================= */
/* PAGINA PROIECT: grid pătrat   */
/* ============================= */

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}