/*
Theme Name:   The Ship Inn
Theme URI:    https://theshipinnredbridge.com
Description:  Divi 5 child theme for The Ship Inn, Old Redbridge. Site content (pages and Theme Builder header and footer) is installed from release zips under Appearance > Site Releases.
Author:       The Ship Inn
Template:     Divi
Version:      1.4.6
Requires PHP: 7.4
Text Domain:  ship-inn
*/

/*
 * Release content sits in Divi Section > Row > Column > Code module wrappers.
 * These rules take Divi's default spacing and widths off those wrappers so each
 * section's own markup (styled by the release CSS) controls the layout.
 */
.et_pb_section.si-section {
	padding: 0 !important;
	background-color: transparent !important;
}

.et_pb_section.si-section > .et_pb_row.si-row {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

.et_pb_section.si-section .et_pb_column.si-col {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.et_pb_section.si-section .et_pb_module.si-code {
	margin: 0 !important;
	padding: 0 !important;
}

/* Sections that stick to the top while scrolling (e.g. the menu jump links). */
.et_pb_section.si-sticky {
	position: sticky !important;
	top: 0;
	z-index: 20;
}

.admin-bar .et_pb_section.si-sticky {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .et_pb_section.si-sticky {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .et_pb_section.si-sticky {
		top: 0;
	}
}

/* Keep the Theme Builder header (and its mobile menu panel) above page content. */
.et-l--header {
	position: relative;
	z-index: 100;
}

#main-content {
	background-color: transparent;
}

/* Spam trap on release forms. */
.si-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Links laid out on their own (footer and nav links) take their block's colour, as in the release's design. */
.si-root a.si-link,
.si-root a.si-link:hover {
	color: inherit;
	text-decoration: none;
}
