/**
* Catalogue PDF Viewer
*
* @author    THECON
* @copyright THECON
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/

.c-content img {
    max-width: 100%;
}
#catalogue_modal canvas {
    max-width: 100% !important;
}
.th-pdf-row .text-center, #catalogue_modal .text-center {
    text-align: center !important;
}
.th-pdf-row .text-left, #catalogue_modal .text-left {
    text-align: left !important;
}
.th-pdf-row .text-right, #catalogue_modal .text-right {
    text-align: right !important;
}
.c-body:not(.th-lc-type) .c-links {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    height: calc(100% + 1px);
    position: absolute;
    background: rgba(0,0,0,0.4);
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.c-body {
    position: relative;
}
.c-title {
    padding: 10px;
}
.c-content:not(.th-lc-type):hover .c-links {
    display: flex;
}

#catalogue_modal .c-input {
    width: 40px;
    border: 1px solid #000;
    height: 28px;
    text-align: center;
}

#catalogue_modal .modal-content {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
}

#catalogue_modal button.close {
    position: absolute;
    right: 15px;
    top: 15px;
}

.header-content {
    width: 100%;
}

.c-content {
    margin-bottom: 25px;
}

div#pager {
    display: inline-block;
    margin-right: 30px;
}

.c-pagination {
    font-size: 15px;
    color: #000;
}

.th-pdf-row {
    display: flex;
    flex-wrap: wrap;
}

.th-loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #555;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.th-catalogue-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.c-img-same-height .c-image {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.c-img-same-height img {
    height: 100%;
    width: auto;
    max-width: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.th-pdf-fscreen .modal-dialog {
    margin-top: 5px;
    margin-bottom: 5px;
}

/*left column*/
.c-content:not(.th-lc-type):hover .c-links {
    display: flex;
}

.c-content.th-lc-type {
    display: flex;
}

.c-content.th-lc-type .c-body {
    flex: 0 0 25%;
}

.c-content.th-lc-type .c-links .download_cat {
    margin-top: 0;
}

.c-content.th-lc-type .c-title {
    padding-top: 0;
    padding-left: 0;
}

.c-content.th-lc-type .th-content-type {
    flex: 0 0 75%;
    padding-left: 10px;
}

.c-content.th-lc-type {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.th-lc-type .c-links .btn {
    padding: 4px 6px;
    margin-bottom: 5px;
}

.catalogues > .row .col-xs-12.col-12:not(:last-child) .c-content.th-lc-type {
    border-bottom: 1px solid #d6d4d4;
}
/*end left column*/

/*==========  Mobile First Method  ==========*/

/* Phones Portrait */
@media only screen and (min-width : 320px) and (max-width : 479px) {
    .c-dis-img-mob.c-img-same-height .c-image {
        overflow: auto;
        display: block;
    }

    .c-dis-img-mob.c-img-same-height .c-image {
        height: auto;
    }

    .c-dis-img-mob.c-img-same-height img {
        height: auto;
        width: 100%;
        max-width: 100%;
    }
}

/* Phones Landscape */
@media only screen and (min-width : 480px) and (max-width : 767px) {

}

/* Phones Portrait and Landscape */
@media only screen and (min-width : 320px) and (max-width : 767px) {
    #catalogue_modal .modal-dialog {
        margin-left: 5px;
        margin-right: 5px;
    }
    .b-prev {
        margin-right: 10px;
    }
    .header-content {
        display: none;
    }
    #catalogue_modal button.close {
        top: 5px;
    }
}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) and (max-width : 991px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) and (max-width : 1199px) {

}

/* Small and Medium Devices */
@media only screen and (min-width : 768px) and (max-width : 1199px) {
    .th-pdf-fscreen {
        max-height: 100vh;
        overflow-y: hidden;
    }

    .th-pdf-fscreen .modal-body {
        height: calc(100vh - 135px);
        overflow-y: auto;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
    .th-pdf-fscreen {
        max-height: 100vh;
        overflow-y: hidden;
    }

    .th-pdf-fscreen .modal-body {
        height: calc(100vh - 135px);
        overflow-y: auto;
    }
}
