/* Gallery page styles
   Scoped styling for gallery.php
*/

/* Banner */
.gallery-banner .banner-heading .border-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.gallery-banner .breadcrumb {
  margin-bottom: 0;
}

.gallery-banner .breadcrumb li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Main gallery section */
.gallery-page {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
}

.gallery-page .container {
  max-width: 1200px;
}

/* Filter tabs */
.gallery-filters {
  margin-bottom: 40px !important;
}

.gallery-filters ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filters ul li {
  float: none;
  margin: 0;
}

.gallery-filters ul li a {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #303030;
  border: 2px solid #e0e0e0;
  border-radius: 32px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-filters ul li a:hover {
  color: #e2761c;
  border-color: #e2761c;
  background: rgba(226, 118, 28, 0.04);
  box-shadow: 0 4px 12px rgba(226, 118, 28, 0.15);
}

.gallery-filters ul li a.active {
  color: #fff;
  background: #e2761c;
  border-color: #e2761c;
  box-shadow: 0 4px 14px rgba(226, 118, 28, 0.35);
}

/* Grid */
.gallery-grid {
  margin: 0 -12px;
  min-height: 400px;
}

.gallery-page .gallery-grid .isotope-item {
  padding: 12px;
  margin-bottom: 0;
}

/* Gallery item card */
.gallery-page .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-page .gallery-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.gallery-page .gallery-item a {
  display: block;
  line-height: 0;
}

.gallery-page .gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-page .gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay */
.gallery-page .gallery-item:after {
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.75) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-page .gallery-item:hover:after {
  opacity: 1;
}

/* Plus icon - centered on hover */
.gallery-page .gallery-icon {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  margin: -24px 0 0 -24px;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2761c !important;
  color: #fff !important;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(226, 118, 28, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-page .gallery-item:hover .gallery-icon {
  transform: scale(1);
  box-shadow: 0 8px 28px rgba(226, 118, 28, 0.5);
}

.gallery-page .gallery-icon i {
  line-height: 1;
}

/* Pagination */
.gallery-pagination {
  margin-top: 48px;
  text-align: center;
}

.gallery-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.gallery-pagination .pagination li {
  display: inline-block;
}

.gallery-pagination .pagination li a,
.gallery-pagination .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #303030;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-pagination .pagination li a:hover {
  color: #e2761c;
  border-color: #e2761c;
  background: rgba(226, 118, 28, 0.06);
  box-shadow: 0 4px 12px rgba(226, 118, 28, 0.15);
}

.gallery-pagination .pagination li.active a {
  color: #fff;
  background: #e2761c;
  border-color: #e2761c;
  box-shadow: 0 4px 14px rgba(226, 118, 28, 0.35);
  pointer-events: none;
}

.gallery-pagination .pagination li.disabled span {
  color: #999;
  cursor: default;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.gallery-pagination .pagination li a.prev,
.gallery-pagination .pagination li a.next {
  font-size: 14px;
}

.gallery-pagination-info {
  margin: 0;
  font-size: 14px;
  color: #7c7c7c;
}

/* Responsive */
@media (max-width: 991px) {
  .gallery-page {
    padding: 40px 0 60px;
  }

  .gallery-page .gallery-item img {
    height: 240px;
  }
}

@media (max-width: 767px) {
  .gallery-page {
    padding: 30px 0 50px;
  }

  .gallery-filters {
    margin-bottom: 28px !important;
  }

  .gallery-filters ul li a {
    padding: 10px 18px;
    font-size: 13px;
  }

  .gallery-grid {
    margin: 0 -8px;
  }

  .gallery-page .gallery-grid .isotope-item {
    padding: 8px;
  }

  .gallery-page .gallery-item img {
    height: 220px;
  }

  .gallery-page .gallery-icon {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    font-size: 18px;
  }

  .gallery-pagination {
    margin-top: 32px;
  }

  .gallery-pagination .pagination li a,
  .gallery-pagination .pagination li span {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
  }

  .gallery-pagination-info {
    font-size: 13px;
  }
}
