/* ============================================================
   Studio Connecta Arch — Feed do Instagram (@studioconnectaarch)
   Masonry dos 6 últimos posts + lightbox, na identidade da Arch:
   Work Sans, dourado #85754E, flat/cantos retos, base clara.
   Escopo sob .ig-arch e .igx- (lightbox) para não vazar no Avada.
   ============================================================ */
.ig-arch {
  --iga-gold: #85754E;
  --iga-gold-deep: #6f6240;
  --iga-ink: #2c2f33;
  --iga-body: #656a70;
  --iga-line: #e2e0da;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}
.ig-arch *, .ig-arch *::before, .ig-arch *::after { box-sizing: border-box; }

/* masonry via colunas ------------------------------------- */
.ig-arch-grid {
  column-count: 3;
  column-gap: 14px;
  margin: 0;
}
.ig-arch-grid.ig-unavailable { display: none; }
.ig-arch-card {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--iga-line);
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  line-height: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.ig-arch-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.02);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.ig-arch-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(44,47,51,.5); }
.ig-arch-card:hover img { transform: scale(1.05); }
.ig-arch-card:focus-visible { outline: 2px solid var(--iga-gold); outline-offset: 2px; }

.ig-arch-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(133,117,78,.0);
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
}
.ig-arch-card:hover .ig-arch-card-hover { opacity: 1; background: rgba(133,117,78,.42); }
.ig-arch-card-hover svg { width: 30px; height: 30px; fill: #fff; }
.ig-arch-card-type {
  position: absolute;
  top: 9px; right: 9px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
}
.ig-arch-card-type svg { width: 12px; height: 12px; fill: #fff; }

/* cabeçalho / cta ----------------------------------------- */
.ig-arch-cta { margin-top: 22px; text-align: center; }
.ig-arch-follow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iga-ink);
  text-decoration: none;
  border: 1px solid var(--iga-line);
  padding: 14px 30px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.ig-arch-follow svg { width: 18px; height: 18px; fill: currentColor; }
.ig-arch-follow:hover { color: #fff; background: var(--iga-gold); border-color: var(--iga-gold); }

/* estado indisponível (degrada só p/ o botão Seguir) ------ */
.ig-arch.ig-unavailable .ig-arch-grid { display: none; }

/* lightbox ------------------------------------------------- */
.igx-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  font-family: "Work Sans", sans-serif;
}
.igx-lightbox.is-open { display: flex; }
.igx-scrim { position: absolute; inset: 0; background: rgba(20,19,16,.86); backdrop-filter: blur(3px); }
.igx-dialog {
  position: relative;
  display: flex;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  overflow: hidden;
  animation: igx-in .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes igx-in { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.igx-media {
  flex: 1 1 58%;
  min-width: 0;
  background: #0d0c0a;
  display: flex; align-items: center; justify-content: center;
}
.igx-media img, .igx-media video { max-width: 100%; max-height: 88vh; display: block; object-fit: contain; }
.igx-aside {
  flex: 0 0 42%;
  max-width: 340px;
  padding: 26px 24px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.igx-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--iga-ink, #2c2f33);
  letter-spacing: .01em;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid #e2e0da;
}
.igx-brand svg { width: 20px; height: 20px; fill: #85754E; }
.igx-brand b { font-weight: 600; }
.igx-brand .igx-handle { color: #85754E; font-weight: 500; }
.igx-cap {
  font-size: 14px; line-height: 1.6; color: #656a70;
  white-space: pre-wrap; word-wrap: break-word; flex: 1 1 auto;
}
.igx-link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: #2c2f33; text-decoration: none;
  border: 1px solid #85754E; padding: 12px 18px; align-self: flex-start;
  transition: background .2s ease, color .2s ease;
}
.igx-link:hover { background: #85754E; color: #fff; }
.igx-link svg { width: 14px; height: 14px; fill: currentColor; }
.igx-close, .igx-nav {
  position: absolute; z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); border: 0; cursor: pointer;
  color: #2c2f33;
}
.igx-close { top: 10px; right: 10px; border-radius: 50%; }
.igx-close svg, .igx-nav svg { width: 18px; height: 18px; fill: currentColor; }
.igx-nav { top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); }
.igx-prev { left: 10px; }
.igx-next { right: 10px; }
.igx-nav.is-hidden { display: none; }

/* responsivo ----------------------------------------------- */
@media (max-width: 900px) {
  .igx-dialog { flex-direction: column; max-height: 90vh; }
  .igx-media { flex: 1 1 auto; max-height: 60vh; }
  .igx-media img, .igx-media video { max-height: 60vh; }
  .igx-aside { flex: 1 1 auto; max-width: none; }
}
@media (max-width: 680px) {
  .ig-arch-grid { column-count: 2; column-gap: 10px; }
  .ig-arch-card { margin-bottom: 10px; }
}
