/* ========== images.css (SAUBERE VERSION) ========== */

.content_chapter_box,
.image-gallery-container {
    display: grid;
    gap: 1.5em;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.content_image_frame {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    min-width: 0; 
}

.image_border {
    width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; 
    cursor: pointer;
    border-left: solid 5px #bbb;
    border-top: solid 5px #ddd;
    border-bottom: solid 5px #bbb;
    border-right: solid 5px #eee;
    border-radius: 2em;
    background-color: white;
    transition: box-shadow 0.3s ease;
}

.image_border:hover {
    border: solid 5px blue;
}

.content_image_text {
    padding: 0.5em;
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    word-break: break-word;
}

.image_frame {
    border: solid 0.5px silver;
    text-align: center;
    padding: 2px;
    font-size: 0.8em;
    font-style: italic;
    cursor: pointer;
}

.image_frame:hover .image_border {
    border: solid 5px blue;
    text-decoration: underline;
}

.image_select {
    width: 80%;
}

.image_pattern {
    display: flex;
    flex-direction: row;
    font-weight: normal;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.image_pattern > div {
    display: flex;
    flex-direction: row;
    margin: 0.4em;
    flex-grow: 1;
}

.image_link {
    vertical-align: middle;
    border: 3px darkgrey solid;
    border-radius: 5px;
    cursor: pointer;
}

.image_link:hover {
    border: 3px blue solid;
    border-radius: 5px;
}

.image_icon {
    margin-left: 1.5em;
    margin-right: 0.5em;
    height: 2.5em;
    width: 2.5em;
}