.beforeAfter { clear:right; padding:15px; margin-left: 25px; margin-bottom: 25px; border-radius: 4px; }
@media (max-width : 767px) {
    .beforeAfter { padding: 5px; }
}
.beforeAfter div {float:left;margin:5px;text-align:center;}
.beforeAfter div a {display:block;border:none;color:#428bca;text-decoration:none;}
.beforeAfter div strong {font-weight:100;font-size:0.8em;display:block;}
.beforeAfter img { border: 1px solid #ddd; margin-bottom: 10px; }
.beforeAfter div a:hover img { border-color: #428bca; }
.beforeAfter div:last-child { display: none; }

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .mceTmpl { display: flex; }
    .beforeAfter { margin-left: 0 !important; box-sizing: border-box; width: 100%; text-align: center; margin-bottom: 10px; }
    .beforeAfter div { display: inline-block; float: none; }
}

/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0; display: none; text-indent: -999999px;}
#colorbox.open #cboxTitle { display: none; }
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/*
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000;}
#colorbox{outline:0;}
#cboxContent{margin-top:40px; overflow: visible; background: #fff;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{ }
#cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
#cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc; display: none; text-indent: -999999px;}
#colorbox.open #cboxCurrent { display: none; }
#cboxLoadingGraphic{background:url(/images/loading.gif) no-repeat center center;}

/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}

#cboxPrevious, #cboxNext{
    position:absolute;
    top: 0;
    width: 50%;
    height: 100%;
    color: #aaa;
    outline: none;
}
#cboxPrevious{
    opacity: 0;
    transition: opacity 0.3s;
    -webkit-transition: opacity 0.3s;
    left: 0;
}
#cboxPrevious:before{
    font-size: 50px;
    font-family: 'Font Awesome 6 Free';
    content: "\f053";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
#cboxPrevious:hover{opacity: 1;}
#cboxNext{
    opacity: 0;
    transition: opacity 0.3s;
    -webkit-transition: opacity 0.3s;
    right: 0;
}
#cboxNext:after {
    font-size: 50px;
    font-family: 'Font Awesome 6 Free';
    content: "\f054";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
#cboxNext:hover {opacity: 1}
#cboxClose{
    position:absolute;
    top: 10px;
    right: 14px;
    display:block;
    width: 18px;
    height: 25px;
    color: #aaa;
    outline: 0;
}
#colorbox.open #cboxClose:before{
    font-family: 'Font Awesome 6 Free';
    font-size: 20px;
    content: "\f00d";
}
#cboxClose:hover{
    color: #555;
}

/*
  The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
  when an alpha filter (opacity change) is set on the element or ancestor element.  This style is not applied to or needed in IE9.
  See: http://jacklmoore.com/notes/ie-transparency-problems/
*/
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
}

@media (max-width: 1540px) {
    #colorbox { margin-top: 20px; }
}

/* ------------------------------ *
 * Before After
 * ------------------------------ */
.page-service-cat .beforeAfter {
    border: none;
    padding: 20px;
    border-radius: 10px;
    margin-left: 44px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    background-color: #DEDEDE;
    cursor: pointer;
    transition: background-color .4s;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
    font-family: 'tk-museo-slab-n3', serif;
}

.page-service-cat .beforeAfter > div {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

.page-service-cat .beforeAfter a {
    text-decoration: none !important;
}

.page-service-cat .beforeAfter a strong {
    text-decoration: underline;
    font-weight: bold;
    color: black;
    font-size: 16px;
}

.page-service-cat .beforeAfter:hover a strong
{
    color: white;
}

.page-service-cat .beforeAfter img {
    border: 0;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    border-radius: 7px;
}
.page-service-cat .beforeAfter div a:hover img {
    border: 0;
}
/* ESL */
.page-service-cat.page-service-esl .beforeAfter:hover { background-color: #FF7900; }
/* Academic */
.page-service-cat.page-service-academic .beforeAfter:hover { background-color: #26A69A; }
/* Business */
.page-service-cat.page-service-business .beforeAfter:hover { background-color: #EF5350; }
/* Author */
.page-service-cat.page-service-author .beforeAfter:hover { background-color: #544BAA; }
/* Personal */
.page-service-cat.page-service-personal .beforeAfter:hover { background-color: #3384CD; }
/* Student */
.page-service-cat.page-service-student .beforeAfter:hover { background-color: #A1005B; }

@media screen and ( min-width: 768px ) {
    .page-service-cat .beforeAfter {
        width: 50%;
    }
}

@media (max-width : 1199px) {
    .page-service-cat .beforeAfter { padding: 20px; margin-left: 30px; }
    .page-service-cat .beforeAfter img { max-height: 250px;}
    .page-service-cat .beforeAfter div strong { font-size:14px; }
}
@media (max-width : 991px) {
    .page-service-cat .beforeAfter { padding: 12px; margin-left: 25px; gap: 12px; }
    .page-service-cat .beforeAfter img { max-height: 200px; margin-bottom: 10px; }
}
@media (min-width: 480px) and (max-width : 600px) {
    .page-service-cat .beforeAfter { margin-left: auto; margin-right: auto; max-width: 380px; float: none; }
}

/* ------------------------------ *
 * Free Sample Page
 * ------------------------------ */
.page-service-cat.page-service-free .beforeAfter {
    border: 1px solid #0075C4;
    background-color: #F6F6F6;
    border-radius: 16px;
}
.page-service-cat.page-service-free .beforeAfter img,
.page-service-cat.page-service-free .beforeAfter div a:hover img {
    border-radius: 8px;
    border: 1px solid #777;
}

/* ------------------------------ *
 * Before After Module
 * ------------------------------ */
.page-service-cat .lightbox .lb-container .lb-nav { z-index: 1000; }