/* Image Protection CSS */
.project-image,
.mry-card-cover-frame img,
.mry-portfolio img,
.mry-gallery img,
.mry-project-gallery img {
    /* Disable user selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Disable drag and drop */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    /* Prevent context menu */
    -webkit-context-menu: none;
    -moz-context-menu: none;
    -ms-context-menu: none;
    context-menu: none;
    
    /* Disable pointer events for certain actions */
    pointer-events: none;
}

/* Allow pointer events for links but not for images */
.mry-card-cover-frame,
.mry-portfolio .mry-masonry-grid-item,
.mry-gallery-item {
    pointer-events: auto;
}

/* Disable text selection on project content */
.mry-portfolio,
.mry-project-content,
.mry-gallery {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Override for specific interactive elements */
.mry-hover-links,
.mry-magnetic-link,
.mry-anima-link {
    pointer-events: auto;
}

/* Disable image saving through CSS */
.project-image::before,
.mry-card-cover-frame img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Additional protection for project images */
.mry-masonry-grid-item img {
    position: relative;
    z-index: 0;
}

/* Disable save image as... option */
img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fancybox specific protection */
.fancybox-content {
    pointer-events: none;
}

.fancybox-content img {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Allow interaction with Fancybox controls */
.fancybox-toolbar,
.fancybox-navigation,
.fancybox-button {
    pointer-events: auto !important;
}

/* Disable context menu on Fancybox */
.fancybox-container {
    -webkit-context-menu: none;
    -moz-context-menu: none;
    -ms-context-menu: none;
    context-menu: none;
}

/* Prevent image dragging in Fancybox */
.fancybox-slide img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
} 