.ebook-table-data .select2-container {
    min-width: 350px;
    max-width: 350px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    margin-bottom: 4px;
}
.select2-container--default .select2-selection--multiple ul li {
    margin-bottom: 0;
}
.select2-container .select2-search--inline {float: none;}

/*  */
.ebook_display_div { text-align: center; display: flex;}
/* .ebook_display_div.landscape { flex-direction: row; gap:0 30px;} */
.ebook_display_div.landscape { flex-direction: row; gap:0 30px; width: auto; height: 100%!important;}
.ebook_display_div.landscape .img_box {height: 100%;}
.ebook_display_div.landscape .img_box img {
    display: block;
    max-width: 100%;
    height: 100%; 
    object-fit: contain;
    overflow: hidden;
    object-position: center;
    border: 0;
    margin: 0 auto;
   
}
.landscape{
    width: 100% !important;
}
.landscape .info {
    justify-content: center !important;
}
.ebook_display_div.landscape .img_box {
    width: 40%;
}
.ebook_display_div.landscape .info {
    width: 60%;
}
.ebook_display_div .info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 0;
    text-align: left;
}
.ebook_display_div .info h1 { margin:0;}
.ebook_display_div .info .description {text-align: left;}
.ebook-input-container {
    display: flex;
    align-items: center;
    max-width: 42%;
    margin: 5px 0;
}

.ebook-input-container label {
    flex: 1;
    margin-right: 10px; /* Adjust margin as needed */
}

.ebook-input-container input {
    flex: 2; /* Adjust the flex value to control input width */
}

/* css for portrait mode for box */
.ebook_display_div.portrait {flex-direction: column; gap:10px 0; width: 100%!important; height: auto!important;} 
.ebook_display_div.portrait .img_box img{
    width:auto; height: auto; max-width: 100%;
    overflow: hidden;
    object-position: center;
    border: 0;
    margin: 0 auto; object-fit: cover; ;
}
.ebook_display_div.portrait .info {
    padding: 0;
}
.ebook_display_div:not(.landscape) .info p {margin:0;}
/* Center-align table header for a table with the class "my-custom-table" */
table.my-custom-table th {
    text-align: center;
    font-weight: 600;
}

.ebooks-display-settings .column-shortcode {
    width: 200px; /* Adjust the width as needed */
}

/* Modal styles */
.modal2-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
    z-index: 9999; /* ensure it's above other content */
}

.modal2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10000; /* ensure it's above other content */
}

.modal2-content {
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 28px;
}

/* Show modal */
.modal2.show {
    display: block;
}

/* Styling for modal content */
.modal2 h2 {
    margin-top: 0;
}

.modal2 p {
    margin-bottom: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    transition: opacity .15s linear;
    background-color: rgba(0, 0, 0, .6);
}
.modal.show .modal-dialog {
    transform: none;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    margin: .5rem 0;
    pointer-events: none;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}
