/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    line-height: 1.6;
    padding: 20px 0;
    text-align: center;
}

a, a:visited {
    color: rgb(0, 0, 0);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
    margin: auto auto;
}

.artpiece {
    padding: 10px;
    text-align: center;
    width: 250px;
    margin: auto;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artpiece img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* forces perfect square */
    object-fit: cover;      /* crops instead of distorting */
    object-position: center;
    display: block;
    border-radius: 0;       /* optional, remove if you want rounded corners */
}

.tooltip {
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    background: #efcf9c;
    color: rgb(0, 0, 0);
    border-radius: 1px solid black;
    font-size: 10px;
    padding: 0px 5px;
    display: none;
    box-shadow: none; /* No modern shadows */
    pointer-events: none; /* Prevent interference with cursor */
    max-width: 250px; /* Set max width for tooltip */
    word-wrap: break-word; /* Ensure long words break properly */
    text-align: left;
}

.name {
    font-style: italic;
    font-weight: 100;
    font-size: x-small;
    margin-left: 10px;
    color: rgba(0, 0, 0, 0.9);
}

.title {
    font-weight: bold;
}

.language,  .source-link {
    font-weight: 100;
    font-size: xx-small;
    margin-top: 5px;
    font-style: italic;
    color: rgb(100, 100, 100);
}

.home-icon {
    position: fixed;
    top: 25px;
    left: 15px;
    width: 24px; /* Small size */
    height: 24px;
    color:black;
}