.block-three-up-cert-photos {
    font-family: "Avenir Next", Avenir, sans-serif;
    font-weight: 400;
    color: #51534A;
    overflow: hidden;
}

.block-three-up-cert-photos .block-container {
    max-width: var(--max-large);
    padding: 0;
}

.block-three-up-cert-photos .panels {
    display: flex;
    flex-direction: column;
    margin-left: -3em;
    width: calc(100% + 6em);
}

@media screen and (min-width: 1000px) {
    .block-three-up-cert-photos .panels {
        flex-direction: row;
    }
    
    .block-three-up-cert-photos .panel:first-child .panel-background,
    .block-three-up-cert-photos .panel:first-child .certification-types-wrapper .background-overlay,
    .block-three-up-cert-photos .panel:first-child .project-name-wrapper .background-overlay,
    .block-three-up-cert-photos .panel:first-child .project-name-wrapper .background {
        left: unset;
        right: 0;
    }
}

@media screen and (min-width: 1536px) {
    .block-three-up-cert-photos .panel:first-child .panel-background,
    .block-three-up-cert-photos .panel:last-child .panel-background,
    .block-three-up-cert-photos .panel:first-child .certification-types-wrapper .background-overlay,
    .block-three-up-cert-photos .panel:first-child .project-name-wrapper .background-overlay,
    .block-three-up-cert-photos .panel:first-child .project-name-wrapper .background,
    .block-three-up-cert-photos .panel:last-child .certification-types-wrapper .background-overlay,
    .block-three-up-cert-photos .panel:last-child .project-name-wrapper .background-overlay,
    .block-three-up-cert-photos .panel:last-child .project-name-wrapper .background {
        width: calc( 100% + 50vw - ( var(--max-large) / 2 ) );
    }
}

.block-three-up-cert-photos .panel {
    position: relative;
    width: 100%;
    height: 30em;
}

.block-three-up-cert-photos .panel-container {
    overflow: hidden;
    position: relative;
    padding: 3em;
    height: 100%;
}

.block-three-up-cert-photos .panel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.block-three-up-cert-photos .panel-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-three-up-cert-photos .panel-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 3;
    color: white;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.04em;
}

.block-three-up-cert-photos .certification-types-wrapper,
.block-three-up-cert-photos .project-name-wrapper {
    padding: 1em;
    position: relative;
}

.block-three-up-cert-photos .certification-types,
.block-three-up-cert-photos .project-name,
.block-three-up-cert-photos .cta-text {
    z-index: 3;
    position: relative;
}

.block-three-up-cert-photos .project-name {
    font-weight: bold;
}

.block-three-up-cert-photos .project-name-wrapper .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1;
}

.block-three-up-cert-photos .certification-types-wrapper .background-overlay,
.block-three-up-cert-photos .project-name-wrapper .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.block-three-up-cert-photos .background-image-grayscale {
    transition: all 0.5s ease;
}

.block-three-up-cert-photos .panel-cta:hover .background-image-grayscale {
    filter: grayscale(0);
}

.block-three-up-cert-photos .cta-text {
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateY(50%);
}

.block-three-up-cert-photos .panel-cta:hover .cta-text {
    opacity: 1;
    transform: translateY(0);
}