/* body {
    padding-top: 60px;
  } */
  
  .footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e7e7e7;
  }
  
/* Ensure each gallery item is a square by using padding-bottom */
.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 100%; /* Maintain 1:1 aspect ratio */
}

.gallery-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
}

.gallery-item a img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the container without distortion */
}

/* Overlay appears on hover */
.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 5px;
}

/* Base Styling */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Navbar Customization */
.custom-navbar {
  border-bottom: 2px solid #36b5a5;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #36b5a5 !important;
}

.nav-link {
  font-size: 1.1rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: #212529;
  margin-bottom: 1rem;
}

/* Cards */
.card {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

/* Pagination (if customized further) */
.pagination .page-item .page-link {
  border-radius: 999px;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background-color: #36b5a5;
  border-color: #36b5a5;
}

/* Recipe list items */
.recipe-item-thumb {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.recipe-item.border-top {
  border-color: #4a3f6b !important;
  border-width: 2px !important;
}

.border-bottom {
  border-color: #4a3f6b !important;
  border-width: 2px !important;
}

/* Mobile responsive recipe items */
@media (max-width: 575.98px) {
  .recipe-item-thumb {
    width: 100px;
    height: 80px;
  }

  .recipe-item .d-flex {
    gap: 0;
  }

  .recipe-item h4 {
    font-size: 1.1rem;
  }
}

/* Prevent horizontal overflow */
img {
  max-width: 100%;
  height: auto;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.image-preview {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  font-size: 12px;
}
.image-preview img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 6px;
}
.image-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
