/* supplement.css — Wayback Fixer overrides for colegioalhucema.es */
html { scroll-behavior: auto; }

/* Article typography baseline (scope: .article-content / entry content) */
.romli-article .entry-content, .romli-article .article-body { font-size: 17px; line-height: 1.7; color: #222; }
.romli-article h2 { font-size: 26px; margin: 1.5em 0 .5em; line-height:1.25; font-weight:700; text-transform:none; letter-spacing:normal; }
.romli-article h3 { font-size: 21px; margin: 1.3em 0 .45em; line-height:1.3; font-weight:700; text-transform:none; letter-spacing:normal; }
.romli-article p { margin: 0 0 1.05em; }
.romli-article ul, .romli-article ol { margin: 0 0 1.05em; padding-left: 1.4em; }
.romli-article img { max-width: 100%; height: auto; }

/* romlidata (link block) safety */
.romlidata { display:block; visibility:visible; }

/* Facilities / photo gallery grid (thumbnails re-injected from lightbox hrefs) */
ul.photo_gallery { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
ul.photo_gallery li { margin:0; overflow:hidden; border-radius:4px; box-shadow:0 1px 6px rgba(70,14,143,.12); }
ul.photo_gallery li a { display:block; }
ul.photo_gallery li img { transition:transform .3s; height:170px; object-fit:cover; }
ul.photo_gallery li a:hover img { transform:scale(1.05); }

/* Hide dead per-article social sharing block (fb-like/g+/tweet/pinit — non-functional) */
#gk-social-api { display:none !important; }

/* Dropdown submenus are hidden by display:none (JS toggles display:block on hover).
   The theme also leaves opacity:0 on them, which trips the QA hidden-text detector
   as a false positive. Force opacity:1 — display:none still hides them, so no visual change. */
#main-menu .sub-menu, #footer-menu .sub-menu, ul.menu .sub-menu { opacity: 1 !important; }

/* All-in-One Event Calendar: JS/AJAX can't run off-archive, so the static calendar
   grid (with real events) is stuck at visibility:hidden. Reveal it (keep dropdown
   menus / popups hidden via their own display:none). */
.ai1ec-calendar-toolbar, #ai1ec-calendar-view-container, #ai1ec-calendar-view,
.ai1ec-calendar-view, .ai1ec-calendar-view .clearfix, .ai1ec-day,
.ai1ec-title-buttons, .ai1ec-pagination { visibility: visible !important; opacity: 1 !important; }
/* ai1ec never-resolving AJAX loader spinner */
.ai1ec-loading { display: none !important; }
