/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap'); */

/* Client Styles *********************************************************** */
body {
    /* Literally no styles. */
}

.related-caselets {
    max-width: 1600px;
    margin: 0 auto;
}

.related-caselets > .wp-block-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media screen and (max-width: 1200px) {
    .related-caselets > .wp-block-group {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 782px) {
    .related-caselets > .wp-block-group {
        grid-template-columns: 1fr;
    }
}

.related-caselets .caselet-tags,
.related-caselets .caselet-topics,
.related-caselets .caselet-immersive-experience {
    font-size: 1rem;
    font-style: italic;
    color: gray;
}
.related-caselets p > a {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}
.related-caselets p > a > span {
    width: 100%;
    color: gray;
    font-size: 0.9rem;
    font-style: italic;
    pointer-events: none;
}
.related-caselets p > a:hover {
    color: #0c2340;
    text-decoration: underline;
}
.related-caselets .caselet-tags a::after,
.related-caselets .caselet-topics a::after,
.related-caselets .caselet-immersive-experience a::after {
    content: ', ';
    display: inline-block;
    background-image: none !important;
    color: gray;
}
.site-content .related-caselets .caselet-tags a:last-child::after,
.site-content .related-caselets .caselet-topics a:last-child::after,
.site-content .related-caselets .caselet-immersive-experience a:last-child::after {
    content: '' !important;
}
.related-caselets .related-caselet-item {
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0px 0px 16px 4px rgba(0,0,0,0.05);
    -webkit-box-shadow: 0px 0px 16px 4px rgba(0,0,0,0.05);
    -moz-box-shadow: 0px 0px 16px 4px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 20px;
}
.related-caselets .related-caselet-item:hover {
    background-color: var(--sky-blue);
    /* border-bottom: 4px solid #ae9142; */
    border-bottom: 4px solid var(--sky-blue-dark);
}
.related-caselets .related-caselet-item img.wp-post-image {
    grid-column: 1 / span 1;
    grid-row: 1 / span 2;
}
.related-caselets .related-caselet-item .related-caselet-meta {
    align-self: flex-end;
    align-content: flex-end;
    align-items: flex-end;
    grid-column: 2 / span 1;
}


/* Admin Styles *********************************************************** */
/* Add logo to block in editor when selected. */
.wp-block-acf-dhwp-related-caselets.is-selected::before {
    content: "";
    position: absolute;
    top: -56px;
    left: -56px;
    right: auto;
    width: 46px;
    height: 46px;
    background: #fff url(digital-hill-logo.svg) no-repeat center center;
    background-size: 40px 40px;
    z-index: 2;
    border: 1px solid #1e1e1e;
}
/* Patch for Admin adding the background color to the whole editor section. */
.wp-block-acf-dhwp-related-caselets {
    background-color: transparent !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Patch for Admin adding margin-block-start to all top-level blocks. */
.dhwp-related-caseletss {
    /* margin-block-start: 0 !important; */
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 20px;
    padding-right: 20px;
}
/* Patch for Admin applying the user-selected background color to the entire block, and not just the button. */
body :where(.editor-styles-wrapper) .has-base-background-color.wp-block-acf-dhwp-related-caselets,
body :where(.editor-styles-wrapper) .has-contrast-background-color.wp-block-acf-dhwp-related-caselets,
body :where(.editor-styles-wrapper) .has-accent-1-background-color.wp-block-acf-dhwp-related-caselets,
body :where(.editor-styles-wrapper) .has-accent-2-background-color.wp-block-acf-dhwp-related-caselets,
body :where(.editor-styles-wrapper) .has-accent-3-background-color.wp-block-acf-dhwp-related-caselets,
body :where(.editor-styles-wrapper) .has-accent-4-background-color.wp-block-acf-dhwp-related-caselets,
body :where(.editor-styles-wrapper) .has-accent-5-background-color.wp-block-acf-dhwp-related-caselets {
    background-color: transparent !important;
}
/* Prevent clicks on links in the editor */
.editor-styles-wrapper .wp-block-acf-dhwp-related-caselets a {
    cursor: default;
    pointer-events: none;
}
/* Set styles for debug area */
:root .editor-styles-wrapper .wp-block-acf-dhwp-related-caselets :where(.wp-block-code) {
    font-family: 'Montserrat', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff !important;
    background-color: #333 !important;
    padding: 20px;
    border-radius: 8px;
}

@media screen and (max-width: 1720px) {
    .related-caselets {
        padding-left: 50px;
        padding-right: 50px;
    }
}