/* Gallery anti-copy / anti-save deterrents (not full DRM). */

.gal-protect,
.gallery-protect-media {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.gal-protect-frame,
.gal-photo,
.gal-card-cover,
.gallery-protect-frame {
  position: relative;
  overflow: hidden;
}

.gal-protect-frame img,
.gal-photo img,
.gal-card-cover img,
.gal-verify-preview img,
.gallery-protect-frame img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.gal-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 46px,
      rgba(255, 255, 255, 0.045) 46px,
      rgba(255, 255, 255, 0.045) 48px
    );
  pointer-events: auto;
  cursor: default;
}

.gal-shield::after {
  content: attr(data-mark);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem;
  font-size: clamp(0.65rem, 2.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.gal-photo-actions {
  z-index: 3;
}

.gal-photo-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

body.gal-screenshot-flash::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  pointer-events: none;
}

@media print {
  .gal-protect img,
  .gal-photo-visual,
  .gal-card-cover,
  .gallery-protect-frame,
  .gal-protect-frame {
    display: none !important;
  }

  .gal-protect::after {
    content: 'Gallery photos are not available for printing. Use the verified Download option.';
    display: block;
    padding: 2rem;
    text-align: center;
  }
}
