/* 
 * CreativeDavid Homepage CSS Styles
 */

/* Project Thumbnails */

.project-gallery {
    position: relative;
    padding-top: 125px;
    z-index: 10;
}
.project-gallery .fixed-width {
    width: 90%;
}
.project-gallery ul {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
}
.project-gallery li {
    padding: 0 1rem;
}
.project-gallery a {
    display: block;
}

.project-gallery .thumbnail .slideshow,
.project-gallery .label,
.project-gallery .label h2 {
    transition: all .2s;
}
.project-gallery .thumbnail,
.project-gallery a:hover .slideshow {
    width: 420px;
    height: 260px;
}
.project-gallery .thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-gallery .thumbnail .slideshow {
    position: relative;
    width: 400px;
    height: 240px;
    border-radius: 1rem;
    box-shadow: 0 15px 15px -15px rgb(0 0 0 / 35%);
    overflow: hidden;
}
.project-gallery .thumbnail picture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-gallery .label {
    padding-top: 0;
    padding-bottom: .5rem;
}
.project-gallery a:hover .label {
    padding-top: .5rem;
    padding-bottom: 0;
}

.project-gallery .label h2 {
    background-color: transparent;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: rgb(0 0 0 / 35%);
    border-radius: .75rem;
    padding: .2rem 1rem;
    width: 70%;
    margin: auto;
}
.project-gallery a:hover .label h2 {
    /*background: linear-gradient(90deg, var(--site-light), white);*/
    /* NOTE: just trying this out, needs to fade in if keeping */
    color: black;
    width: calc(100% - 3rem);
    padding: .2rem 1.5rem;
}

.project-gallery .slideshow picture:nth-child(1) {
    z-index: 10;
}
.project-gallery .slideshow picture:nth-child(2) {
    z-index: 9;
}
.project-gallery .slideshow picture:nth-child(3) {
    z-index: 8;
}
.project-gallery .slideshow picture:nth-child(4) {
    z-index: 7;
}
.project-gallery .slideshow picture:nth-child(5) {
    z-index: 6;
}

.project-gallery .thumbnail .slideshow {
    transform: scale(0);
}
.project-gallery .label {
    transform: translateY(-5rem);
    opacity: 0;
}
.project-gallery .thumbnail .slideshow,
.project-gallery .label {
    animation-fill-mode: forwards;
    animation-duration: .5s;
}
.project-gallery li.appear .thumbnail .slideshow {
    animation-name: zoomIn;
}
.project-gallery li.appear .label {
    animation-name: slideDown;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
@keyframes slideDown {
    from {
        transform: translateY(-5rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}




