.ctmpg-container {
    max-width: 1190px;
    padding: 2rem 1rem;
    box-sizing: border-box;
    margin: auto;
}

.ctmpg-subprocedure {
	display: block;
	border-bottom: 1px solid #ddd;
	padding: 1rem;
}

.ctmpg-procedure {
    margin: 1rem 1rem 3rem;
}

.ctmpg-case-item {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}

.ctmpg-case-item > div {
    padding: 2rem;
}


.ctmpg-case-item > div:first-child {
    border-bottom: 1px solid #ddd;
}

.ctmpg-procedure-header {
    text-align: center;
}

.ctmpg-procedure-links {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.ctmpg-case-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.ctmpg-view-button {
    background: #555;
    color: #eee;
    padding: .5rem 1rem;
    display: inline-block;
    text-transform: uppercase;
    font-size: .8rem;
}

.ctmpg-procedure-links > a,
.ctmpg-procedure-links > select {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ctmpg-procedure-links select {
    width: 100%;
    display: inline-block;
    border: 0;
    background: #555;
    padding: .5rem;
    color: #eee;
}

.ctmpg-built-img {
    text-align: center;
}

.ctmpg-built-img img {
    max-width: 100%;
}

.ctmpg-viewset-img {
    display: flex;
    align-items: center;
    text-align: center;
}

.ctmpg-viewset-img > div {
    width: 50%;
    position: relative;
}

.ctmpg-viewset-img img {
    max-width: 100%;
    min-width: 100%;
}

.ctmpg-thumbnails {
    margin-top: 1rem;
}

.ctmpg-pagination {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0 2rem;
}

.ctmpg-img-container {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.ctmpg-view-button {
    background: #000 url('../img/details.jpg') no-repeat center center;
    background-size: 25px;
    display: inline-block;
    width: 50px;
    height: 50px;
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    right: 0;
    top: 50%;
    margin-top: -25px;
    left: 50%;
    margin-left: -25px;
    border-radius: 50%;
}


.ctmpg-view-button:hover {
    opacity: 0.8;
}

.ctmpg-case-title {
    margin-bottom: .5rem !important;
    padding: 0 !important;
}

.ctmpg-case-procedure {
    font-weight: normal;
    margin-top: 0 !important;
    padding: 0 !important;
    margin-bottom: .5rem !important;
}

.ctmpg-case .ctmpg-viewset-img {
    margin-bottom: 2rem;
}

.ctmpg-case hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ctmpg-ba {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: bold;
    color: #fff;
    font-size: .9rem;
    text-transform: uppercase;
}

.ctmpg-img-details {
    display: none;
}

.ctmpg-img-header {
    margin-bottom: .25rem !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.ctmpg-overlay {
    opacity: 0.8;
    background: #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.ctmpg-modal-container {
    display: none;
}

.ctmpg-modal {
    overflow-y: scroll;
    background: #fff;
    width: 1000px;
    position: fixed;
    left: 50%;
    margin-left: -500px;
    max-height: 80vh;
    top: 75px;
    z-index: 9999999;
    box-sizing: border-box;
    padding: 1rem;
    max-width: 95%;
}

.ctmpg-modal-active {
    display: none;
}

.ctmpg-modal-close {
    position: fixed;
    top: 15px;
    width: 48px;
    cursor: pointer;
    right: 25px;
}

.ctmpg-modal-close:hover {
    opacity: 0.75;
}

.ctmpg-warning {
    text-align: center;
}

.ctmpg-warning-links {
    display: flex;
    justify-content: space-around;
}

.ctmpg-warning a {
    font-size: 125%;
    color: blue;
}

.ctmpg-warning-text {
    margin-bottom: 4rem;
}

.ctmpg-title {
    font-weight: bold;
    color: #000;
    margin-bottom: .5rem;
}

.ctmpg-metadata {
    margin-top: 1rem;
}

.ctmpg-metadata > div {
    display: flex;
    margin-top: .25rem;
}

.ctmpg-label {
    color: #777;
    width: 100px;
    margin-right: 2rem;
}

.ctmpg-value {
    font-weight: bold;
}

.ctmpg-results {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
}

@media (min-width: 992px) { 
    .ctmpg-case-item {
        box-sizing: border-box;
        margin-bottom: 2rem;
        display: flex;
        min-height: 325px;
    }

    .ctmpg-case-item > div {
        width: 50%;
    }

    .ctmpg-case-item > div:first-child {
        border-right: 1px solid #ddd;
        border-bottom: 0;
    }
}

@media (min-width: 768px) { 

    .ctmpg-procedures-list {
        overflow: hidden;
        display: flex;
        flex-wrap: wrap;
    }

    .ctmpg-procedures-list .ctmpg-procedure {
        flex-basis: 48%;
        margin-left: 1%;
        margin-right: 1%;
    }

    .ctmpg-procedure-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }


    .ctmpg-procedure-links select {
        max-width: 250px;
    }

    .ctmpg-img-details {
        display: none !important;
    }

    .ctmpg-modal-active {
        display: block !important;
    } 
}

@media (max-width: 767px) { 
    .ctmpg-modal-container {
        display: none !important;
    }

    .ctmpg-warning-links {
        display: flex;
        flex-direction: column-reverse;
    }

    .ctmpg-warning-links a {
        margin-top: 2rem;
        margin-top: 2rem;
        display: inline-block;
    }

    .ctmpg-warning-text {
        margin-bottom: 1rem;
    }
}


@media (max-width: 1000px) { 
    .ctmpg-modal {
        left: 5%;
        max-width: 90%;
        margin-left: 0;
    }
}