/* DanceSpace – WordPress additions that do not change the desktop look of the original template. */

/* Dropdown menu: the original used MooTools MenuMatic (#subMenusContainer); the same look in plain CSS. */
#hornav ul li ul {
	background-color: #EDEDED;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 0 5px;
	min-width: 170px;
	top: 100%;
	list-style: none;
}
#hornav ul li ul li,
#hornav ul li ul li ul li {
	float: none;
	clear: none;
	padding: 0 !important;
	min-width: 0;
	background: none;
}
#hornav ul ul a,
#hornav ul ul a:hover {
	line-height: 1em;
	padding: 8px 25px 8px 15px;
	color: #555 !important;
	font-size: 13px;
	border-left: 0;
	border-bottom: 1px dashed #ddd;
	background: none !important;
	white-space: nowrap;
	text-shadow: none;
}
#hornav ul ul a:hover,
#hornav ul ul a:focus { color: #888 !important; }
#hornav li:focus-within > ul { left: 0; z-index: 99999; }

.ds-menu-toggle { display: none; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 15px 10px 0; }
.alignright { float: right; margin: 0 0 10px 15px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 11px; text-align: center; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* [gallery]: thumbnail grid like Simple Image Gallery (150×100, lightbox) */
.gallery { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gallery .gallery-item { margin: 0; width: auto; }
.gallery .gallery-icon img { display: block; width: 150px; height: 100px; object-fit: cover; border: 1px solid #ccc; padding: 3px; background: #fff; }
.gallery .gallery-caption { display: none; }

/* [video] and embeds keep the content width */
.wp-video, .wp-video-shortcode { max-width: 100%; }
.maincontent iframe { max-width: 100%; }

/* the tab blocks moved from the template into the content */
.ds-tabs-block { margin-bottom: 38px; } /* the two <br /> the template printed after the tabs */
.ds-slide-scaler { position: relative; }
/* before the scripts run, show only the first slide and the first tab (no jump when they start = no layout shift) */
.slideshow > :not(:first-child) { display: none; }
.slideshow { overflow: hidden; }
.tabcontents > [id^="view"]:not(:first-child) { display: none; }

/* category list rows (Joomla table.category) */
table.category { width: 100%; }
table.category td.list-title { padding: 6px 4px; border-bottom: 1px dotted #ccc; }
