.wp-grid-builder .wpgb-wrapper {
    gap: 25px !important;
}
.wp-grid-builder .wpgb-sidebar {
    flex-basis: 250px !important;
}

#custom_related_posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 50px;
    grid-row-gap: 50px;
}
.custom-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #B0ACAC !important;
    text-decoration: none;
    background-color: white;
    margin: 0 !important;
}
.custom-post-card-image {
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.custom-post-card-content {
    display: flex;
    flex-direction: column;
    padding: 15px !important;
    flex-grow: 1;
}
.custom-post-card-content h4 {
    color: #022025 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    text-transform: uppercase;
    margin-bottom: 20px !important;
}
.custom-post-card-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto !important;
    margin-bottom: 10px !important;
}
.custom-age-text {
    color: #077E90 !important;
    text-transform: uppercase;
    font-size: 20px !important;
}
.custom-video-icon,
.custom-photo-icon,
.custom-download-icon {
    width: 25px;
    height: 25px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.custom-video-icon {
    background-image: url(../img/video.svg);
}
.custom-photo-icon {
    background-image: url(../img/photo.svg);
}
.custom-download-icon {
    background-image: url(../img/download.svg);
}
.custom-post-card-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}
.custom-post-card-mark-button {
    border: 2px solid !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    display: flex !important;
    align-items: baseline !important;
    line-height: 0px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}
.custom-post-card-mark-button:hover {
    transform: scale(1.05);
}
.custom-post-card-mark-button::before {
    content: '';
    width: 25px !important;
    height: 25px !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.custom-post-card-mark-button[data-type="favourite"] {
    border-color: #E64C7E !important;
    color: #E64C7E !important;
}
.custom-post-card-mark-button.custom-checked[data-type="favourite"] {
    background-color: #E64C7E !important;
    color: white !important;
}
.custom-post-card-mark-button[data-type="favourite"]::before {
    background-image: url(../img/heart-colored.svg);
}
.custom-post-card-mark-button.custom-checked[data-type="favourite"]::before {
    background-image: url(../img/heart.svg);
}
.custom-post-card-mark-button[data-type="tried"] {
    border-color: #077E90 !important;
    color: #077E90 !important;
}
.custom-post-card-mark-button.custom-checked[data-type="tried"] {
    background-color: #077E90 !important;
    color: white !important;
}
.custom-post-card-mark-button[data-type="tried"]::before {
    background-image: url(../img/checkmark-colored.svg);
}
.custom-post-card-mark-button.custom-checked[data-type="tried"]::before {
    background-image: url(../img/checkmark.svg);
}

.wp-grid-builder {
    overflow: hidden !important;
}
.wpgb-viewport {
	height: max-content !important;
}
.wpgb-metro {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 50px !important;
}
.wpgb-card {
	height: 100% !important;
	position: unset !important;
	width: 100% !important;
}
.wpgb-card .custom-post-card {
	height: 100% !important;
}
@media only screen and (max-width: 1000px) {
    .wpgb-metro {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media only screen and (max-width: 600px) {
    .wpgb-metro {
        grid-template-columns: 1fr !important;
    }
}