.gallery-widget {
    height: auto; /* Let the height adjust to the content dynamically */
    overflow: hidden; /* Prevent content from overflowing the container */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(100px, auto); /* Allow rows to expand based on content */
    margin: 0;
    padding: 0;
    height: auto; /* Dynamically adjust height */
}

.cell {
    border: 1px solid white;
    background-color: #007bff;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none; /* Initially hidden */
}

.cell.visible {
    display: block; /* Show rows when visible */
}
.cell img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fills the cell */
    cursor: pointer;
}

.double-height {
    grid-row: span 2; /* Span 2 rows */
}

.double-width {
    grid-column: span 2; /* Span 2 columns */
}

.double-height-double-width {
    grid-column: span 2;
    grid-row: span 2; /* Span 2 rows and 2 columns */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for smaller screens */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

#contract, #expand{
    background-color: #48a0dc;
    color:white;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.modal-fullscreen {
    max-width: 100%;
    margin: 0;
}

.modal-content {
    background: none;
    border: none;
    box-shadow: none;
}

.carousel-item img {
    height: 100vh;
    object-fit: contain;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9) !important; 
  }
.carousel-control{
    width: 5% !important;
}
.close, .close:focus, .close:hover{
    color: white !important;
    background-color: transparent !important;
}

  .carousel-inner img {
    max-height: 80vh; 
    object-fit: contain; 
  }

  .modal-dialog-centered .modal-content {
    max-width: 90%; 
    max-height: 90%; 
    margin: auto; 
  }

  .modal-dialog {
    background-color: rgb(0 0 0 / 61%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.modal-header {
    border: none;
  }
/* Modal content to fill the dialog */
.modal-content {
    height: 100%;
    border: none; /* Optional: Remove modal border */
}

/* Ensure the modal-body fills the content area */
.modal-body {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

/* Adjust the close button position */
.close {
    position: absolute;
    /* right: 20px; */
    top: 40px;
    color: white; /* Optional: Adjust close button color */
	font-size: x-large !important;
}
.glyphicon-chevron-right:before{
    display: none;
}
.btn-close{
    background-color: Transparent;
    background-repeat:no-repeat;
    border: none;
    cursor:pointer;
    overflow: hidden;
    outline:none;
}