/**
 * Image Protection Styles
 * Prevents users from downloading, saving, or copying images
 */

/* Disable image selection and dragging */
.protected-image,
.gallery-item img,
#modalImage {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;

    -webkit-touch-callout: none;
}

/* Prevent context menu on images */
.protected-image,
.gallery-item,
.modal-body {
    -webkit-touch-callout: none;
}

/* Ensure overlay positioning works */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Add a subtle overlay to indicate protection (kept) */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

/* Center watermark on thumbnails (SAFE: does not touch Bootstrap .ratio::before) */
.gallery-item::before {
    content: "© SurajChapagain"; /* CHANGE TEXT */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 3;
}

/* Optional: watermark reminder on hover (kept, but moved to not conflict) */
.gallery-item:hover .hover-badge {
    opacity: 1;
}

/* Disable print for images */
@media print {
    .protected-image,
    .gallery-item img,
    #modalImage {
        display: none !important;
    }

    .gallery-item::after {
        content: 'Image protected - cannot be printed';
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        color: #666;
        font-size: 14px;
        z-index: 5;
    }
}

/* Modal watermark (apply to modal body area safely) */
.modal-body {
    position: relative;
}

.modal-body::before {
    content: "© SurajChapagain"; /* CHANGE TEXT */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.22);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 5;
}
