.ctmpg-container {
max-width: 1190px;
padding: 1rem;
box-sizing: border-box;
margin: auto;
}
.ctmpg-subprocedure {
display: block;
border-bottom: 1px solid #ddd;
padding: 1rem;
}
.ctmpg-procedure {
margin-bottom: 1rem;
}
.ctmpg-procedure:nth-child(odd) {
clear: left;
}
.ctmpg-procedure-header {
text-align: center;
}
.ctmpg-procedure-links {
display: flex;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
}
.ctmpg-pagination {
display: flex;
justify-content: space-between;
margin: 1.5rem 0 2rem;
}
.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;
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-thumbnails .ctmpg-procedure {
margin-bottom: 0;
padding: 1rem 0;
}
.ctmpg-img-container {
position: relative;
}
.ctmpg-view-button {
background: #000 url(//palmdesertplasticsurgery.com/wp-content/plugins/ctm-photogallery-2.0/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;
}
@media (min-width: 768px) { 
.ctmpg-procedures {
overflow: hidden;
}
.ctmpg-procedure {
width: 50%;
float: left;
box-sizing: border-box;
padding: 2rem;
margin-bottom: 2rem;
}
.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;
} 
.ctmpg-thumbnails .ctmpg-procedure {
padding: 1rem;
}
}
@media (max-width: 767px) { 
.ctmpg-modal-container {
display: none !important;
}
}
@media (max-width: 1000px) { 
.ctmpg-modal {
left: 5%;
max-width: 90%;
margin-left: 0;
}
}