/* Fotogaleria Styles - Identidade visual do site */

.galeriaSection {
  width: 100%;
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  background-color: #7ea8c9;
  min-height: 60vh;
}

.galeriaContainer {
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
}

/* Stats */
.galeriaStats {
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.galeriaStats span {
  color: #24231f;
  font-weight: 600;
}

.galeriaStats i {
  color: #7ea8c9;
}

/* ========================================
   ALBUM GRID
   ======================================== */
.albumsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.albumCard {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  display: block;
}

.albumCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.albumCardImg {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.albumCardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.albumCard:hover .albumCardImg img {
  transform: scale(1.08);
}

.albumCardOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.25rem;
}

.albumCard:hover .albumCardOverlay {
  opacity: 1;
}

.albumCardArrow {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #24231f;
  transition: all 0.3s ease;
  transform: translateX(10px);
}

.albumCard:hover .albumCardArrow {
  transform: translateX(0);
}

.albumVideoBadge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(126, 168, 201, 0.9);
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.albumCardContent {
  padding: 1.25rem 1.5rem;
}

.albumCardContent h3 {
  color: #24231f;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.albumCardContent p {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.albumCardMeta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.albumCardMeta span {
  color: #7ea8c9;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Breadcrumb */
.galeriaBreadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.galeriaBreadcrumb a {
  color: #7ea8c9;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.galeriaBreadcrumb a:hover {
  color: #5d8fb3;
}

.galeriaBreadcrumb i.fa-chevron-right {
  font-size: 0.7rem;
  color: #999;
}

.galeriaBreadcrumb span {
  color: #24231f;
  font-weight: 600;
}

/* Video Play Overlay */
.galeriaVideoPlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.galeriaVideoPlay i {
  width: 60px;
  height: 60px;
  background: rgba(126, 168, 201, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.galeriaVideoPlay:hover i {
  background: #7ea8c9;
  transform: scale(1.1);
}

.galeriaItem video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Grid */
.galeriaGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Gallery Item */
.galeriaItem {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.galeriaItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeriaItem:hover img {
  transform: scale(1.1);
}

/* Overlay */
.galeriaOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.galeriaItem:hover .galeriaOverlay {
  opacity: 1;
}

.galeriaCaption {
  color: white;
}

.galeriaCaption p {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.galeriaDate {
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Expand Button */
.galeriaExpand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.galeriaItem:hover .galeriaExpand {
  opacity: 1;
  transform: scale(1);
}

.galeriaExpand:hover {
  background: #24231f;
  color: white;
}

.galeriaExpand i {
  font-size: 1rem;
  color: #24231f;
}

.galeriaExpand:hover i {
  color: white;
}

/* Empty State */
.galeriaEmpty {
  background: white;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.galeriaEmptyIcon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #24231f 0%, #3a3935 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.galeriaEmptyIcon i {
  font-size: 2.5rem;
  color: white;
}

.galeriaEmpty h2 {
  color: #24231f;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.galeriaEmpty p {
  color: #555;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pagination */
.galeriaPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.galeriaPaginationBtn {
  background: white;
  color: #24231f;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.galeriaPaginationBtn:hover {
  background: #24231f;
  color: white;
  transform: translateY(-2px);
}

.galeriaPaginationNumbers {
  display: flex;
  gap: 0.5rem;
}

.galeriaPaginationNumber {
  width: 40px;
  height: 40px;
  background: white;
  color: #24231f;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.galeriaPaginationNumber:hover,
.galeriaPaginationNumber.active {
  background: #24231f;
  color: white;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightboxClose {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightboxClose:hover {
  background: #7ea8c9;
  transform: rotate(90deg);
}

.lightboxClose i {
  font-size: 1.5rem;
  color: #24231f;
}

.lightboxContent {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightboxContent img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightboxCaption {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .albumsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeriaGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .galeriaGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .albumsGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .albumCardImg {
    height: 180px;
  }

  .galeriaSection {
    padding: 2rem 0;
  }

  .galeriaContainer {
    padding: 0 1rem;
  }

  .galeriaGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .galeriaItem {
    border-radius: 0.75rem;
  }

  .galeriaOverlay {
    padding: 1rem;
  }

  .galeriaCaption p {
    font-size: 0.85rem;
  }

  .galeriaExpand {
    width: 35px;
    height: 35px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .galeriaPagination {
    gap: 0.75rem;
  }

  .galeriaPaginationBtn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .galeriaPaginationNumber {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .lightboxClose {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }

  .lightboxClose i {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .galeriaGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .galeriaItem {
    aspect-ratio: 4 / 3;
  }

  .galeriaStats {
    width: 100%;
    justify-content: center;
  }

  .galeriaEmpty {
    padding: 3rem 1.5rem;
  }

  .galeriaEmptyIcon {
    width: 80px;
    height: 80px;
  }

  .galeriaEmptyIcon i {
    font-size: 2rem;
  }

  .galeriaEmpty h2 {
    font-size: 1.25rem;
  }

  .galeriaEmpty p {
    font-size: 0.95rem;
  }

  .galeriaPaginationNumbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}
