*::before,
*::after,
* {
  box-sizing: border-box;
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 74px;
}

/* navigation */
.title-section-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

#close-svg:hover {
  stroke: var(--color-orange);
}

#close-svg {
  stroke: var(--color-white);
  cursor: pointer;
}

.category-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* main info grid*/
.main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, auto);
  width: 100%;
  gap: 74px;
}

#title-img {
  grid-column: span 2;
  width: 100%;
  margin: auto;
  min-width: 0;
  min-height: 0;
  max-height: 476px;
}

.article-infos {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.icon-stack-container {
  display: flex;
  gap: 0.5rem;
}

.icon-stack {
  height: 64px;
}

.year-info-text {
  gap: 0;
}

.button-extern {
  align-self: auto;
}

/* picture */

.picture-section {
  display: flex;
  flex-direction: column;
  gap: 74px;
  width: 100%;
}

.picture-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  flex-wrap: wrap;
}

.project-pics {
  height: 412px;
  aspect-ratio: 1/1;
  object-fit: contain;
  border: 1px solid var(--color-orange);
}

/* lightbox */

.lightbox-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 350px;
  height: 350px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.lightbox {
  display: none;
}

.lightbox-thumb {
  max-width: 346px;
  max-height: 346px;
  object-fit: contain;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-label {
  cursor: pointer;
  user-select: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-lightblack);
}

.lightbox:focus-visible + .lightbox-label {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.lightbox-container {
  display: flex;
  gap: 30px;
}

.background {
  display: none;
}

.lightbox:checked ~ .background {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.3);
  backdrop-filter: blur(8px);
  user-select: none;
}

.lightbox-full {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* media queries */

@media (max-width: 692px) {
  .lightbox-container {
    flex-direction: column-reverse;
    justify-content: start;
    align-items: end;
    height: 100%;
    width: 100%;
    padding: 10px;
  }

  .lightbox-full {
    align-self: center;
    margin: auto;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .article-infos {
    grid-column: span 2;
  }
}
