/*
Theme Name: SSCM
Description: Faithful copy of the Joomla Protostar look of the Serbian Society for Computational Mechanics (SSCM) and its Journal (JSSCM, section /jsscm/). The layout CSS is the original Protostar template.css (css/template.css); this file only adds what WordPress markup needs.
Version: 1.0.2
Requires PHP: 8.3
License: GNU General Public License v2 or later (Protostar © Open Source Matters, GPL v2+)
Text Domain: sscm
*/

/* WordPress content inside the Protostar layout */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
img { max-width: 100%; height: auto; }
.wp-block-html table img, .item-page table img, .blog table img { max-width: none; }

/* Mobile navigation without Bootstrap JS (js/theme.js toggles .in) */
@media (max-width: 979px) {
	.nav-collapse { overflow: hidden; height: 0; }
	.nav-collapse.in { height: auto; }
}

/* Journal papers: the old article template (inline styles of every paper, now classes) */
.paper-box { background-color: #eeeeee; }
.paper-title { font-family: Tahoma, Arial; font-size: 14px; line-height: normal; text-transform: uppercase; color: #b84646; background-color: #eeeeee; }
.paper-title a { color: #b84646; }
.paper-authors { font-family: Tahoma, Arial; font-size: 11px; background-color: #eeeeee; line-height: normal; padding: 5px; }
.paper-box .dm_description { background-color: #eeeeee; }
.paper-abstract { text-align: justify; background-color: #eeeeee; }
.paper-abstract p { margin: 0 0 9px; }
.paper-download { background-color: #eeeeee; padding: 5px; }
.blog .paper-box .readmore { margin: 0; padding: 0 5px 5px; }

/* Workshop gallery and videos */
.gallery { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 20px 0; }
.gallery .gallery-item { margin: 0; }
.gallery .gallery-item img { width: 280px; height: 200px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); border: 0 !important; }
.gallery br { display: none; }
/* Only the first 9 photos until "Prikaži sve slike" (js/theme.js); hidden in CSS so their lazy images are not downloaded. */
.gallery:not(.sscm-all) .gallery-item:nth-of-type(n+10) { display: none; }
.sscm-show-all { display: block; margin: 20px auto; background: #0056b3; color: #fff; border: none; padding: 12px 28px; font-size: 16px; border-radius: 6px; cursor: pointer; }
.paper-abstract p:last-child { margin-bottom: 0; }
.sscm-video { text-align: center; margin: 20px 0; }
.sscm-video iframe { max-width: 100%; }
.sscm-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.sscm-lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 8px 40px rgba(0, 0, 0, .6); }
.sscm-lightbox button { position: fixed; background: rgba(0, 0, 0, .35); color: #fff; border: 0; font-size: 2.6rem; padding: 6px 16px; cursor: pointer; border-radius: 4px; }
.sscm-lightbox .lb-close { top: 14px; right: 20px; }
.sscm-lightbox .lb-prev { left: 14px; top: 50%; }
.sscm-lightbox .lb-next { right: 14px; top: 50%; }

/* Contact Form 7 inside Protostar */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { width: 100%; max-width: 420px; box-sizing: border-box; height: auto; }
.wpcf7 textarea { height: 140px; }
.wpcf7-submit { padding: 6px 14px; font-size: 13px; color: #333; background: #f3f3f3 linear-gradient(#fff, #e6e6e6); border: 1px solid #bbb; border-bottom-color: #a2a2a2; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); cursor: pointer; }

/* Search */
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.search-results .result-title { margin-top: 12px; }
