/* Сивас – what the Joomla template did not have to style: WordPress content, galleries, players, the new boxes. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.sv-skip { position: absolute; left: -999em; top: 0; z-index: 1000; padding: 8px 12px; background: #fff; color: #193D58; }
.sv-skip:focus { left: 10px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #4799DC; outline-offset: 2px; }

/* header: the logo was a link without size; the menu button only exists on small screens */
#logo-w .sv-home { display: block; }
.sv-menu-toggle { display: none; }
#nav ul li.active > a, #nav ul li.current > a { color: #000; font-weight: bold; }

/* columns (the template floated them, the order in the HTML is right, left, content) */
#rightbar-w .sv-gambit { text-align: center; margin-bottom: 5px; }
#rightbar-w .sv-gambit img { display: inline-block; vertical-align: top; }
.sv-recommends { text-align: center; margin: 10px 15px; padding: 5px; border: 1px solid #aaa; }
.sv-login-box { font-size: 11px; line-height: 1.5em; }
#rightbar .module-body p.sv-login-box { margin-bottom: 6px; }
#rightbar .button, .sv-login-button { display: inline-block; text-decoration: none; color: #fff !important; line-height: 1.6em; }
#rightbar .button:hover, .sv-login-button:hover { color: #0c293f !important; }
.sv-social { text-align: center; margin-top: 20px; }
.sv-social.sv-ncg { margin-bottom: 10px; }
.sv-twitter { text-align: center; margin-top: 20px; }
#leftbar nav, #rightbar nav { display: block; }
#leftbar .search { white-space: nowrap; }
#leftbar .search .inputbox { width: 110px; padding: 2px; font: inherit; font-size: 12px; }
#leftbar .module ul.menu li ul { display: none; margin: 0 0 4px; }
#leftbar .module ul.menu li.active > ul { display: block; }

/* content */
#comp_80 img { max-width: 100%; height: auto; }
#comp_80 .alignleft { float: left; margin: 0 10px 5px 0; }
#comp_80 .alignright { float: right; margin: 0 0 5px 10px; }
#comp_80 .aligncenter { display: block; margin-left: auto; margin-right: auto; }
#page { position: relative; }
#page::after { content: ""; display: table; clear: both; }
h1.contentheading { font-size: 25px; line-height: 30px; color: #333365; padding-right: 50px; }
.buttonheading { margin: 0; }
.buttonheading a { display: inline-block; }
.componentheading { color: #193D58; }
.sv-lock { font-size: 10px; color: #666; white-space: nowrap; }
/* links in the texts: the template's #4799DC has 3:1 contrast on white; this blue (5:1) is barely darker */
#comp_80 a { color: #2272b8; }
#comp_80 a.contentpagetitle, #comp_80 table.category a, #comp_80 .blog h5 a { color: #323265; }
table.category { width: 100%; }
table.category a { font-size: 14px; text-decoration: none; color: #353164; }
table.category a:hover { text-decoration: underline; }
.filter .inputbox { padding: 2px 4px; font: inherit; }
.small { font-size: 11px; color: #666; }
h2.sv-subcats, h2.sv-members-group { font-size: 16px; margin: 18px 0 6px; }
.sv-subcat-list { margin: 0 0 10px 15px; }
.pagination .page-numbers { margin-right: 5px; padding: 2px 5px; background: url(https://sivass.net/wp-content/themes/sivass/images/button.png) 0 0 repeat-x; border: 1px solid #295475; color: #fff; text-decoration: none; }
.pagination .page-numbers.current { background: #d5e5f2; color: #0c293f; }
.nav-links h2 { display: none; }

/* home page: the cover slideshow (as the template's #gallery, without jQuery) */
#gallery.sv-slides { height: auto; aspect-ratio: 560 / 427; overflow: hidden; }
#gallery.sv-slides a { left: 0; top: 0; width: 100%; opacity: 0; transition: opacity 1s; }
#gallery.sv-slides a.show { opacity: 1; z-index: 2; }
#gallery.sv-slides img { display: block; width: 100%; height: auto; }

/* galleries (Phoca albums, JW "{gallery}") */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gallery .gallery-item { margin: 0; width: calc((100% - 24px) / 4); text-align: center; }
.gallery.gallery-columns-3 .gallery-item { width: calc((100% - 16px) / 3); }
.gallery .gallery-icon a { display: block; background: #f2f2f2; border: 1px solid #ddd; padding: 3px; }
.gallery .gallery-icon img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery .gallery-caption { font-size: 10px; line-height: 1.3em; margin-top: 2px; }
.sv-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.sv-album { display: flex; align-items: center; gap: 8px; }
.sv-album img { width: 68px; height: 68px; object-fit: cover; border: 1px solid #ccc; }

/* audio, video, YouTube */
.wp-audio-shortcode { display: block; width: 100%; max-width: 560px; margin: 6px 0 12px; }
.wp-video, .wp-video-shortcode { width: 100% !important; max-width: 560px; height: auto; }
video.wp-video-shortcode { display: block; background: #000; aspect-ratio: 16 / 10; }
.sv-yt { max-width: 560px; margin: 8px 0 12px; }
.sv-yt a { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.sv-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.sv-yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(23, 35, 34, .8); }
.sv-yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.sv-yt a:hover .sv-yt-play, .sv-yt a:focus .sv-yt-play { background: #c00; }
.sv-yt iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.sv-gone { color: #777; font-style: italic; }

/* search page */
.sv-search-page input[type=search] { padding: 3px; font: inherit; width: 70%; max-width: 360px; }
#sv-results { margin-top: 14px; }
#sv-results ol { margin: 0 0 0 20px; }
#sv-results li { margin-bottom: 10px; }
#sv-results li a { font-size: 14px; }
#sv-results p { margin: 2px 0 0; font-size: 12px; line-height: 1.5em; color: #555; }
#sv-results mark { background: #fff3a3; color: inherit; }

/* lightbox (images in content and galleries) */
.sv-lb { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.sv-lb[hidden] { display: none; }
.sv-lb figure { margin: 0; max-width: 94vw; max-height: 92vh; text-align: center; }
.sv-lb img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 0 20px #000; }
.sv-lb figcaption { color: #eee; font-size: 13px; margin-top: 8px; }
.sv-lb button { position: absolute; background: none; border: 0; color: #fff; font: 36px/1 Georgia, serif; cursor: pointer; padding: 12px 16px; }
.sv-lb .sv-lb-close { top: 6px; right: 8px; }
.sv-lb .sv-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.sv-lb .sv-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* the Joomla cookie notice (was cookieconsent from cdnjs), same text and colours */
.sv-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; align-items: center; gap: 20px; padding: 14px 24px; background: #004e9e; color: #fff; font: 15px/1.4 Helvetica, Arial, sans-serif; }
.sv-cookie[hidden] { display: none; }
.sv-cookie p { margin: 0; flex: 1; }
.sv-cookie button { background: #fff; color: #004e9e; border: 0; padding: 9px 30px; font-weight: bold; font-size: 15px; cursor: pointer; text-decoration: underline; }

@media print {
	body { background: #fff; }
	#rightbar-w, #leftbar-w, #navr, .sv-menu-toggle, .buttonheading, #bottom, .sv-cookie, #botr { display: none !important; }
	#main, #wrapper, #main-content, #comp_80 { width: auto !important; margin: 0 !important; float: none !important; }
}
h2.sv-consult-title { font-size: 16px; margin: 20px 0 6px; }
a.sv-consult-button, a.sv-login-button { display: inline-block; text-decoration: none; color: #fff; padding: 4px 12px; }
/* left menu sub-items (years): the template's #878eab on #f2f2f2 has 2.9:1 contrast; same hue, 5:1 */
#leftbar .module ul.menu li ul li a, #leftbar .module ul.menu li.active ul li a { color: #5d6488; }
#leftbar .module ul.menu li.active ul li.active > a { color: #08263e; }
#sv-results { min-height: 70vh; }   /* results are filled in by the browser: no layout jump */
