/* My Knotty Wood — local enhancements for the Veda static mirror.
   Flush the nav after the announcement banner was removed, plus
   photo hover, 3D frames, and lightbox styles (loaded on every page). */

/* ---------- 1. Nav flush to the top ---------- */
/* Google Sites left .DdtOdf / .WZv7J offsets for the old ~64px (desktop)
   / ~96px (mobile) announcement banner. The banner is gone; pull the
   fixed header and first-section padding back up. */
#docs-banner-container,
#docs-banners {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.DdtOdf .VLoccc,
.DdtOdf .DXsoRd,
.DdtOdf .RBEWZc,
.DdtOdf.b2Iqye .VLoccc,
.DdtOdf.b2Iqye .DXsoRd,
.DdtOdf.b2Iqye .RBEWZc,
.DdtOdf.WZv7J .VLoccc,
.DdtOdf.WZv7J .DXsoRd,
.DdtOdf.WZv7J .RBEWZc,
.DdtOdf.WZv7J.b2Iqye .VLoccc,
.DdtOdf.WZv7J.b2Iqye .DXsoRd,
.DdtOdf.WZv7J.b2Iqye .RBEWZc {
  top: 0 !important;
}

/* Sidebar / preview drawers were pushed down by the same banner offset */
.DdtOdf .JzO0Vc,
.DdtOdf .RCETm,
.DdtOdf.WZv7J .JzO0Vc,
.DdtOdf.WZv7J .RCETm {
  margin-top: 0 !important;
}

.DdtOdf .ED26l,
.DdtOdf .RCETm .ED26l,
.DdtOdf.WZv7J .ED26l,
.DdtOdf.WZv7J .RCETm .ED26l {
  top: 56px !important;
}

/* First section used 112px top padding (banner + bar). Keep just the 56px bar. */
.LB7kq {
  padding-top: 56px !important;
}

.DdtOdf .LB7kq.KEFykf,
.DdtOdf.WZv7J .LB7kq.KEFykf {
  height: calc(100vh - 56px);
}

/* Invisible scroll-offset spacers (not present on every page) */
.G9Qloe.DdtOdf .tyJCtd .aP9Z7e,
.G9Qloe.DdtOdf.WZv7J .tyJCtd .aP9Z7e,
.b2Iqye.DdtOdf .tyJCtd .aP9Z7e {
  margin-top: -56px !important;
  padding-bottom: 56px !important;
}

/* Album page: hide leftover announcement topbar if present, keep site-header flush */
.topbar { display: none !important; }
.site-header { top: 0 !important; }

/* ---------- 2. Photo frames: rounded corners, soft shadow, hover lift+wiggle ---------- */
.mkw-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 10px 22px rgba(20, 14, 8, 0.32),
    0 3px 6px rgba(20, 14, 8, 0.18);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
img.mkw-frame {
  display: block;
}
.mkw-frame:hover,
.mkw-frame:focus-visible {
  z-index: 6;
  box-shadow:
    0 18px 34px rgba(20, 14, 8, 0.42),
    0 6px 12px rgba(20, 14, 8, 0.22);
  transform: translateY(-6px);
  animation: mkw-wiggle 0.5s ease-in-out;
}
@keyframes mkw-wiggle {
  0%   { transform: translateY(-6px) rotate(0deg); }
  25%  { transform: translateY(-6px) rotate(-1.4deg); }
  55%  { transform: translateY(-6px) rotate(1.4deg); }
  80%  { transform: translateY(-6px) rotate(-0.6deg); }
  100% { transform: translateY(-6px) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mkw-frame:hover,
  .mkw-frame:focus-visible {
    animation: none;
  }
}

/* Don't let Google Sites crop boxes clip the shadow or the rounded corners' shadow */
.mkw-unclip {
  overflow: visible !important;
}

/* Album grid already zooms the img on hover; keep the frame's lift instead */
.grid a.mkw-frame:hover img,
.grid a.mkw-frame:focus img {
  transform: none;
}

/* ---------- 3. Photo popup (not a full-screen takeover) ---------- */
/* Theme from the site: maroon sections rgba(76,27,20)/#4c1b14 and
   album --bg #5c2a22, cream #fce5cd, teal #31585f, charcoal #1c1c1c. */
.mkw-lb {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 16, 12, 0.42);
  color: #fce5cd;
  font-family: Bitter, Georgia, serif;
}
.mkw-lb.mkw-open {
  display: flex;
}
.mkw-lb-win {
  position: absolute;
  width: 80vw;
  height: 80vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #3d1c16;
  border: 2px solid #e8c39a;
  box-shadow:
    0 0 0 1px #4c1b14,
    0 0 26px rgba(252, 229, 205, 0.42),
    0 0 64px rgba(92, 42, 34, 0.55),
    0 18px 44px rgba(20, 10, 8, 0.48);
  color: #fce5cd;
}
.mkw-lb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  height: 58px;
  padding: 0 8px 0 18px;
  background: #4c1b14;
  border-bottom: 1px solid rgba(232, 195, 154, 0.35);
  cursor: move;
  user-select: none;
  touch-action: none;
}
.mkw-lb-title {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  pointer-events: none;
}
.mkw-lb-cap {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mkw-lb-caption {
  font-size: 0.9rem;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkw-lb-close {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 2px solid #e8c39a;
  border-radius: 10px;
  background: #5c2a22;
  color: #fce5cd;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.mkw-lb-close:hover,
.mkw-lb-close:focus-visible {
  background: #31585f;
  border-color: #fce5cd;
  color: #fff;
}
.mkw-lb-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #1c1210;
}
.mkw-lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  background: #1a1210;
}
.mkw-lb-stage.mkw-zoomed {
  cursor: grab;
}
.mkw-lb-stage.mkw-panning {
  cursor: grabbing;
}
.mkw-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
}
.mkw-lb-prev,
.mkw-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(232, 195, 154, 0.7);
  border-radius: 10px;
  background: rgba(76, 27, 20, 0.82);
  color: #fce5cd;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.mkw-lb-prev:hover,
.mkw-lb-next:hover,
.mkw-lb-prev:focus-visible,
.mkw-lb-next:focus-visible {
  background: #31585f;
  color: #fff;
}
.mkw-lb-prev { left: 10px; }
.mkw-lb-next { right: 10px; }
@media (max-width: 640px) {
  .mkw-lb-win {
    width: 94vw;
    height: 85vh;
    max-width: none;
    border-radius: 12px;
  }
  .mkw-lb-head { height: 54px; padding-left: 12px; }
  .mkw-lb-close { width: 48px; height: 48px; font-size: 2.2rem; }
  .mkw-lb-prev,
  .mkw-lb-next { width: 42px; height: 50px; font-size: 1.8rem; }
  .mkw-lb-caption { display: none; }
}
