
.hero {
    position: relative;
    height: calc(100% - 68px);
}

.hero > canvas {
    margin: 0 0 0 0;
    height: 100%;
    width: 100%;
}

.heroOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}

.heroText {
    font-size: 22px;
    position: absolute;
    left: 0;
    right: 0;
    color: #008744;
}

.heroText > h4 {
    transition: all 1.5s;
}

/* Center vertically align heroText on Desktop */
@media only screen and (min-width: 769px) and (min-height: 485px) {
    .heroText {
        top: 35%;
    }
}

.heroButton {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
}

/* Move heroButton up on Desktop */
@media only screen and (min-width: 769px) and (min-height: 485px) {
    .heroButton {
        bottom: 80px;
    }
}

.projectTile {
    position: relative;
    width: 100%;
    height: calc(95vw / 1440 * 650);
    max-height: calc(80vh - 68px);

    overflow: hidden;
}

.projectTileBg {
    /* Below projectTileHoverLayer */
    z-index: 1;

    position: absolute;
    width: 100%;

    overflow: hidden;
}

.projectTileBg > img {
    width: 100%;

    /* Zoom-in transition */
    transition: all 0.6s ease-in-out;
}

.projectTileHoverLayer {
    /* Below projectTileMockup */
    z-index: 2;

    position: absolute;
    overflow: hidden;
    width: 100%;
    top: 0;
    bottom: 0;

    background-color: rgba(0, 135, 68, 0.3);
}

.projectTileTitle {
    color: #FFFFFF;
    text-align: center;
    text-shadow: 2px 2px 6px #000000;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.projectTileTitleRight {
    left: 50%;
    right: 0;
}

.projectTileTitleLeft {
    left: 0;
    right: 50%;
}

.projectTileTitleCenter {
    left: 0;
    right: 0;
}

.projectTileTitle > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* Hide project subtitles on mobile */
@media only screen and (max-width : 768px) {
    .projectTileTitle > h4 { display: none; }
}

/* Only show projectTileHoverLayer when hovered on desktop */
@media only screen and (min-width : 769px) {
    .projectTileHoverLayer {
        transition:visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
        visibility: hidden;
        opacity: 0;
    }

    .projectTileMockup:hover + .projectTileHoverLayer {
        visibility: visible;
        opacity: 1;
    }

    .projectTileMockup:hover ~ .projectTileBg > img {
        width: 100.5%;
    }
}

.projectTileMockup {
    /* Above projectTileHoverLayer */
    z-index: 3;

    position: absolute;
    width: 100%;

    text-align: center;
}

.projectTileMockup > a > img {
    width: 100%;
    max-height: 100%
}