/* CD gallery container */

.contentbio .cd-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.contentbio .cd-gallery .cd-item {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    justify-self: center;
    box-sizing: border-box;
}





/* Clickable link */
.cd-item a {
    display: block;
    color: #333333;
    text-decoration: none;
	text-align:center;
}

/* Album cover */
.cd-item img {
 display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
}

/* Album title below image */
.cd-item h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 10px 0 5px;
    font-weight: 500;
	text-align:center;
}

/* Hover effect */
.cd-item a:hover img {
    opacity: 0.75;
}

.cd-item a:hover h3 {
    color: #a78646;
}

.cd-link {
    display: inline-block;
    font-size: 19px;
    color: #ffffff;
    text-decoration: underline;
	background-color:#fcebc2;
	 border-radius: 5px;
	 width:60%;
	 margin: 0 auto;border: 1px solid #e5d7b6;
    border-radius: 4px;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffcc33 100%
    );

    color: #222222;
    border-color: #b59a64;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

.cd-link:hover {
    color: #000000;
background: linear-gradient(
        to bottom,
        #ffcc33 0%,
        #ffcc33 100%
    );

    color: #222222;
    border-color: #b59a64;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);

}




/* Tablets */
@media (max-width: 900px) {

    .contentbio .cd-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-item {
        width: 100%;
        max-width: 300px;
    }

}



/* Mobile phones */
@media (max-width: 600px) {

.contentbio .cd-gallery {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        margin: 20px 0;
        padding: 0;
    }


   .contentbio .cd-gallery .cd-item {
        width: 100%;
        max-width: 150px;
        justify-self: stretch;
        padding: 15px;
    }

    .contentbio .cd-gallery .cd-item h3 {
        font-size: 16px;
    }

    .contentbio .cd-gallery .cd-item .cd-link {
        width: 100%;
        font-size: 14px;
    }
}



@media screen and (max-width: 600px) {
    .contentbio .cd-gallery {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .contentbio .cd-gallery .cd-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        box-sizing: border-box !important;
    }
}
    



