/* Styles specific to the music page */
body {
    background-color: #FBE6D2;
}

main {
    padding-top: 0rem;
}

.latest-release-section-title {
    writing-mode: unset;
    text-orientation: unset;
    transform: rotate(0deg);
    left: 0;
    right: 0;
    margin: 0 auto;
    /* margin-top: -15vh; */
    top: 15vh;
    font-size: 6vh;
    font-weight: 400;
}

.latest-release-container {
    padding-top: 25vh;
    padding-left: 0;
    height: min-content;
    margin-bottom: 5rem;

}

.latest-release-cover {
    height: 30vh;
}

.latest-release-title {
    width: 20vw;
}

.latest-release-action {
    font-size: large;
}


/* The grid of releases */
.releases-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    width: 80vw;
    margin: 0 10vw;
    justify-items: center;
    padding: 1rem;
    margin-bottom: 10rem;
}

.release-item {
    width: 80%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Start hidden */
    opacity: 0;


    animation-name: float_in_shadowless;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.release-item img {
    width: 80%;
    object-fit: cover;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;

}

.release-item img:hover~.release-item-title,
.release-item-title:hover {
    opacity: 1;
}


.release-item-title {
    width: 80%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 10;
    /* height: 80%; */
    opacity: 0;
    transition: opacity 0.3s;
    background-color: #000000b4;
    /* background-color: #ffffffb4; */

    cursor: pointer;
}

.release-item-title span {
    /* color: #906B43; */
    color: white;
    font-size: 2vh;
    font-weight: 400;
    text-align: center;
    margin: 2rem;
}



/* Music modal styles */
/* Override modal background */
.modal-inner {
    backdrop-filter: blur(4rem) !important;
    -webkit-backdrop-filter: blur(4rem) !important;
    background-color: unset !important;
}

.music-modal-outer {
    display: flex;
    margin: auto;
    width: 100%;
    height: 100%;

}

.music-modal-embed-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.music-modal-links-container {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.spotify-embed {
    margin: auto;
    width: 100%;
    /* Fix odd Webkit/Safari bug */
    height: 100.6%;
    opacity: 0.9;

}

.music-modal-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    padding: 0.5rem;
    font-size: large;
    background-color: #0000007a;

    /* backdrop-filter: blur(10px); */

    text-align: center;
    border-radius: 12px;
    transition: box-shadow 0.3s, background-color 0.3s;
    cursor: pointer;

    /* Start hidden */
    opacity: 0;
    animation-name: float_in;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;
}

.music-modal-link-item:hover {

    box-shadow: 0px 0px 20px 0px rgb(0 0 0 / 20%);
    background-color: #f3dec969;
}

.music-modal-link-item img {
    width: 30%;
    /* object-fit: cover; */
    aspect-ratio: 1/1;
}

.music-modal-link-item span {
    flex-grow: 1;
    color: white;
    text-shadow: 0 0 5px black;
}


/* Redefined keyframe animations due to Safari/Webkit glitch */
@keyframes float_in_shadowless {
    0% {
        opacity: 0;
        transform: translate(0, -5vh);
    }
    100% {

        opacity: 1;
        transform: translate(0, 0);

    }
}

@keyframes float_in {
    from {
        opacity: 0;
        box-shadow: 0px 2rem 4rem rgba(0, 0, 0, 0.2);
        transform: translate(0, -5vh);
    }

    50% {
        opacity: 1;
    }

    to {

        opacity: 1;
        transform: translate(0, 0);
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);

    }
}