.container_imglist {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.large-image_imglist {
    flex: 0 0 50%;
    overflow: hidden; /* Ensures the image doesn't overflow */
    position: relative;
  	padding: 5px;
}

.large-image_imglist img { 
     display: block;
    cursor: pointer; /* Make images clickable */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire container */
    object-position: center; /* Centers the image */
}

	 
    
.small-images_imglist {
    display: flex;
    flex-wrap: wrap;
    width: 50%;
}

.small-images_imglist {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 10px; /* spacing between images */
    margin-top: 5px;
    margin-bottom: 5px;
  }
  
  .small-image_imglist img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
  }
	
	
	



/* Modal (Slideshow) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides {
    width: 100%;
    max-height: 100%;
    display: none;
    object-fit: cover;
    object-position: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transform: translateY(-50%);
}

.prev {
    left: 10px; /* Align to the left margin */
}

.next {
    right: 10px; /* Align to the right margin */
    border-radius: 3px 0 0 3px;
}


.prev:hover, .next:hover, .close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
    
	
	
.thumbnail-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    margin: 5px;
    cursor: pointer;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
}
	