﻿

/* Ensure images don't exceed their container width */
img {
    max-width: 100%;
    display: block;
}

/* Style for a card list container */
.card-list {
    width: 90%;
    max-width: 400px;
}

/* Styling for individual cards */
.cardwrapper {
    background-color: #FFF;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 20px 50px 0 rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
    transition: 0.15s ease-in;
    max-height:330px;
}

    .cardwrapper:hover, .cardwrapper:focus-within {
        box-shadow: 0 0 0 2px #d2aa52, 0 10px 60px 0 rgba(0, 0, 0, 0.1);
        transform: translateY(-5px);
    }

/* Styling for card images */
.card-image {
    border-radius: 10px;
    overflow: hidden;
    width:100%;
    height:150px;
}

/* Styling for card headers */
.card_header {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .card_header a {
        font-weight: 600;
        font-size: 1.375rem;
        line-height: 1.25;
        text-decoration: none;
        color: inherit;
        will-change: transform;
    }

        .card-header a:after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
        }

/* Styling for icon buttons */
.icon-button {
    border: 0;
    background-color: #fff;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: 0.25s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 3px 8px 0 rgba(0, 0, 0, 0.15);
    z-index: 1;
    cursor: pointer;
    color: #565656;
}

    .icon-button:hover, .icon-button:focus {
        background-color: #d2aa52;
        color: #FFF;
    }

/* Styling for card footers */
.card-footer {
    margin-top: 1.25rem;
    border-top: 1px solid #ddd;
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Styling for card metadata */
.card-meta {
    display: flex;
    align-items: center;
    color: #787878;
}

    .card-meta:first-child:after {
        display: block;
        content: "";
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: currentcolor;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .card-meta svg {
        flex-shrink: 0;
        width: 1em;
        height: 1em;
        margin-right: 0.25em;
    }
