/*
* FooGallery Custom CSS
* This file is created by adding custom CSS on FooGallery Settings page in wp-admin
* Created : 23 Sep 2026, 10:39 am
*/

/* ===== FooGallery – Islam in Colour gallery ===== */
#foogallery-gallery-1000505 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Reset FooGallery's fixed-width tiles so they fill the grid */
#foogallery-gallery-1000505 .fg-item {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

#foogallery-gallery-1000505 .fg-item-inner {
  border-radius: 14px;
  overflow: hidden;
  background: #f4f1ec;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#foogallery-gallery-1000505 .fg-image-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

#foogallery-gallery-1000505 .fg-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Hover: lift the card and slowly zoom the image */
#foogallery-gallery-1000505 .fg-item-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16) !important;
}
#foogallery-gallery-1000505 .fg-item-inner:hover .fg-image {
  transform: scale(1.06);
}

/* Soft dark gradient on hover */
#foogallery-gallery-1000505 .fg-image-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 60%) !important;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#foogallery-gallery-1000505 .fg-item-inner:hover .fg-image-overlay {
  opacity: 1;
}

/* Tablet: 3 columns */
@media (max-width: 900px) {
  #foogallery-gallery-1000505 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Mobile: 2 columns, tighter spacing, no hover lift */
@media (max-width: 600px) {
  #foogallery-gallery-1000505 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }
  #foogallery-gallery-1000505 .fg-item-inner {
    border-radius: 10px;
  }
  #foogallery-gallery-1000505 .fg-item-inner:hover {
    transform: none;
  }
}