/* Force visibility even if theme/container is weird */
#eddietorials-root{
  display:block !important;
  min-height:240px;
  position:relative;
  z-index:99999;
}

#eddietorials-root .eddbg-wrap{
  margin: 24px auto;
  max-width: 1100px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#eddietorials-root .eddbg-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

#eddietorials-root .eddbg-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius: 999px;
  background:#2171b5;
  color:#fff;
  font-weight:800;
}

#eddietorials-root .eddbg-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 6px;
}

#eddietorials-root .eddbg-btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  padding:10px 12px;
  border-radius: 999px;
  font-weight:700;
  cursor:pointer;
}

#eddietorials-root .eddbg-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

@media (max-width: 920px){
  #eddietorials-root .eddbg-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  #eddietorials-root .eddbg-grid{ grid-template-columns: 1fr; }
}

#eddietorials-root .eddbg-card{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.45);
}

#eddietorials-root .eddbg-media{
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(33,113,181,.35), rgba(255,255,255,.06));
}

#eddietorials-root .eddbg-cardbody{
  padding: 12px 12px 14px;
}

#eddietorials-root .eddbg-h{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

#eddietorials-root .eddbg-p{
  margin: 0;
  opacity: .85;
  line-height: 1.35;
}

/* ── Video embed ─────────────────────────────────────────── */
.card .media--video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.card .media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Like button ─────────────────────────────────────────── */
.like-btn {
  transition: color .15s, transform .15s;
}

.like-btn.liked {
  color: #ff4d6d;
  transform: scale(1.1);
}

.like-btn:disabled {
  opacity: .5;
  cursor: default;
}

/* ── Image protection ────────────────────────────────────── */

/* Block pointer events directly on images so right-click never
   reaches the image element itself */
.eddietorials-app .media img {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none; /* iOS long-press save */
}

/* Transparent overlay sits above image, below watermark.
   Intercepts all mouse/touch events on the photo area */
.eddietorials-app .media {
  position: relative;
  overflow: hidden;
}

.eddietorials-app .media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: default;
}

/* ── Watermark ───────────────────────────────────────────── */

/* Bottom-right corner mark */
.eddietorials-app .media::before {
  content: "© EddieRod.com";
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: .4px;
  text-shadow:
    0 1px 4px rgba(0,0,0,.7),
    0 0 12px rgba(0,0,0,.4);
  pointer-events: none;
  user-select: none;
}

/* Diagonal repeating watermark across the whole image */
.eddietorials-app .media .watermark-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  overflow: hidden;
}

.eddietorials-app .media .watermark-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.12);
  font-size: 11px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: .5px;
  transform: rotate(-30deg);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* Blur when window loses focus — deters screen recording */
.eddietorials-app.eddie-unfocused .media img {
  filter: blur(14px);
  transition: filter .25s ease;
}
.eddietorials-app .media img {
  transition: filter .25s ease;
}

/* Disable print */
@media print {
  .eddietorials-app { display: none !important; }
}