/** Header Image: **/
.rbstheme--header-image {
    position: relative;
    height: 100%;
    width: 100%;
}
.rbstheme--header-image-img {
    position: absolute;
    height: 100%;
    object-fit: cover;
    width: 100%;    
}
.rbstheme--header-image-contents {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.rbstheme--header-image-title {
    font-size: 3rem;
    color: #ffffff;
}


/** Site Logo: **/
.rbstheme--site-logo {
    /*max-width: 300px;*/
    max-width: 100%;
}
.rbstheme--site-logo-link {
    display: flex;
}
.rbstheme--site-logo-image {
    max-width: 100%;
}


/** Post Navigation **/
.rbstheme--post-navigation-wrapper {
    display: flex;
    justify-content: space-between;
    flex: 1;
}
.rbstheme--post-navigation-previous {
    margin-left: 1rem;
}
.rbstheme--post-navigation-next {
    margin-right: 1rem;
}




/** Search Toggle: **/
.rbstheme--search-toggle-button {
    padding: 0;
    margin: 0;
    min-width: unset;
    width: unset;
    background: unset;
    color: unset;
    font-size: 1rem;
    height: unset;
    min-height: unset;
}

.rbstheme--search-toggle-container {
    box-sizing: border-box;
    /* background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 1rem; */
    transition: all 0.5s ease;
}

.rbstheme--search-toggle-container--form-head {
	font-size: 1.25rem;
	border-bottom: 1px solid #dadada;
	display: flex;
	margin-bottom: 1rem;
	padding-bottom: 0.5em;
}
.search-form--buttons {
    display: flex;
    gap: 2rem;
}
body form .search-form--buttons .search-button {
    flex: 1 !important;
    gap: 1rem !important;
    display: inline-flex !important;
}

/* Dropdown */
.rbstheme--search-toggle-container--dropdown .search-form {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 15px;
}
.rbstheme--search-toggle-container--dropdown .search-form label {
    flex: 1;
    height: 100%;
}
.rbstheme--search-toggle-container--dropdown .search-form label input {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}
.rbstheme--search-toggle-container--dropdown .search-form .search-submit {
    height: 100%;
}

/* Search Toggle - fixed: */
.rbstheme--search-toggle-container--fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100vw;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
}
body.admin-bar .rbstheme--search-toggle-container--fixed  {
    top: 32px;
}
.rbstheme--search-toggle-container--fixed.is-active {
    visibility: visible;
    opacity: 1;
}
.rbstheme--search-toggle-container--fixed .search-form {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 15px;
}
.rbstheme--search-toggle-container--fixed .search-form label {
    flex: 1;
    height: 100%;
}
.rbstheme--search-toggle-container--fixed .search-form label input {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}
.rbstheme--search-toggle-container--fixed .search-form .search-submit {
    height: 100%;
}

/* Search Toggle - overlay: */
.rbstheme--search-toggle-container--overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    
    visibility: hidden;
    opacity: 0;    
}
.rbstheme--search-toggle-container--overlay.is-active {
    visibility: visible;
    opacity: 1;
}
.rbstheme--search-toggle-container--overlay .rbstheme--search-toggle-container--form {
    width: 50%;
    background-color: #ffffff;
    padding: 2rem;
    position: relative;
} 
.rbstheme--search-toggle-container--overlay-close {
    position: absolute;
    top: 5px;
    right: 2rem;
    font-size: 20px;
    color: #000000;
}
.rbstheme--search-toggle-container--overlay .search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.rbstheme--search-toggle-container--overlay .search-form label {
}
.rbstheme--search-toggle-container--overlay .search-form label input {
    width: 100%;
    height: 50px;
    padding: 1rem;
}
.rbstheme--search-toggle-container--overlay .search-form .search-submit {
    width: 100%;
    height: 50px;
    margin: 2rem 0 0 0;    
}

/* =========================================================
   Search Popup
   ========================================================= */

.rbstheme--search-toggle-container--popup {
	position: fixed;
	top: 0;
	left: 0;

	/* JS will update these */
	z-index: 9999;

	/* Hidden by default */
	display: none;

	/* Don't interfere with the page when hidden */
	pointer-events: none;
}

.rbstheme--search-toggle-container--popup.is-active {
	display: block;
	pointer-events: auto;
}


/* ---------------------------------------------------------
   Popup form
   --------------------------------------------------------- */

.rbstheme--search-toggle-container--popup
.rbstheme--search-toggle-container--form {
	position: relative;

	min-width: 280px;
	max-width: calc(100vw - 2rem);

	padding: 1rem;

	background: #fff;

	border: 1px solid #ddd;
	border-radius: 6px;

	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.12),
		0 12px 30px rgba(0, 0, 0, 0.10);
}


/* ---------------------------------------------------------
   Close button
   --------------------------------------------------------- */

.rbstheme--search-toggle-container--popup-close {
	position: absolute;

	top: 0.5rem;
	right: 0.5rem;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 2rem;
	height: 2rem;

	cursor: pointer;

	font-size: 1.1rem;
	line-height: 1;

	color: #333;
}

.rbstheme--search-toggle-container--popup-close:hover {
	color: #000;
}


/* ---------------------------------------------------------
   Search form
   --------------------------------------------------------- */

.rbstheme--search-toggle-container--popup
.rbstheme--search-toggle-container--form
.search-form {
	margin: 0;
}


/* Give the search form some room for the close button */
.rbstheme--search-toggle-container--popup
.rbstheme--search-toggle-container--form
.search-form {
	padding-right: 2.5rem;
}

@media (max-width: 480px) { 
    .rbstheme--search-toggle-container--overlay .rbstheme--search-toggle-container--form {
        width: 80%;
        padding: 1rem;
    }
}