/*
Theme Name: Keesmaat Custom Homes
Theme URI: https://www.keesmaathomes.com/
Author: DCKL
Version: 1.0
License: GNU General Public License

*/



.inner{padding-top:92px;}



.masonry-container {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
    
  -webkit-column-gap: 15px;
  -moz-column-gap: 15px;
  column-gap: 15px;
}

.masonry-item {
  display: inline-block;
  width: 100%;
}

.masonry-item img {
  display:block;
  width: 100%;height:193px;overflow: hidden;
}

.masonry-item h2{line-height:1.6rem;padding:10px;margin-top:15px;}
.masonry-item h2 a{text-decoration: none;font-size:1.6rem;padding-bottom: 1rem!important;margin-bottom: .75rem;}
.masonry-item p{font-size:1.1rem;padding:10px;}


/* Just for decoration: */
.masonry-item span {
  font-family: sans-serif;
  display:block;
  padding:10px;
}

.masonry-item:hover{background:#eeeeee;}

.masonry-item {
  margin-bottom: 15px;
  border:1px solid #ccc;
  border-radius: 5px;
}	


/* Gallery wrapper: more breathing room */
.ngg-galleryoverview.default-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;            /* increased spacing */
  padding: 24px;        /* a bit more padding */
  box-sizing: border-box;
}

/* Thumbnail box: rounded corners, shadow and transition */
.ngg-gallery-thumbnail-box {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  position: relative;margin:16px;
}

/* Hover effect: slight pop via scale, deeper shadow */
.ngg-gallery-thumbnail-box:hover {
  transform: scale(1.04);                     /* subtle pop */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Make sure link fills the box */
.ngg-gallery-thumbnail-box .ngg-gallery-thumbnail a {
  display: block;
  height: 100%;
}

/* Image styling: full-width, maintain aspect ratio */
.ngg-gallery-thumbnail-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Remove the caption overlay rules entirely */
/* (Just delete or comment out any ::after selectors you added before) */

/* Pagination styling */
.ngg-navigation {
  text-align: center;
  margin-top: 32px;      /* give more room above */
}

.ngg-navigation a.page-numbers,
.ngg-navigation span.current {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease, color 0.3s ease;
}

.ngg-navigation span.current {
  background: #0057a3;
  color: #fff;
  border-color: #0057a3;
}

.ngg-navigation a.page-numbers:hover {
  background: #f0f0f0;
}



@media screen and (max-width:40em){



}