/**
 * Service Lightbox Styles
 * Custom styles for GLightbox in service descriptions
 */

/* Make images in service descriptions clickable with visual feedback */
.service-description img {
    cursor: zoom-in;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-description a.glightbox img {
    cursor: zoom-in;
}

.service-description a.glightbox:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Ensure figures maintain proper styling */
.service-description figure {
    margin: 1.5em 0;
}

.service-description figure img {
    display: block;
    width: 100%;
    height: auto;
}

.service-description figcaption {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 0.5em;
    text-align: center;
}

/* Lightbox link styling */
.service-description a.glightbox {
    display: inline-block;
    border: none;
    text-decoration: none;
    outline: none;
}

/* Add a subtle indicator that images are clickable */
.service-description a.glightbox::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v3m0 0v3m0-3h3m-3 0H7"/></svg>');
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.service-description a.glightbox {
    position: relative;
}

.service-description a.glightbox:hover::after {
    opacity: 1;
}

/* Custom GLightbox theme overrides for better brand integration */
.goverlay {
    background: rgba(0, 0, 0, 0.95);
}

.gslide-description {
    background: rgba(0, 0, 0, 0.8);
    padding: 1em;
}

/* Fix image cropping in lightbox - ensure full image is visible */
.gslide-image img {
    object-fit: contain;
    max-height: 100vh;
    max-width: 100vw;
    width: auto;
    height: auto;
}

/* Ensure the image container doesn't force cropping */
.gslide-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gslide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-description a.glightbox::after {
        width: 25px;
        height: 25px;
        background-size: 15px;
    }
}

