/* Tweaks needed only because the original's jQuery behaviours are re-implemented in React. */
html, body { height: auto; }
body.pp-home { overflow: hidden; height: 100%; }
.pagepiling { position: relative; width: 100%; height: 100vh !important; overflow: hidden; }
.pp-section { height: 100vh; }
#bgvideo { height: 100%; }
.yt-bg { position: absolute; inset: 0; overflow: hidden; background: #000; }
.yt-bg .poster { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.yt-bg .poster.on { opacity: 1; }
.yt-bg iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%); border: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
.yt-bg iframe.ready { opacity: 1; }
.yt-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
#bgvideo .scrollable-content, #bgvideo .news-box { position: relative; z-index: 2; }
#bgvideo .news-box { position: absolute; }
.controls-youtube-bg { z-index: 5; }
.menu-lang a, .menu-list a, .footer a, .navbar a { cursor: pointer; }
.hidden { display: none; }
.news-box { transition: opacity .3s; }
.tabs { display: none; }
.tabs.show { display: block; }
.options { display: none; }
.options.show { display: block; }
.text-display-1 table { width: 100%; }
.boot { min-height: 100vh; background: #fff; }

/* isotope replacement: the original lays .grid-item out with JS (3 equal columns) */
.grid-items { display: grid !important; grid-template-columns: repeat(3, 1fr); height: auto !important; }
.grid-items .grid-item { position: static !important; width: auto !important; left: auto !important; top: auto !important; }
.container .grid-items { margin: 0 -15px; }
@media (max-width: 991px) { .grid-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-items { grid-template-columns: 1fr; } }
.news-item > img { width: 100%; aspect-ratio: 650 / 550; object-fit: cover; }
.project-item > img { width: 100%; aspect-ratio: 426 / 374; object-fit: cover; }
