
/* =========================================================
   GUI CHRIST — PROJECTS & COMMISSIONS
   gallery-styles.css
   ========================================================= */


/* =========================================================
   1. ESTRUTURA PRINCIPAL
   ========================================================= */

.project-container,
.project-container * {
  box-sizing: border-box;
}

.project-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "a"
    "d"
    "b";
  width: auto;
  min-width: 0;
  margin: 0 5vw;
}

.project-container > .title {
  grid-area: a;
  min-width: 0;
  align-self: start;
}

.project-container > .project-navigation {
  grid-area: d;
  min-width: 0;
  align-self: start;
}

.project-container > .wrapper-focuser,
.project-container > .project-index-panel,
.project-container > .project-about-panel {
  grid-area: b;
  min-width: 0;
}

.project-container > .right {
  display: none;
}


/* =========================================================
   2. TÍTULO E NAVEGAÇÃO
   ========================================================= */

.project-container .project-title {
  display: inline-block;
  margin: 0;
  color: #454140;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-container .project-title p {
  margin: 0;
}

.project-container .project-navigation {
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
}

.project-container .project-navigation a {
  cursor: pointer;
}

.project-container .project-navigation .divider {
  margin: 0 8px;
}

.project-container .project-navigation a.active {
  font-weight: 700;
  pointer-events: none;
  text-decoration: underline;
}



/* =========================================================
   3. GALERIA — ÁREA INDEPENDENTE E ESTÁVEL
   ========================================================= */

.project-container .wrapper-focuser {
  position: relative;
  display: block;
  width: 100%;
  height: min(72svh, calc(100svh - 280px));
  max-height: 900px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  isolation: isolate;
  justify-self: center;
  width: min(90vw, 1700px);
}

.project-container #slideshow.is-discernable {
  display: none !important;
}

.project-container #images.carousel {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.project-container #images .slide {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-container #images .slide[style*="display: flex"] {
  display: flex;
}

.project-container #images .picture {
  display: block;
  width: auto;
  height: auto;
  max-width: min(82vw, 1400px);
  max-height: min(78svh, 900px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}


/* =========================================================
   4. CONTROLES DE NAVEGAÇÃO DA FOTOGRAFIA
   ========================================================= */

