/* Guide sidebar: keep "In this guide" pinned on long guides.
   aside.rail is already position:sticky, but on guides with many
   sections it grows taller than the viewport and has nothing to
   stick to. Capping its height fixes that, but the rail is a flex
   column, so its cards must also be told not to shrink - without
   flex:0 0 auto the CTA card collapses to 52px and its text is cut.
   Added 1 Aug 2026 - delete this block to revert. */
@media (min-width: 1000px){
  aside.rail{
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  aside.rail > *{ flex: 0 0 auto; }
  aside.rail::-webkit-scrollbar{ width: 6px; }
  aside.rail::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.18); border-radius: 3px; }
}

/* === InAlb image-failure guards. Added 31 Aug 2026 - delete this block to revert. ===
   1) Kills the browser's 3000x1500 fallback box on lazy images with sizes="auto",
      which made failed images render 1500px tall.
   2) Related-tour cards: the container owns the height (4/3), the image fills it.
      Neutral background doubles as a loading placeholder.
   3) Catalogue cards: placeholder background behind slideshow images. */
img[sizes^="auto" i] {
  contain: unset !important;
  contain-intrinsic-size: unset !important;
}
.inalb-dt-related-card .card-header,
.inalb-mdt-related-card .card-header {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf0ec;
}
.inalb-dt-related-card .card-header a,
.inalb-mdt-related-card .card-header a {
  display: block;
  width: 100%;
  height: 100%;
}
.inalb-dt-related-card .card-header img,
.inalb-mdt-related-card .card-header img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.catalogue .card .media {
  background: #edf0ec;
}

/* InAlb self-hosted fonts (1 Sep 2026): same-origin copies of the theme Google fonts so AI embedded browsers, which block *.wp.com, render real typography. Purely additive; delete this block to revert. */
@font-face{font-family:'Caveat';font-style:normal;font-weight:600;font-display:swap;src:url(https://inalb.al/wp-content/uploads/fonts/caveat-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Caveat';font-style:normal;font-weight:600;font-display:swap;src:url(https://inalb.al/wp-content/uploads/fonts/caveat-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 800;font-display:swap;src:url(https://inalb.al/wp-content/uploads/fonts/fraunces-500-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 800;font-display:swap;src:url(https://inalb.al/wp-content/uploads/fonts/fraunces-500-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