.modal-content {
    padding: 10px;
    background-color: #fff;
    position: relative;
}
@media (max-width:767px){
    .modal-content {
        padding: 5px;
    }
}
.modal-content iframe {
    width: 100%;
    border: 0;
    height: 80vh;
    max-height: 700px;
}
.modal-large {
    width: 680px;
    max-width: 100%;
}
.close {
    border: 0;
    cursor: pointer;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    font-size: 1.55rem;
    padding: .25em .25em;
    display: inline-block;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: absolute; top: 10px; right: 10px;
    z-index: 1;
}
#revert {
    background: #050505;
    color: #fff;
    border-color: #000;
}
.mfp-close-btn-in .mfp-close {
    top: -10px;
    right: -10px;
    opacity: 1;
    background: #fff;
    width: 20px;
    height: 20px;
    color: #000;
    border-radius: 100px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(1px 1px 6px rgb(0 0 0 / 39%));
}
#mycont iframe {
    width: 100%;
}
.unique-custom-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.btnForm {
    margin-top: 15px;
}
.ebook-listing{
	display: flex;
    flex-wrap: wrap;
	margin: 0 -15px -30px -15px;
}
.ebook-item{
	width: 50% !important;
	padding: 0 15px;
	margin-bottom: 30px;
}
.ebook-box{
	padding: 15px;
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: 0px 8px 64px rgba(173, 172, 232, 0.22);
    display: flex;
    height: 100%;
}
/* 
.ebook-box .emd-code code{
	height: 455px !important;
	display: block;
}
.ebook-box .emd-code code img{
	height: 100% !important;
	width: 100% !important;
}
.ebook-box .emd-code code a, .ebook-box .emd-code code > div{
	height: 100% !important;
}
.ebook-box h4{
	font-family: 'Playfair Display';
	font-style: italic;
	font-weight: 400;
	font-size: 18px;
	line-height: 24px;
	color: #0D0D33;
} */
.fancybox__container{
    z-index: 10000;
}
.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {padding-top: 15px;}
.disp_ebook {
    min-width: 70vw; 
    height: 80vw;
}
.pagination-ebook {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    align-items: center;
}

.pagination-ebook .page-numbers {
    width: 25px;
    height: 25px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    border-radius: 5px;
}

.pagination-ebook .next.page-numbers,.pagination-ebook .prev.page-numbers{
    width: auto;
    height: auto;
    padding: 0 10px 0 10px;
}

.pagination-ebook .page-numbers:hover {
    color: #fff;
    background: #0099ef;
    border-color: #0099ef;
}

.pagination-ebook .page-numbers.current {
    background: #0099ef;
    color: #fff;
    border-color: #0099ef;
}
.ebook-search-form {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.ebook-search-form button {
    height: 55px;
    line-height: 1;
    padding: 0 20px; 
}
.btn-container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}
.btn-container-custom a{
    margin: 0;
}
.btn-container-custom .preview-button {
    display: block;
    width: 100%;
}
.btn-container-custom a:nth-child(3){
    margin-right: 10px;
    order: 2;
    width: 100%;
}
.btn-container-custom a:nth-child(2){
    order: 3;
    width: 100%;
}
.ebook_display_div .img_box{
    cursor: pointer;
}
/* For compact mode */
.fancybox__container.is-compact .fancybox__slide.has-iframe .fancybox__content {
    width: 100%;
    height: 100%;
  }
  .view-all {
    display: block;
    width: 100%;
    margin: 10px 0 20px 0px;
}

.view-all a {
    display: block;
    width: 100%;
}
.detail_page_book{
    display: none;
}
.click2show {
    cursor: pointer;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
	float:none !important;
}

/* Custom CSS */
.ebook-listing {
	display: flex;
    flex-wrap: wrap;
    margin: 0px !important;
    gap: 3% !important;
}

 .ebook-item {
    width: 31.3% !important;
    padding: 0px !important;
    margin-bottom: 3% !important;
}

.ebook-box {
	gap:20px;	
	align-items: center;
}

.ebook-box h4	{
	font-size:24px !important;
	line-height:30px !important;
}

.post_search_wrapper.ebook-search-form button {
	color:white;
}

@media only screen and (max-width:1280px) {
.ebook-box h4	{
	font-size:20px !important;
	line-height:30px !important;
}
	
.ebook-box {
	flex-direction: column;
	}
}
.unique-custom-form .info h2 {
    font-size:20px;
    line-height:28px;
}

@media only screen and (max-width:767px) { 
.ebook-item {
    width: 48.5% !important;
	}
}

@media only screen and (max-width:580px) { 
.ebook-item {
    width: 100% !important;
	}
}

/* SVG code */
#mycont-0 {
	margin-top:20px;
}

.disp_ebook.fancybox__content .f-button {
	width: auto;
    height: auto;
    padding: 4px 10px;
    top: 0px;
    right: 0px;
}
.disp_ebook.fancybox__content .f-button svg {
	width: 12px;
  height: 22px;
}

/* Custom CSS end */