/* ── Tabs de álbuns ─────────────────────────────────────── */
.gallery-tabs-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.gallery-tabs-row .gallery-like-btn {
  position: absolute;
  right: 0;
}

.gallery-tab {
  background: transparent;
  border: 2px solid #1a3a5c;
  color: #1a3a5c;
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gallery-tab.active,
.gallery-tab:hover {
  background: #1a3a5c;
  color: #fff;
}

/* ── Container principal ────────────────────────────────── */
#gallery-grid {
  display: block !important;
  width: 100%;
}

/* ── Wrapper com setas laterais ─────────────────────────── */
.gallery-carousel-wrap {
  position: relative;
  padding: 0;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #e8edf2;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  color: #1a3a5c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
  z-index: 10;
}

.gallery-nav-prev { left: 14px; }
.gallery-nav-next { right: 14px; }

.gallery-nav-btn:hover {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
  box-shadow: 0 6px 20px rgba(26,58,92,0.25);
}

.gallery-nav-btn:focus { outline: none; }
.gallery-nav-btn:disabled { opacity: 0.25; cursor: default; }
.gallery-nav-btn:disabled:hover {
  background: #fff;
  color: #1a3a5c;
  border-color: #e8edf2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ── Track do carrossel ─────────────────────────────────── */
.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Cards ──────────────────────────────────────────────── */
.gallery-card {
  flex-shrink: 0;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: pointer;
}

.gallery-card-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background: #000;
}

.gallery-card:hover .gallery-card-inner {
  box-shadow: 0 10px 36px rgba(0,0,0,0.20);
  transform: translateY(-4px);
}

/* ── Media (imagem com aspect-ratio) ────────────────────── */
.gallery-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.06);
}

/* ── Overlay centrado (aparece no hover) ─────────────────── */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

/* ── Ícone Facebook no overlay ───────────────────────────── */
.gallery-card-fb-icon {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── Nome da empresa no overlay ──────────────────────────── */
.gallery-card-overlay-name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Rodapé do card ─────────────────────────────────────── */
.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.gallery-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #f0f4f8;
  border: 1px solid #e5eaf0;
  flex-shrink: 0;
  padding: 3px;
}

.gallery-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a3a5c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-time {
  font-size: 0.72rem;
  color: #888;
}

.gallery-card-fb-footer {
  font-size: 1.3rem;
  color: #1877f2;
  flex-shrink: 0;
}

/* ── Dots de paginação ──────────────────────────────────── */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d4de;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
  display: inline-block;
}

.gallery-dot.active {
  background: #1a3a5c;
  transform: scale(1.3);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .gallery-nav-btn { width: 38px; height: 38px; font-size: 1.6rem; }
}

@media (max-width: 575px) {
  .gallery-nav-btn { width: 34px; height: 34px; font-size: 1.4rem; }
  .gallery-nav-prev { left: 6px; }
  .gallery-nav-next { right: 6px; }
}

/* ── Lightbox ───────────────────────────────────────────── */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-lightbox.open { display: flex; }

.lb-container {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Painel da imagem ── */
.lb-image-panel {
  flex: 0 0 62%;
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-image-panel img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #e8edf2;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #1a3a5c;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-prev:hover, .lb-next:hover {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

.lb-prev:focus, .lb-next:focus { outline: none; }

/* ── Botão fechar ── */
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Painel de informação ── */
.lb-info-panel {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  overflow-y: auto;
  border-left: 1px solid #f0f0f0;
}

.lb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lb-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #f0f4f8;
  border: 1px solid #e5eaf0;
  padding: 4px;
  flex-shrink: 0;
}

.lb-page-info { flex: 1; min-width: 0; }

.lb-page-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a3a5c;
}

.lb-time {
  display: block;
  font-size: 0.80rem;
  color: #888;
  margin-top: 2px;
}

.lb-fb-icon {
  font-size: 1.9rem;
  color: #1877f2;
  flex-shrink: 0;
}

.lb-album {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  opacity: 0.7;
}

.lb-caption {
  font-size: 0.92rem;
  color: #333;
  line-height: 1.65;
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .lb-container { flex-direction: column; max-height: 92vh; }
  .lb-image-panel { flex: 0 0 auto; max-height: 52vw; min-height: 220px; }
  .lb-info-panel { flex: 1; border-left: none; border-top: 1px solid #f0f0f0; padding: 16px; }
}

/* ── Botão Like us ──────────────────────────────────────── */
.gallery-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1877f2;
  color: #fff;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.gallery-like-btn:hover {
  background: #1558b0;
  color: #fff;
  text-decoration: none;
}

/* ── Link Facebook ──────────────────────────────────────── */
.gallery-fb-link {
  color: #1877f2;
  text-decoration: none;
  font-size: 0.95rem;
}

.gallery-fb-link:hover {
  text-decoration: underline;
}

/* ── Loading spinner ────────────────────────────────────── */
.gallery-loading {
  text-align: center;
  padding: 40px;
  color: #aaa;
  font-size: 1.5rem;
}
