/*
Theme Name: Emily Nolan (Child Theme)
Theme URI: http://madsparrow.us/
Author: Steven Davis
Author URI: https://stevenmdavis.com
Description: Emily – minimal portfolio Theme for photography and design with friendly SEO, modern design and gallery which supports iPhone, iPad, Blackberry 6 , Android and desktop. It's easy to use and concentrates on showcasing your work to potential clients.
Tags: one-column, two-columns, right-sidebar, custom-menu, post-formats, sticky-post, translation-ready
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emilynolan
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Template: emilynolan
*/

/* Add your own modification from here
-------------------------------------------------------------- */

/* -------------------------------------------------------
   Before / After Slider
------------------------------------------------------- */

.sd-ba-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.sd-ba-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    background: #000;
}

.sd-ba-container img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* After image sits on top, clipped from the left */
.sd-ba-img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 0 0 50%);
}

/* Divider line */
.sd-ba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

/* Drag handle */
.sd-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.sd-ba-handle svg {
    width: 22px;
    height: 22px;
    color: #333;
}

/* Corner labels — overlaid on the image, one per side */
.sd-ba-label {
    position: absolute;
    bottom: 16px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    pointer-events: none;
    z-index: 12;
    line-height: 1;
}

.sd-ba-label--before { left: 14px; }
.sd-ba-label--after  { right: 14px; }

/* Mobile hint */
.sd-ba-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sd-ba-wrapper { padding: 0 12px 36px; }
    .sd-ba-handle  { width: 52px; height: 52px; }
    .sd-ba-handle svg { width: 24px; height: 24px; }
    .sd-ba-hint    { display: block; }
}

@media (max-width: 480px) {
    .sd-ba-label   { font-size: 9px; padding: 4px 8px; bottom: 10px; }
    .sd-ba-label--before { left: 10px; }
    .sd-ba-label--after  { right: 10px; }
}
