/* Outermost Wrapper on WordPress block */
.boat-related-group {
    
}

/* Inner Wrapper Block */
.boat-related-grid {
    display: grid;
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0px;
    padding: 0;
    margin: 0;
}
.boat-related-grid .boat-related-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto 1fr;
    row-gap: 0px;
    column-gap: 10px;
    padding: 40px 10px;
    margin: 0;
    align-items: flex-start;
    align-content: flex-start;
    border-bottom: 1px solid rgba(120,120,120,0.3);
}
.boat-related-grid .boat-related-item.current {
    background: rgba(0,0,0,0.1);
    /* padding: 10px 10px 40px 10px; */
}
/* .boat-related-grid .boat-related-item.current::before {
    content: "CURRENTLY VIEWING";
    position: relative;
    top: 10px;
    left: 10px;
    color: black;
    grid-row: 1 / span 1;
    grid-column: 1 / span 4;
    padding-bottom: 10px;
} */

.boat-related-grid .boat-related-item img {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

.boat-related-grid .boat-related-item .boat-related-copy {

}

.boat-related-grid .boat-related-item .boat-related-copy .boat-related-title {
    font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}
.boat-related-grid .boat-related-item.current .boat-related-copy .boat-related-title {
    color: #D2232A;
}

.boat-related-grid .boat-related-item .boat-related-copy .boat-related-title > strong:first-child {
    font-weight: 300;
    text-transform: uppercase;
}
.boat-related-grid .boat-related-item .boat-related-copy .boat-related-title > strong:last-child {
    /* font-weight: 300;
    text-transform: uppercase; */
    font-weight: 600;
}

.boat-related-grid .boat-related-item .boat-related-copy .boat-related-headline {
    font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.boat-related-grid .boat-related-item .boat-related-price {

}

.boat-related-grid .boat-related-item .boat-related-price .series_price {
    padding-top: 0;
    margin-top: 0;
}
.boat-related-grid .boat-related-item .boat-related-price,
.boat-related-grid .boat-related-item .boat-related-price .series_price > em {
    width: 100%;
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    width: calc(100% - 20px);
    margin: 0;
    padding: 0 0 4px 0;
    font-style: italic;
    text-align: right;
}

.boat-related-grid .boat-related-item .boat-related-price .starting-price,
.boat-related-grid .boat-related-item .boat-related-price .series_price > span {
    font-family: "normalidad-wide", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: var(--wp--preset--font-size--large);
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    width: calc(100% - 20px);
    margin: 0;
    padding: 0;
    text-align:right;
}


.boat-related-grid .boat-related-item .boat-related-buttons {
    display: grid;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 6px;
    justify-content: flex-end;
    justify-items: flex-end;
}

.boat-related-grid .boat-related-item .boat-related-buttons > a {
    display: inline-block;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    background-color: rgba(0,0,0,0.4);
    border: 1px solid rgba(120,120,120,0.3);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: auto;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    letter-spacing: 1px;
    margin-right: 3px;
    margin-bottom: 3px;
}

.boat-related-grid .boat-related-item .boat-related-buttons > a.explore {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-grid;
    align-items: center;
    align-content: center;
    min-width: 106px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    justify-items: flex-start;
    column-gap: 20px;
    border-radius: 0;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.explore span {
    display: inline-block;
    z-index: 2;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.explore::after {
    position: relative;
    display: inline-block;
    font-family: "Material Symbols Outlined";
    content: "\e8b6";
    transform: scaleX(-1);
    font-size: 1rem;
    z-index: 2;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.explore::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background:#D2232A;
    z-index: -1;
    left: -100%;
    transition: all .2s ease;
    top: 0;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.explore:hover::before {
    left: 0;
}

.boat-related-grid .boat-related-item .boat-related-buttons > a.build {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-grid;
    align-items: center;
    align-content: center;
    min-width: 106px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    justify-items: flex-start;
    column-gap: 20px;
    border-radius: 0;
    background:#D2232A;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.build span {
    display: inline-block;
    z-index: 2;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.build::after {
    position: relative;
    display: inline-block;
    font-family: "Material Symbols Outlined";
    content: "\f591";
    /* transform: scaleX(-1); */
    font-size: 1rem;
    z-index: 2;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.build::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: black;
    z-index: -1;
    left: -100%;
    transition: all .2s ease;
    top: 0;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.build:hover::before {
    left: 0;
}

.boat-related-grid .boat-related-item .boat-related-buttons > a.compare {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-grid;
    align-items: center;
    align-content: center;
    min-width: 106px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    width: auto;
    box-sizing: border-box;
    justify-content: flex-start;
    justify-items: flex-start;
    column-gap: 20px;
    border-radius: 0;
    display: none;
}
.series_button.compare:has(+label>.compare_check:checked) {
    display: inline-grid;
    background: #D2232A;
}

.boat-related-grid .boat-related-item .boat-related-buttons > a.compare {
    background:#D2232A;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-grid;
    display: none;
    align-items: center;
    align-content: center;
    min-width: 106px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    justify-items: flex-start;
    column-gap: 20px;
    border-radius: 0;
    background: #D2232A;
}

.boat-related-grid .boat-related-item .boat-related-buttons > a.compare::after {
    position: relative;
    display: inline-block;
    font-family: "Material Symbols Outlined";
    content: "\f84f";
    transform: scaleX(-1);
    font-size: 1rem;
    z-index: 2;
}
.boat-related-grid .boat-related-item .boat-related-buttons > a.compare::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background:black;
    z-index: -1;
    left: -100%;
    transition: all .2s ease;
    top: 0;
}

@media screen and (max-width: 886px) {
    .boat-related-grid .boat-related-item {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 500px) {
    .boat-related-grid .boat-related-item {
        grid-template-columns: 1fr;
    }
}