/* ========================================
   Gallery Page Styles
   ======================================== */

/* 20px rounded corners — override style.css's 16px on the container */
.project__container {
  border-radius: 24px;
}

.project__img-holder {
  border-radius: 16px;
  overflow: hidden;
}

.project__img-holder .hover-overlay {
  border-radius: 20px;
}

.gallery-section {
  padding: 50px 0 60px;
  z-index: 2;
}

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

.gallery-item {
  padding: 8px;
}

.gallery-item__inner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item__inner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item__overlay i {
  color: #fff;
  font-size: 32px;
}

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

.gallery-item__inner:hover .gallery-item__overlay {
  opacity: 1;
}

/* Page title (matches other pages) */
.page-title.text-center {
  position: relative;
  margin-top: 0;
}

.page-title.text-center::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-title.text-center h1,
.page-title.text-center p {
  position: relative;
  z-index: 2;
}

.page-title__subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #f8f4e8;
  margin-bottom: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-title.text-center,
.footer {
  border-radius: 16px;
  border: 5px solid #caa86b;
  z-index: 2;
}

.footer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 767px) {
  .gallery-item__inner img {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .gallery-item__inner img {
    height: 180px;
  }
}
