.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%;
}
.landscape-btn.btn-container-custom {
    justify-content: start;
}

.landscape-btn.btn-container-custom a {
    width: auto;
}

.fancybox__content .is-close-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #76736c;
    border-radius: 100%;
    padding: 0;
    position: absolute !important;
    right: -17px !important;
    top: -15px !important;
    background-color: transparent;
    background-image: url(data:image/svg+xml,%3Csvg width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.649 9.33588L17.6579 2.32683C18.114 1.87091 18.114 1.13374 17.6579 0.677876C17.202 0.221958 16.4648 0.221958 16.009 0.677876L8.99988 7.68687L1.99106 0.677876C1.53492 0.221958 0.798019 0.221958 0.342102 0.677876C-0.114034 1.13379 -0.114034 1.87091 0.342102 2.32683L7.35087 9.33588L0.342157 16.3449C-0.113979 16.8008 -0.113979 17.538 0.342157 17.9938C0.450302 18.1023 0.578812 18.1883 0.720303 18.2469C0.861794 18.3056 1.01348 18.3357 1.16663 18.3355C1.46511 18.3355 1.7637 18.2212 1.99111 17.9938L8.99988 10.9848L16.009 17.9938C16.1171 18.1023 16.2457 18.1883 16.3871 18.2469C16.5286 18.3055 16.6803 18.3356 16.8335 18.3355C17.1319 18.3355 17.4305 18.2212 17.6579 17.9938C18.114 17.5379 18.114 16.8008 17.6579 16.3449L10.649 9.33588Z' fill='%230099EF'/%3E%3C/svg%3E%0A);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 12px;
    opacity: 1 !important;
    transition: all .3s ease-in-out;
    background-color: #dc6932;
}