
.nls-gallery-block  .nls-block-wrapper {
    max-width: 1600px;
    width: 100%;
    padding: 12px;
}

.nls-gallery-block img {
    max-width: 100%;

}


  
.nls-gallery-block .nls-block-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Adjusted to four columns for a better fit */
    gap: 12px; /* Space between each grid item */
  }
  
  .nls-gallery-block .nls-block-content {
    background: white; /* Background color of each block */
    overflow: hidden; /* Ensures no content spills out */
    border-radius: 12px;
  }
  
  .nls-gallery-block .nls-block-content img {
    width: 100%; /* Ensures images fill the container */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom space/gap */
  }
  
  /* Special styling for the second image */
  .nls-gallery-block .nls-block-container > .nls-block-content:nth-child(2) {
    grid-column: span 2; /* Span across two columns */
    grid-row: span 2; /* Span across two rows */
  }


  @media (max-width: 980px) {
    .nls-gallery-block .nls-block-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* Adjusted to four columns for a better fit */
      gap: 12px; /* Space between each grid item */
    }
    .nls-gallery-block .nls-block-container > .nls-block-content:nth-child(2) {
      grid-column: span 1;
      grid-row: span 1;
  }

  }