.template-selection-dialog .modal-dialog {
  width: 1240px;
}

.template-selection-dialog .grid {
	display: grid; 
	grid-gap: 10px; 
	grid-template-rows: masonry; /* not yet supported */
	grid-template-columns: repeat(3, 1fr);
	max-height: 730px;
	overflow: auto;
	padding: 10px;
}

.template-selection-dialog .grid .grid-item {
  position: relative;
  width: 350px;
  height: 350px;
  box-sizing: border-box;
  padding: 10px;
  border: 2px solid lightgray; 
  border-radius: 4px;
  margin-right: 40px;
  background-color: #FBFBFB;
}

.template-selection-dialog .grid .grid-item textarea {
  border-color: lightgray;
}

.template-selection-dialog .grid .grid-item:hover {
  box-shadow: 0 0 5px 5px #428bca;
  cursor: pointer;
}

.template-selection-dialog .grid .grid-item.selected {
  background-color: #f0f2f4;
}

.template-selection-dialog .grid .grid-item .toolbar {
  text-align: center;
  padding: 5px;
  position: absolute;
  top: 10px;
  right: -35px;
  cursor: default;
  width: 30px;
}

.template-selection-dialog .grid .grid-item .toolbar i.fa {
  cursor: pointer;
  margin-bottom: 10px;
}

.template-selection-dialog .grid .grid-item .toolbar i.fa.disabled {
  color: gray;
  cursor: default;
}

.template-selection-dialog .grid .grid-item i.fa.fa-check {
  font-size: 5em; 
  color: green; 
  font-weight: bold; 
  position: absolute; 
  bottom: -11px; 
  right: -30px;
}

.template-selection-dialog .grid .grid-item .toolbar i.fa:hover {
  color: #428bca;
}

.template-selection-dialog .grid .grid-item:hover .toolbar {
  display: block;
}