.project-container .prev-card,
.project-container .next-card {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.project-container .prev-card {
  left: 0;
  right: auto;
  cursor: w-resize;
}

.project-container .next-card {
  left: 50%;
  right: auto;
  cursor: e-resize;
}


/* =========================================================
   5. INDEX — PAINEL E GRID DE MINIATURAS
   ========================================================= */

.project-container .project-index-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 82vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.project-container .project-index-panel[hidden] {
  display: none !important;
}

.project-container .project-index-panel.is-visible {
  display: block;
}

.project-container .project-index-panel .gallery-index {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: 170px;
  column-gap: 24px;
  row-gap: 24px;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 0 0 24px;
}

.project-container .project-index-panel .index-thumbnail {
  display: flex;
  width: 100%;
  height: 170px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.project-container .project-index-panel .index-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transition: opacity 180ms ease;
}

.project-container .project-index-panel .index-thumbnail:hover img,
.project-container .project-index-panel .index-thumbnail:focus img {
  opacity: .62;
}


/* =========================================================
   6. ABOUT
   ========================================================= */

.project-container .project-about-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 82vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.project-container .project-about-panel[hidden] {
  display: none !important;
}

.project-container .project-about-panel.is-visible {
  display: block;
}

.project-container .info-text {
  max-width: 1200px;
  margin: 0;
  font-size: .9rem !important;
}

.project-container .project-about-panel .info-text {
  margin-top: 0;
}


/* =========================================================
   7. LINK DE RETORNO
   ========================================================= */

.project-container .project-return {
  display: inline-block;
  margin: 8px 0 20px;
  font-family: Roboto, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline solid 1px;
}


/* =========================================================
   8. CLASSES AUXILIARES
   ========================================================= */

.project-container .is-visible {
  display: block;
}

.project-container .is-hidden {
  display: none;
}

.project-container .thumbnail {
  grid-column: span 1;
  grid-row: span 2;
  max-width: 100%;
  max-height: 350px;
  align-self: center;
  justify-self: center;
}

.project-container .thumbnail:hover {
  cursor: pointer;
  opacity: .5;
}


/* =========================================================
   9. TABLET
   ========================================================= */




/* =========================================================
   10. DESKTOP
   ========================================================= */




/* =========================================================
   11. TELAS GRANDES
   ========================================================= */




/* =========================================================
   12. CELULAR
   ========================================================= */




/* =========================================================
   13. ACESSIBILIDADE
   ========================================================= */

.project-container button:focus-visible,
.project-container a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


/* =========================================================
   14. LAZY LOADING
   ========================================================= */

.project-container .lazyload {
  opacity: 0;
}

.project-container .lazyloading {
  opacity: 1;
  transition: opacity 300ms;
}


/* RESPONSIVIDADE UNIFICADA — Mobile / Tablet / Desktop */
@media (max-width: 767px) {
  .project-container {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto minmax(0,70vh);
    grid-template-areas: "a" "d" "b";
    width: auto;
    max-height: 80vh;
    margin: 0 5vw;
  }
  .project-container .project-title { font-size: 1.2rem; }
  .project-container .wrapper-focuser {
    justify-self: center;
    width: 90vw;
    height: min(68svh,calc(100svh - 220px));
    max-height: none;
    margin-top: 0;
  }
  .project-container #images .slide { overflow: hidden; }
  .project-container #images .picture { max-width: 90vw; max-height: 68svh; }
  .project-container .prev-card, .project-container .next-card { top: 0; bottom: 0; width: 50%; height: 100%; }
  .project-container .prev-card { left: 0; }
  .project-container .next-card { left: 50%; }
  .project-container .project-index-panel, .project-container .project-about-panel { max-height: 75vh; }
  .project-container .project-index-panel .gallery-index { grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); grid-auto-rows: 120px; gap: 12px; }
  .project-container .project-index-panel .index-thumbnail { height: 120px; }
  .project-container .project-return { display: none; margin-top: 18px; }
  .project-container .info-text { margin-top: 20px; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .project-container {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: 50px 40px 75vh;
    grid-template-areas: "a" "d" "b";
    max-height: 90vh;
  }
  .project-container .wrapper-focuser {
    justify-self: center;
    width: 90vw;
    height: min(72svh,calc(100svh - 240px));
    max-height: none;
    margin-top: 0;
  }
  .project-container #images .picture { max-width: 90vw; max-height: 72svh; }
  .project-container .project-index-panel, .project-container .project-about-panel { max-height: 75vh; }
  .project-container .project-index-panel .gallery-index { grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); grid-auto-rows: 145px; gap: 16px; }
  .project-container .project-index-panel .index-thumbnail { height: 145px; }
}

@media (min-width: 1100px) {
  .project-container {
    grid-template-columns: 300px minmax(0,1fr);
    grid-template-rows: 50px minmax(0,82vh);
    grid-template-areas: "a b" "d b";
    margin: 0 5vw;
    max-height: none;
  }
  .project-container > .title { grid-area: a; align-self: start; }
  .project-container > .project-navigation { grid-area: d; position: static; align-self: end; justify-self: start; margin: 0; padding: 0; text-align: left; }
  .project-container > .wrapper-focuser, .project-container > .project-index-panel, .project-container > .project-about-panel { grid-area: b; }
  .project-container .wrapper-focuser {
    justify-self: center;
    width: min(90vw,1700px);
    height: min(72svh,calc(100svh - 280px));
    max-height: 900px;
    margin-top: 0;
  }
  .project-container #images .picture {
    max-width: min(82vw,1400px);
    max-height: min(78svh,900px);
  }
  .project-container .project-index-panel, .project-container .project-about-panel { max-height: 82vh; }
  .project-container .project-index-panel .gallery-index { grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); grid-auto-rows: 170px; gap: 24px; }
  .project-container .project-return { display: inline-block; }
}

