/* About styles */

.avatar {
    float: right;
    width: 230px;
    height: auto;
    margin: 0.4em 0 0.4em 1.5em;
    border-radius: 5px;
}

@media screen and (max-width: 600px) {
    .avatar {
        float: none;
        display: block;
        margin: 1em auto;
        width: 80%;
        min-width: 200px;
    }
}

.lang-buttons {
    text-align: right;
    margin-bottom: 20px;
}

button {
    margin-left: 8px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--MAIN-COLOR);
    color: var(--MAIN-BGCOLOR);
}

button:hover {
    opacity: 0.8;
}

article {
    width: 100%;
    margin-bottom: 2em;
}

article:nth-of-type(1) p {
    text-align: justify;
}

article h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding-bottom: 0.2em;
}

article h4:nth-of-type(1) {
    margin-top: 1em;
}

article h4 {
    margin-top: 1.5em;
    margin-bottom: 1em;
}

/* List styles */

@media (min-width: 660px) {
    article h4 {
        margin-left: 1.5em;
    }
}

@media screen and (max-width: 659px) {
    article h4 {
        margin-left: 1em;
    }
}

.period {
    font-weight: bold;
    margin: 0.3em auto;
}

.ensembles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 4fr));
    column-gap: 3em;
    row-gap: 1em;
}

.masterclass-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 5fr));
    column-gap: 3em;
    row-gap: 1em;
}

/* Map styles */
/* Map container styling */
#map {
    flex: 1 1 auto;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 500px) {
    #map {
        height: 350px;
        width: 100%;
    }
}
