/* ============================================
   ARQUIVO ESSENCIAL — Index Page
   Estilo Documental Minimalista
   ============================================ */

/* Fontes importadas via HTML:
   - Cormorant Garamond (títulos)
   - Inter (corpo)
   - JetBrains Mono (códigos)
*/

/* Reset e Configurações Gerais */
*, *::before, *::after {
   box-sizing: border-box;
}

body {
   padding: 0;
   margin: 0 auto;
   font-family: 'Inter', Arial, Helvetica, sans-serif;
   background-color: #f7f7f5;
   color: #1a1a1a;
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

h1, h2, h3, p {
   margin: 0;
   padding: 0;
}

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

img {
   max-width: 100%;
   display: block;
}

/* ============================================
   HEADER
   ============================================ */

.header-bg {
   background-color: #f7f7f5;
   border-bottom: 1px solid #e8e8e6;
   position: sticky;
   top: 0;
   z-index: 100;
}

.container-header {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 40px;
}


.container {
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 40px;
}

.header {
   display: flex;
   flex-wrap: wrap;
   padding: 24px 0;
   gap: 8px;
   align-items: center;
   justify-content: space-between;
   font-weight: normal;
}

.logo h1 {
   font-size: 1.4rem;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   letter-spacing: -0.02em;
}

.logo h1 a {
   color: #1a1a1a;
   transition: opacity 0.3s ease;
}

.logo h1 a:hover {
   opacity: 0.6;
}

.header-menu {
   display: flex;
   flex-wrap: wrap;
   gap: 32px;
}

.header-menu a {
   position: relative;
   display: inline-block;
   padding: 4px 0;
   color: #666;
   font-size: 0.85rem;
   font-weight: 400;
   letter-spacing: 0.05em;
   text-transform: uppercase;
   font-family: 'Inter', sans-serif;
   transition: color 0.3s ease;
}

.header-menu a:hover {
   color: #1a1a1a;
}

.header-menu a::after {
   content: "";
   position: absolute;
   left: 50%;
   bottom: -2px;
   width: 0;
   height: 1px;
   background-color: #1a1a1a;
   transition: width 0.4s ease, left 0.4s ease;
}

.header-menu a:hover::after {
   width: 100%;
   left: 0;
}

/* ============================================
   ARCHIVE HERO
   ============================================ */

.archive-hero {
   display: grid;
   grid-template-columns: 1fr 1fr;
   padding: 30px 0 20px;
   text-align: left;
   border-bottom: 1px solid #e8e8e6;
}

.archive-label {
   display: block;
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.9rem;
   letter-spacing: 0.2em;
   text-transform: uppercase;
   color: #575757;
   margin-bottom: 20px;
}

/*
.name-archive-label {
     display: block;
   font-family: 'JetBrains Mono', monospace;
    text-transform: none;
    letter-spacing: 0.1em;
    color: rgb(6, 113, 163);
    font-size: 1rem;
}  */

.archive-title {
   font-family: 'Cormorant Garamond', serif;
   font-size: 4rem;
   font-weight: 400;
   color: #1a1a1a;
   margin-bottom: 20px;
   letter-spacing: -0.03em;
   line-height: 1.1;
}

.archive-desc {
   font-size: 1rem;
   color: #888;
   font-weight: 300;
   max-width: 500px;
   margin: 0 auto;
   line-height: 1.7;
}

/* Stats */
.archive-stats {
   display: flex;
   justify-content: center;
   gap: 60px;
   margin-top: 50px;
}

.stat-item {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
}

.stat-number {
   font-family: 'Cormorant Garamond', serif;
   font-size: 2.5rem;
   font-weight: 400;
   color: #1a1a1a;
   line-height: 1;
}

.stat-label {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.65rem;
   letter-spacing: 0.15em;
   text-transform: uppercase;
   color: #999;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-bg {
   background-color: #f7f7f5;
   padding: 20px 20px ;
}

.gallery-header {
   display: flex;
   justify-content: space-between;
   align-items: baseline;
   margin-bottom: 60px;
   padding-bottom: 20px;
   border-bottom: 1px solid #e8e8e6;
}

.gallery-section-title {
   font-family: 'Cormorant Garamond', serif;
   font-size: 1.8rem;
   font-weight: 400;
   color: #1a1a1a;
   letter-spacing: -0.02em;
}

.gallery-count {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   color: #999;
   letter-spacing: 0.1em;
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 40px;
   grid-auto-flow: dense;
}

/* Gallery Item */
.gallery-item {
   margin: 0;
   position: relative;
}

.gallery-item--tall {
   grid-row: span 2;
}

.gallery-item--wide {
   grid-column: span 2;
}

/* Image Wrapper */
.gallery-img-wrapper {
   position: relative;
   overflow: hidden;
   border-radius: 2px;
   cursor: pointer;
   background-color: #eee;
}

.gallery-img-wrapper::before {
   content: "";
   display: block;
   padding-top: 75%; /* 4:3 aspect ratio default */
}

.gallery-item--tall .gallery-img-wrapper::before {
   padding-top: 150%; /* Taller aspect ratio */
}

.gallery-img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
   filter: grayscale(20%);
}