/* =========================================================
   1.12.8 — POSICIONAMENTO UNIFICADO DAS IMAGENS INDIVIDUAIS
   A navegação mantém afastamento fixo de 50px em relação à base da viewport.
   A fotografia é centralizada no eixo X da janela do browser.
   ========================================================= */

.project-container > .project-navigation {
  position: fixed !important;
  left: 5vw !important;
  bottom: 50px !important;
  top: auto !important;
  z-index: 20;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  align-self: auto;
  justify-self: auto;
}

.project-container > .wrapper-focuser {
  position: relative;
  left: calc((100% - min(90vw, 1700px)) / 2);
  justify-self: start;
  width: min(90vw, 1700px);
  height: max(180px, calc(100svh - 50px - 90px));
  max-height: calc(100svh - 50px - 90px);
  min-height: 180px;
  margin: 0;
}

.project-container #images .picture {
  max-width: min(82vw, 1400px);
  max-height: max(180px, calc(100svh - 50px - 90px));
  margin-left: auto;
  margin-right: auto;
  object-position: center center;
}

@media (max-width: 767px) {
  .project-container > .project-navigation {
    left: 5vw !important;
    bottom: 50px !important;
  }
  .project-container > .wrapper-focuser {
    left: 0;
    width: 90vw;
    height: max(160px, calc(100svh - 50px - 90px));
    max-height: calc(100svh - 50px - 90px);
    min-height: 160px;
  }
  .project-container #images .picture {
    max-width: 90vw;
    max-height: max(160px, calc(100svh - 50px - 90px));
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .project-container > .wrapper-focuser {
    left: calc((100% - 90vw) / 2);
    width: 90vw;
    height: max(180px, calc(100svh - 50px - 90px));
    max-height: calc(100svh - 50px - 90px);
  }
  .project-container #images .picture {
    max-height: max(180px, calc(100svh - 50px - 90px));
  }
}


/* =========================================================
   1.12.10 — ALTURA UNIFICADA DAS FOTOGRAFIAS INDIVIDUAIS
   Referência: fotografia horizontal do edifício (aprox. 75svh).
   A mesma altura máxima vale para imagens horizontais e verticais;
   a largura acompanha a proporção original, sem cortes.
   ========================================================= */
.project-container > .wrapper-focuser {
  height: 75svh !important;
  max-height: 75svh !important;
  min-height: 0 !important;
}
.project-container #images .picture {
  width: auto !important;
  height: auto !important;
  max-height: 75svh !important;
  max-width: 90vw !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 767px) {
  .project-container > .wrapper-focuser {
    height: 75svh !important;
    max-height: 75svh !important;
  }
  .project-container #images .picture {
    max-height: 75svh !important;
    max-width: 90vw !important;
  }
}


/* =========================================================
   1.12.11 — UNIDADE VISUAL DAS FOTOGRAFIAS INDIVIDUAIS
   Referência: visualizador individual de Exhibitions.
   Não altera os painéis Index/About nem a navegação.
   ========================================================= */
.project-container > .wrapper-focuser {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 90vw !important;
  height: 75svh !important;
  max-height: 75svh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: auto !important;
  z-index: 1;
}

.project-container #images .slide {
  display: none;
  align-items: center !important;
  justify-content: center !important;
}

.project-container #images .slide[style*="display: flex"] {
  display: flex !important;
}

.project-container #images .picture {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
  max-height: 75svh !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* A navegação permanece fixa na posição já aprovada. */
.project-container > .project-navigation {
  position: fixed !important;
  left: 5vw !important;
  bottom: 50px !important;
  top: auto !important;
  z-index: 20 !important;
}

/* Telas menores: mesma regra proporcional, com a mesma centralização. */
@media (max-width: 767px) {
  .project-container > .wrapper-focuser {
    width: 90vw !important;
    height: 75svh !important;
    max-height: 75svh !important;
  }
  .project-container #images .picture {
    max-width: 90vw !important;
    max-height: 75svh !important;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .project-container > .wrapper-focuser {
    width: 90vw !important;
    height: 75svh !important;
    max-height: 75svh !important;
  }
  .project-container #images .picture {
    max-width: 90vw !important;
    max-height: 75svh !important;
  }
}
