.subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #444; 
    margin: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.8); 
    border: 2px solid #ddd; 
    border-radius: 8px;
    padding: 10px 20px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    display: inline-block; 
}

.gallery-container 
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.artwork 
{
    position: relative;
    margin: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork:hover 
{
    transform: scale(1.03);
    box-shadow: 0 7px 30px rgba(0, 0, 0, 0.2);
}

.artwork img 
{
    width: 100%;
    height: 85%; /* 70-85% funker noenlunde det samme, må nok ha 75% hvis det skal være mye tekst i gallery-bildene. */
    display: block;
    border-bottom: 1px solid #ddd;
}

.artwork .details 
{
    padding: 7px;
    text-align: center;
}

.details h2 
{
    font-size: 1.2em;
    margin: 5px 0;
}

.details p 
{
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.popup img {
    width: 100%;
    height: auto;
}



/* Responderer dette til mobil layout? Nei? Let's fix that.*/
.artwork 
{
    flex: 0 0 calc(24.89% - 30px); /* fire gjenstander per rad. */
}

@media only screen and (max-width: 768px) 
{
    .artwork 
    {
        flex: 0 0 calc(49% - 30px); /* to gjenstander per rad. */
    }
}

@media only screen and (max-width: 500px) 
{
    .artwork 
    {
        flex: 0 0 calc(99% - 30px); /* en gjenstand per rad. */
    }
}