/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* Grid for [post_gallery] */
.tw-gallery { display:grid; gap:12px; }
.tw-cols-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tw-cols-4 { grid-template-columns: repeat(4, 1fr); }
.tw-gallery img { width:100%; height:auto; display:block; }

/* default: 1 column */
.tw-gallery { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: 1fr; 
}

/* if there are 3 or more items, switch to 2 columns */
.tw-gallery:has(> *:nth-child(3)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* keep phones single-column if you want */
@media (max-width: 480px) {
  .tw-gallery { grid-template-columns: 1fr !important; }
}


