
	/* Matrix container */
.main-article-content .matrix {
  
  width:100%;
  height: fit-content;
  display: grid;
  grid-template-columns: repeat(2, 44%); /* 4 columns with each 200px */
  grid-gap: 4%; /* space between images */

margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
padding-bottom: 60px;
}
/* Style for each image cell */
.matrix .image-cell {
  width:100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
 
  border-radius: 8px;
  border: 2px solid #939191;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /*cursor: pointer;*/
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}
/* Style for the image */
.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}
/* Overlay text style */
.overlay {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color:rgb(75, 73, 73);
  
  
  text-align: center;
  text-decoration:none; 
  font-size: 25px;

  /**text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);**/
  visibility: hidden; /* Initially hidden */
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay a {
  z-index: 10;
  font-weight:640; 
  text-decoration:none; 
  color:rgb(68, 66, 66);
  

}
/* Hover effect on image cell */
.image-cell:hover {
  transform: scale(1.05);
  
}



/**.image-cell:hover .overlay {**/
.image-cell .overlay {
  visibility: visible; /* Show overlay on hover */
  opacity: 1;
}
.image-cell:active img {
  opacity: 0.8;
}
  
@media only screen and (min-width: 500px) {
  
  /* Matrix container */
.main-article-content .matrix {
  width:100%;
  display: grid;
  grid-template-columns: repeat(4, 22%); /* 4 columns with each 200px */
  grid-gap: 4%; /* space between images */
width:100%;
margin-left: auto;
margin-right: auto;
}
/* Style for each image cell */
.matrix .image-cell {
  width:100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
 
  border-radius: 8px;
  border: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/*cursor: pointer;*/
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}
/* Style for the image */
.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
/* Overlay text style */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-size: 17px;
  font-weight: bold;
  /**text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);**/
  visibility: hidden; /* Initially hidden */
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* Hover effect on image cell */
.image-cell:hover {
  transform: scale(1.05);
}
/**.image-cell:hover .overlay {**/
.image-cell .overlay {
  visibility: visible; /* Show overlay on hover */
  opacity: 1;
}
.image-cell:active img {
  opacity: 0.8;
}


@media (min-width: 768px) { 
  .overlay {
       font-size: 22px;
     }


/*Desktop View*/

	@media (min-width: 1024px) { 
	
		


/* Matrix container */
.main-article-content .matrix {
    display: grid;
    
	width:fit-content;
	margin-left: auto;
	margin-right: auto;
  }
  /* Style for each image cell */
  .matrix .image-cell {
    width:100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    
    border-radius: 8px;
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /*cursor: pointer;*/
    transition: transform 0.3s ease;
  }
  /* Style for the image */
  .image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity:0.5;
  }
  /* Overlay text style */
  .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    font-size: 22px;
    
    /**text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);**/
    visibility: hidden; /* Initially hidden */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  
  /* Hover effect on image cell */
  .image-cell:hover {
    transform: scale(1.05);
  }
  /**.image-cell:hover .overlay {**/
  .image-cell .overlay {
    visibility: visible; /* Show overlay on hover */
    opacity: 1;
  }
  .image-cell:active img {
    opacity: 0.8;
  }
  
  @media (min-width: 1256px) {

    .main-article-content .matrix {
    width:70%;
    }



    /* Overlay text style */
.overlay {
  
  font-size: 28px;  
 
}
}