.justified-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 images per row on desktop */
  grid-gap: 5px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.justified-image-grid > * {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.justified-image-grid > * > img {
  width: 100%;
  height: auto; /* Maintain aspect ratio for 1:1 images */
  object-fit: cover;
}

.justified-image-grid > .dj-item-dj > img {
	cursor: pointer; /* Change cursor to pointer on hover */
  transition: filter 0.3s ease, transform 0.3s ease; /* Add a smooth transition effect for filter and transform */
	z-index: 1;
	
}

.justified-image-grid > .dj-item-dj:before {
  content:'\A';
	cursor: pointer;
    position:absolute;
    width:100%; height:100%;
    top:0; left:0;
    background:rgba(59,24,138,0.69);
    opacity:0;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
	z-index: 2;
}

.justified-image-grid > .dj-item-dj:before {
    opacity:0;
}

.justified-image-grid > .dj-item-dj:hover:before {
    opacity:1;
}

/* Change opacity on hover to reveal the overlay */
/* .justified-image-grid > .dj-item-dj:hover > img::before {
  opacity: 1;
} 

/* Hover effect - Restore full saturation and zoom in on hover */
.justified-image-grid > .dj-item-dj:hover > img {
  transform: scale(1.1);
}

.justified-image-grid > .dj-item-link > img {
	cursor: pointer; /* Change cursor to pointer on hover */
  transition: filter 0.3s ease, transform 0.3s ease; /* Add a smooth transition effect for filter and transform */
	z-index: 1;
	
}

.justified-image-grid > .dj-item-link:hover > img {
  transform: scale(1.1);
}



/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
  .justified-image-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 images per row on mobile */
  }
}

/* DJ information displayed on hover */
.dj-info {
    position: absolute;
    bottom: -100%; /* Initially hidden below the image */
    left: 0;
    width: 100%;
	height: 100%;
    text-align: center;
/*     background-color: rgba(0, 0, 0, 0.7); */
    color: #fff;
    transition: bottom 0.3s ease; /* Add a small animation */
	z-index: 3;
}

/* Show DJ information on hover */
.dj-item-dj:hover .dj-info {
    bottom: -70%; /* Slide up from below on hover */
}

/* DJ name */
.dj-name {
	cursor: pointer;
	width: 100%;
    margin: 10px 0px 0px 0px;
	font-size: 1.5em; 
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: bold;
	padding-bottom: 10px !important;
	text-transform: uppercase;
	white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflow text */
	padding-top: 10px;
}

.dj-name-cta {
	cursor: pointer;
	font-family: "Helvetica Neue", cursive;
	font-size: 18px;
}

/* ####### POPUP CUSTOM IMAGE GRID STYLE */

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Maximum 4 items per row */
    grid-gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

.grid-item {
    border-radius: 5px;
    overflow: hidden;
}

.grid-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* ####### STYLE STANDALONE POPUP ######### */

/* Style for the modal backdrop */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998; /* Place the backdrop behind the modal */
}

/* Style for the modal dialog */
.custom-modal-dialog {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 9999; /* Place the modal on top of the backdrop */
  max-width: 80%; /* Limit the width of the modal */
  text-align: center;
}

/* Style for the "Close" button */
.modal-close {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Style for the modal content */
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

/* Style for the modal image */
.modal-image {
  width: 100%;
  max-width: 50%;
  margin-right: 20px;
}

.modal-image img {
  max-width: 100%;
  height: auto;
}

/* Style for the modal text */
.modal-text {
  width: 100%;
  max-width: 50%;
  text-align: left;
}

/* Adjust the image width for better presentation */
.custom-modal-dialog img {
  max-width: 100%;
  height: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    text-align: center;
  }

  .modal-image,
  .modal-text {
    max-width: 100%;
    margin: 10px 0;
  }

  .modal-image {
    margin-right: 0;
  }
}