.gallery-item:hover .gallery-img {
   transform: scale(1.03);
   filter: grayscale(0%);
}

/* Overlay on hover */
.gallery-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background 0.4s ease;
   pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
   background: rgba(0, 0, 0, 0.3);
}

.gallery-view {
   font-family: 'Inter', sans-serif;
   font-size: 0.8rem;
   font-weight: 400;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: #fff;
   opacity: 0;
   transform: translateY(10px);
   transition: all 0.4s ease;
   border: 1px solid rgba(255, 255, 255, 0.6);
   padding: 10px 20px;
}

.gallery-item:hover .gallery-view {
   opacity: 1;
   transform: translateY(0);
}

/* Caption */
.gallery-caption {
   margin-top: 8px;
   display: flex;
   flex-direction: column;
   gap: px;
}

.caption-title {
   font-family: 'Cormorant Garamond', serif;
   font-size: 1.1rem;
   font-weight: 400;
   color: #1a1a1a;
   letter-spacing: -0.01em;
}

.caption-meta {
   font-size: 0.75rem;
   color: #888;
   font-weight: 300;
}

.caption-code {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.65rem;
   color: #bbb;
   letter-spacing: 0.1em;
   margin-top: 3px;
}

/* ============================================
   LIGHTBOX / OVERLAY
   ============================================ */

.overlay {
   opacity: 0;
   transition: opacity 0.4s ease;
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(10, 10, 10, 0.95);
   justify-content: center;
   align-items: center;
   flex-direction: column;
   z-index: 1000;
}

.overlay.active {
   opacity: 1;
}

#expanded-img {
   max-width: 85%;
   max-height: 75vh;
   object-fit: contain;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#close-btn {
   position: absolute;
   top: 30px;
   right: 40px;
   color: rgba(255, 255, 255, 0.6);
   font-size: 32px;
   cursor: pointer;
   font-weight: 300;
   transition: color 0.3s ease;
   font-family: 'Inter', sans-serif;
}

#close-btn:hover {
   color: #fff;
}

#prev-btn, #next-btn {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: transparent;
   color: rgba(255, 255, 255, 0.5);
   padding: 20px;
   font-size: 24px;
   cursor: pointer;
   border: none;
   transition: all 0.3s ease;
   font-family: 'Inter', sans-serif;
}

#prev-btn:hover, #next-btn:hover {
   color: #fff;
}

#prev-btn { left: 30px; }
#next-btn { right: 30px; }

/* Info do overlay */
.overlay-info {
   position: absolute;
   bottom: 40px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 24px;
   align-items: center;
}

#overlay-counter,
#overlay-code {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   color: rgba(255, 255, 255, 0.5);
   letter-spacing: 0.1em;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
   background-color: #1a1a1a;
   padding: 40px 0;
}

.footer .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.footer p {
   font-size: 0.8rem;
   color: #888;
   font-weight: 300;
   letter-spacing: 0.05em;
}

.footer-year {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   color: #555;
}

/* ============================================
   MENU HAMBÚRGUER & MOBILE
   ============================================ */

.hamburger-menu {
   display: none;
   flex-direction: column;
   cursor: pointer;
   width: 36px;
   height: 36px;
   justify-content: center;
   align-items: center;
   border: 1px solid #ddd;
   border-radius: 50%;
   padding: 0;
   background: transparent;
   transition: all 0.3s ease;
}

