.contextual {
    z-index: 98;
}

.layout-builder {
    --lb-plus-main-color: #4b9ae4;
}

/* Layout builder sections. */
.layout-builder__section {
    position: relative;
    transition: all .2s ease;
}

.layout-builder__section:hover {
    box-shadow: 0 0 0 10px var(--lb-plus-main-color);
    z-index: 10;
}

.layout-builder__section:hover>.layout-builder__link {
    opacity: 1;
}

/* Layout section builder buttons. */
.layout-builder__section>.layout-builder__link {
    display: inline-block;
    height: 49px !important;
    width: 49px !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--lb-plus-main-color) !important;
    background-repeat: no-repeat;
    background-position: center !important;
    background-size: 30px !important;
    color: white;
    border-radius: 0 !important;
    border: none;
    text-indent: -9999px;
    transition: all .2s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.layout-builder__section>.layout-builder__link:hover {
    background-size: 35px !important;
    background-color: var(--lb-plus-main-color);
}

.layout-builder__section>.layout-builder__link--remove {
    background-image: url("/modules/custom/starterkit_layoutbuilder/images/remove.svg");
}

.layout-builder__section>.layout-builder__link--remove:hover {
    background-image: url("/modules/custom/starterkit_layoutbuilder/images/remove.svg");
}

.layout-builder__section>.layout-builder__link--configure {
    background-image: url("/modules/custom/starterkit_layoutbuilder/images/cog.svg");
    left: 49px;
}

.layout-builder__section>.layout-builder__link--add-section-to-library {
    background-image: url("/modules/custom/starterkit_layoutbuilder/images/archive.svg") !important;
    left: 98px;
}

/* Alter look n feel of contextual links. */

/* Hide the contextual trigger button. */
.layout-builder__section .contextual-region .contextual .trigger {
    display: none;
}

/* Always display the contextual links and style them as buttons. */
.layout-builder__section .contextual-region .contextual .contextual-links {
    padding: 0;
    background-color: var(--lb-plus-main-color);
    background-position: center center;
    background-size: 25px;
    background-repeat: no-repeat;
    color: white;
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    border: none;
    transition: all 0.2s ease;
    display: flex !important;
}

.layout-builder__section .contextual-region .contextual .contextual-links li,
.layout-builder__section .contextual-region .contextual .contextual-links a {
    margin: 0;
}

.layout-builder__section .contextual-region .contextual .contextual-links li {
    padding: 0;
}

.layout-builder__section .contextual-region .contextual .contextual-links a {
    padding: 1em;
    line-height: 1em;
    min-width: 45px;
    min-height: 40px;
    background-color: var(--lb-plus-main-color) !important;
    background-position: center !important;
    background-size: 25px;
    background-repeat: no-repeat !important;
    text-indent: -9999px;
    overflow: hidden;
    transition: all .2s ease;
}

.layout-builder__section .contextual-region .contextual .contextual-links a:hover {
    background-size: 30px !important;
}

/* Edit button. */
.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/update/block"] {
    background-image: url(/modules/custom/starterkit_layoutbuilder/images/cog.svg);
}

.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/update/block"]:hover {
    background-image: url(/modules/custom/starterkit_layoutbuilder/images/cog.svg);
}

/* Move button. */
.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/move/block"] {
    background-image: url(/modules/custom/starterkit_layoutbuilder/images/move.svg);
}

.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/move/block"]:hover {
    background-image: url(/modules/custom/starterkit_layoutbuilder/images/move.svg);
}

/* Delete button. */
.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/remove/block"] {
    background-image: url(/modules/custom/starterkit_layoutbuilder/images/remove.svg);
}

.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/remove/block"]:hover {
    background-image: url(/modules/custom/starterkit_layoutbuilder/images/remove.svg);
}

/* Duplicate button. */
.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/duplicate/block"] {
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22white%22%20class%3D%22bi%20bi-copy%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%202a2%202%200%200%201%202-2h8a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2zm2-1a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h8a1%201%200%200%200%201-1V2a1%201%200%200%200-1-1zM2%205a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h8a1%201%200%200%200%201-1v-1h1v1a2%202%200%200%201-2%202H2a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h1v1z%22%2F%3E%3C%2Fsvg%3E);
}

.layout-builder__section .contextual-region .contextual .contextual-links a[href*="/duplicate/block"]:hover {
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22white%22%20class%3D%22bi%20bi-copy%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%202a2%202%200%200%201%202-2h8a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2zm2-1a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h8a1%201%200%200%200%201-1V2a1%201%200%200%200-1-1zM2%205a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h8a1%201%200%200%200%201-1v-1h1v1a2%202%200%200%201-2%202H2a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h1v1z%22%2F%3E%3C%2Fsvg%3E);
}


/* Layoutbuilder regions */
.layout-builder__region.js-layout-builder-region {
    outline: 1px dashed var(--lb-plus-main-color);
}

.layout-builder__region .layout-builder__add-block {
    transition: all .2s ease;
    overflow: hidden;
    max-height: 20px;
    padding: 0;
    opacity: 0;
}

.layout-builder__region:hover {
    outline: 2px dashed var(--lb-plus-main-color);
}

.layout-builder__region:hover .layout-builder__add-block {
    opacity: 1;
    max-height: 100px;
    padding: 1.5em 0;
}

.layout-builder__add-section[data-layout-builder-highlight-id] {
    transition: all .2s ease;
    opacity: 0;
    max-height: 10px;
    padding: 0;
    margin-bottom: 0;
}

.layout-builder__add-section[data-layout-builder-highlight-id]:hover {
    opacity: 1;
    max-height: 100px;
    padding: 1.5em 0;
    margin-bottom: 1.5em;
}

#layout-builder [data-aos] {
    opacity: .9;
}

.layout-builder__region .layout-builder-block {
    padding: 0;
    background: none;
}

article.node--type-page-layoutbuilder .hide-section {
    display: none;
}

.layout-builder .hide-section {
    opacity: 0.5;
}

/* .layout-builder-section {
    overflow-x: hidden;
    overflow-y: hidden;
} */

.container.container-small {
    max-width: 875px;
}

.container:has(> .gx-9) {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}


[dir="ltr"] .media-library-edit__link,
[dir="ltr"] .media-library-item .media-library-item__edit {
    right: unset;
    top: unset;
    position: relative;
}

.form-wrapper[data-drupal-selector="edit-preview-toggle"] {
    display: flex;
    justify-content: center;
}