/* ********************************* */
/* Somehow article specific settings */
/* ********************************* */

/* typography increase for the 2021 memoir */
	.memoir-2021 article { max-width: 650px; }

/* ordered list - somehow specific for CSS Exclusions article */
	.figures { text-align: left; margin-left: 15%; }

/* somehow specific for Responsive Web Design in Slovenia article */
	.maxw800 { max-width: 800px; margin: 0 auto; }
	#rwd-slovenia { max-width: 100%; width: 100%; }

	/* h2.rwd_intro */
	.rwd_intro { padding-left: 1em; margin: 0.9em 0 0.5em 0; }
	.rwd_intro:after { font-weight: 400; content: " …"; }

	/* blockquote */
	.quote_rwd { display: block; margin: 0 0 2em 0; font-size: 1.6em; line-height: 1.6em; border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
	.quote_rwd mark { white-space: nowrap; }
	.citation { font-size: 0.78em; font-style: italic; display: block; padding: 0.3em 0 0.8em 1em; }

	/* definition list - miniconf speaksers */
	.miniconf-speakers {
		-webkit-column-count: 2;
		   -moz-column-count: 2;
			-ms-column-count: 2;
			 -o-column-count: 2;
				column-count: 2;
	}
	.miniconf-speakers dd { font-size: 0.85em; padding-left: 0; margin: 0 0 1em 0; }
	.miniconf-speakers dd:before { content: " — "; }

	/* figure.rwd examples */
	.rwd { clear: both; width: 100%; }
	.rwd:after { clear: both; content: "."; display: block; height: 0; visibility: hidden; }

	.rwd_pointer { margin: 0 0 1em 0; }
	.rwd_example { margin-top: 0; }
	.rwd_author { font-size: 0.8em; display: inline; color: #222; padding: 0 0 1.5em 0; }

	.rwd img { float: left; margin-bottom: 1em;
		-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
		   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
			-ms-box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
			 -o-box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
				box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
	}
	.rwd img:hover { opacity: 0.8; }

	.smartphone { margin-left: 0; margin-right: 3.125%; max-width: 5em; width: 7.6075%; }
	.tablet     { margin-right: 3.125%; max-width: 12em; width: 18.8287%; }
	.netbook    { margin-right: 3.125%; max-width: 16em; width: 25.2%; }
	.desktop    { margin-right: 0; max-width: 25em; width: 38.988%; }


/* ************************ */
/* General article settings */
/* ************************ */
.code-example {
	margin-top  : 20px;
	padding     : 1em;
	text-shadow : 0 1px #FFF;
	direction   : ltr;
	text-align  : left;
	background  : #F5F2F0;
}
.code-example code { background: none; }

code { font-size: 0.9em; background-color: rgba(255, 255, 0, 0.1); }

mark { padding: 0 0.14em; background-color: #c40f17; color: #fff; font-style: italic; font-weight: bold; }

article blockquote:not(.summary) {
	border-left: 1px solid #e0e0e0;
	padding-left: 1.25rem;
	margin: 1.25rem 0;
	font-style: italic;
}

/* Longer literary excerpts retain their distinct quote treatment. */
article blockquote.poem {
  font-style: normal;
  padding-left: 2rem;
  font-size: .9rem;
  border-left: 4px solid grey;
}

article blockquote.poem p {
  margin: 0 0 1.2rem 0;
}

/* article */
article { display: block; clear: left; max-width: 700px; width: 80%; margin: 2em auto; }
article a { overflow-wrap: anywhere; }
span.published { font-size: 0.85em; font-style: italic; }
.summary { display: block; margin: 1.2em 0; padding: 0.7em 1.5em; font-style: italic; border-top: 1px solid rgba(0, 0, 0, 0.35); border-bottom: 1px solid rgba(0, 0, 0, 0.35); }
.summary:before { content: var(--opening-quote); float: left; margin: -0.11em 0.1em 0 -0.1em; font-size: 6em; line-height: 1em; color: rgba(0, 0, 0, 0.15); }

article h1, article h2, article h3 { display: block; clear: both; }
article h1 { font-size: 2.4em;  margin-bottom: 0; padding-bottom: 0; }
article h2 { font-size: 2.1em;  margin: 2em 0 0 0; border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
article h3 { font-size: 1.68em; margin: 2em 0 0 0; border-bottom: 1px solid rgba(0, 0, 0, 0.15); }

figure { margin: 1em 0 2em 0; padding: 1.5em 0 1.5em 0; }
/* figure.change_background */
.change_background { text-align: center; background-color: rgba(0, 0, 0, 0.05); }
.change_background:hover { color: #fff; background-color: rgba(196, 15, 23, 1);
	-webkit-transition: all .55s ease-in-out;
	   -moz-transition: all .55s ease-in-out;
	    -ms-transition: all .55s ease-in-out;
	     -o-transition: all .55s ease-in-out;
	        transition: all .55s ease-in-out;
}
.change_background:hover a { color: #fff;
	-webkit-transition: all .55s ease-in-out;
	   -moz-transition: all .55s ease-in-out;
	    -ms-transition: all .55s ease-in-out;
	     -o-transition: all .55s ease-in-out;
	        transition: all .55s ease-in-out;
}
.change_background a:hover { text-decoration: none; }
.change_background img { display: block; max-width: 90%; margin: 0 auto 0.5em auto;
	box-shadow: 0 10px 15px -11px rgba(0, 0, 0, 0.45);
}

figure small { display: block; font-size: 0.8em; }

/* share */
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-ms-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-o-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

#share, #share_rwd { opacity: 0; position: fixed; top: 10em; left: 0; display: block; width: 80px; height: 100%; text-align: center; margin: 2em 0 2em 0.5em; padding: 1% 0;
	-webkit-animation: fadeIn 1s ease-in 500ms 1 normal forwards;
	   -moz-animation: fadeIn 1s ease-in 500ms 1 normal forwards;
	    -ms-animation: fadeIn 1s ease-in 500ms 1 normal forwards;
	     -o-animation: fadeIn 1s ease-in 500ms 1 normal forwards;
	        animation: fadeIn 1s ease-in 500ms 1 normal forwards;
}
#share div, #share_rwd div { display: block; margin: 0 auto 1em auto; }
iframe.fb { margin-left: 16px; }

/* comments */
section#comments { clear: both; max-width: 800px; width: 80%; margin: 6em auto 0 auto; padding-top: 1em; border-top: 1px solid rgba(0, 0, 0, 0.15); }

/* Inlined definition list */
dl.inlined dt { width: 150px; float: left; font-weight: bold; clear: left; }
dl.inlined dd { display: block; }

/* table - element code */
.comparison-table { margin: 2em auto; width: 100%; }
.comparison-table caption { line-height: 30px; font-size: 1.1em; text-transform: uppercase; }
.comparison-table tr { height: 30px; border-bottom: 1px solid #ccc; }
.comparison-table .footnote { line-height: 50px; font-size: 0.9em; border: none; }
.comparison-table th { text-align: left; }
.comparison-table th, .comparison-table td { padding: 0 .35em; vertical-align: middle; }
.comparison-table .highlight { background-color: rgba(255, 0, 0, .15);}

/* Browser Support - Downloaded by / Supported by */
dl.browsers { clear: both; display: block; height: 100%; margin-bottom: 15em; }
dl.browsers dt { width: 100%; margin-top: 1.2em; font-size: 1.2em; border-bottom: 1px solid grey; }
dl.browsers dd { display: block; margin: 0.8em auto; height: 100%; }
dl.browsers dd ul { height: 100%; list-style: none; text-align: center; margin: 0 auto; }
dl.browsers dd ul li { float: left; height: 180px; }

span[class^="browser_"] { font-size: 1em; text-align: center; padding-top: 135px; display: block; width: 145px; background-position: top center; background-repeat: no-repeat; }
span.browser_chrome   { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/chrome.png"); }
span.browser_firefox  { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/firefox.png"); }
span.browser_opera    { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/opera.png"); }
span.browser_safari   { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/safari.png"); }
span.browser_ie       { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/internet_explorer.png"); }
span.browser_android  { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/android.png"); }
span.browser_ios      { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/ios.png"); }
span.browser_ios_42   { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/ios_older.png"); }
span.browser_netscape { background-image: url("//galjot.si/talks/future-layouts/img/browser_icons/netscape_navigator.png"); }


/* **************************************** */
/* that media queries thing from the future */
/* **************************************** */
/* smaller screens */
@media screen and (max-device-width: 1024px) and (orientation: portrait),
	   only screen and (max-device-width: 480px) and (orientation: landscape),
	   screen and (max-width: 768px) {

	/* article */
	article { display: block; clear: left; max-width: 100%; width: 100%; margin: 2em auto; }

	/* comment */
	section#comments { clear: both; max-width: 100%; width: 100%; margin: 0 auto; padding-top: 1em; border-top: 1px solid rgba(0, 0, 0, 0.15); }

	/* Browser Support - Downloaded by / Supported by */
	span[class^="browser_"] { padding-top: 90px; width: 100px; background-size: 85%; }
	dl.browsers { margin-bottom: 5em; }

	/* definition list - miniconf speaksers */
	.miniconf-speakers {
		-webkit-column-count: auto;
		   -moz-column-count: auto;
			-ms-column-count: auto;
			 -o-column-count: auto;
				column-count: auto;
	}
}

/* specific for Responsive Web Design in Slovenia article */
	@media screen and (max-width: 1150px) {
		/* share */
		#share_rwd { top: 0; display: inline; position: relative; margin: 1em 0 0 0; padding: 0; text-align: left; }
		#share_rwd div { float: left; height: 100px; display: inline-block; margin: 0 auto 0 1em; }
		#share_rwd iframe.fb { margin: 0; }
	}

	@media screen and (max-width: 900px) { .quote_rwd { font-size: 1.3em; } }
	@media screen and (max-width: 600px) { .quote_rwd { font-size: 1.1em; } }

/* **************************************** */
/* Shared article layout styles for Svelte5 2025 pages */
/* **************************************** */

article h2 { margin-top: 3rem; }

/* Split section layout for articles */
.split-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.intro-text {
  flex: 1;
}

.side-image {
  margin: 0;
  max-width: 40%;
  text-align: center;
}

.side-image.smaller { max-width: 37%; }

img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

figure.side-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 600px) {
  .split-section {
    flex-direction: column;
  }
}

/* Additional responsive breakpoint for larger screens */
@media screen and (max-width: 768px) {
  .side-image,
  .side-image.smaller {
    max-width: 100%;
    margin-top: 0;
  }
}

@media screen and (max-width: 480px) {
  .comparison-table { font-size: 0.75em; }
}
