/* 
  Author: Connor Kippes

  CSS for the detailed view of a painting.
*/

#painting-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

#big-painting {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#big-painting-container {
    height: 31.25rem;
    width: 31.25rem;
    overflow: hidden;
}

#big-painting-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-painting-container {
    display: inline-block;
    height: 5.625rem;
    width: 5.625rem;
    overflow: hidden;
    cursor: pointer;
}

.mini-painting-container:hover {
    opacity: 0.75;
    transition: opacity 0.1s ease;
}

.mini-painting-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#mini-paintings {
    display: flex;
    margin-top: 1rem;
    gap: 1rem;
}

#title-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#heart-icon{
    transition: transform .3s ease;
}

#heart-icon:hover {
    transform:scale(1.15);
}

#painting-details-container {
    gap: 0.5rem;
    flex-direction: column;
}

.display-none {
    display: none;
}

p {
    padding: 0;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 940px) {
    #painting-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    #big-painting-container {
        height: 25rem;
        width: 25rem;
    }

    .mini-painting-container {
        height: 4rem;
        width: 4rem;
    }

    #mini-paintings {
        justify-content: center;
    }
    #title-container {
        padding: 0 2rem;
    }
    #painting-details-container {
        padding: 0 2rem;
    }
    #big-painting-container {
        height: 20.5rem;
        width: 20.5rem;
    }

    .mini-painting-container {
        height: 3.75rem;
        width: 3.75rem;
    }
    #mini-paintings {
        gap: 0.5rem;
    }
}