.hamburger-menu:hover {
   border-color: #1a1a1a;
}

.hamburger-menu .bar {
   width: 14px;
   height: 1.5px;
   background-color: #333;
   margin: 2px 0;
   transition: all 0.3s ease;
}

.mobile-menu {
   display: none;
   background-color: #f7f7f5;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   padding-top: 80px;
   z-index: 99;
}

.mobile-menu-list {
   list-style: none;
   text-align: center;
}

.mobile-menu-list li {
   margin: 24px 0;
}

.mobile-menu-list a {
   font-size: 1.5rem;
   color: #1a1a1a;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 400;
   letter-spacing: 0.05em;
   transition: opacity 0.3s ease;
}

.mobile-menu-list a:hover {
   opacity: 0.5;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */


/* ============================================
   SECTION DIVIDER — Digital / Analog
   ============================================ */

.section-divider {
   padding: 25px 0;
   background-color: #f7f7f5;
}

.section-divider .container {
   display: flex;
   align-items: center;
   gap: 24px;
}

.divider-line {
   flex: 1;
   height: 1px;
   background-color: #e0e0e0;
}

.divider-label {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   letter-spacing: 0.2em;
   text-transform: uppercase;
   color: #bbb;
   padding: 0 16px;
}

/* ============================================
   ANALOG SECTION
   ============================================ */

.gallery-bg--analog {
   padding-top: 10px;
}

/* Subtle visual distinction for analog items */
.gallery-grid--analog .gallery-item {
   position: relative;
}

.gallery-grid--analog .gallery-item::before {
   content: "";
   position: absolute;
   top: -8px;
   left: -8px;
   right: -8px;
   bottom: -8px;
   border: 1px solid #e0e0e0;
   border-radius: 2px;
   pointer-events: none;
   opacity: 0;
   transition: opacity 0.4s ease;
}

.gallery-grid--analog .gallery-item:hover::before {
   opacity: 1;
}

/* Gallery header title group */
.gallery-header-title {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.gallery-medium {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.65rem;
   color: #bbb;
   letter-spacing: 0.1em;
   text-transform: uppercase;
}


/* RESPONSIVO */



   @media screen and (max-width: 1240px) { 

     .header {
      margin: 0 40px;
   }

   }
@media screen and (max-width: 768px) {
   .container {
      padding: 0 24px;
   }

   .header {
      padding: 20px 0;
   }

   .archive-hero {
      padding: 60px 0 50px;
   }

   .archive-title {
      font-size: 2.8rem;
   }

   .archive-desc {
      font-size: 0.9rem;
      max-width: 90%;
   }

   .archive-stats {
      gap: 30px;
   }

   .stat-number {
      font-size: 2rem;
   }

   .gallery-header {
      margin-bottom: 40px;
   }

   .gallery-grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 24px;
   }

   .gallery-item--wide {
      grid-column: span 1;
   }

   .gallery-item--tall {
      grid-row: span 1;
   }

   .header-menu {
      display: none;
   }

   .hamburger-menu {
      display: flex;
   }

   .mobile-menu.active {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
   }

   /* Lightbox mobile */
   #expanded-img {
      max-width: 90%;
      max-height: 60vh;
   }

   #prev-btn, #next-btn {
      top: auto;
      bottom: 80px;
      transform: none;
      font-size: 20px;
      padding: 16px;
   }

   #prev-btn { left: 20px; }
   #next-btn { right: 20px; }

   .overlay-info {
      bottom: 30px;
   }

   .footer-content {
      flex-direction: column;
      gap: 8px;
      text-align: center;
      padding: 0 24px;
   }
}

@media screen and (max-width: 480px) {
   .archive-title {
      font-size: 2.2rem;
   }

   .archive-stats {
      gap: 20px;
   }

   .stat-number {
      font-size: 1.8rem;
   }

   .gallery-grid {
      grid-template-columns: 1fr;
      gap: 30px;
   }

   .gallery-item--wide {
      grid-column: span 1;
   }

   .gallery-section-title {
      font-size: 1.4rem;
   }

   .gallery-view {
      opacity: 1;
      transform: none;
      font-size: 0.7rem;
      padding: 8px 16px;
   }

   .gallery-overlay {
      background: rgba(0, 0, 0, 0.2);
   }
}