.card-img-top {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-dialog {
    max-width: 90%;
}

.modal-img {
    display: block;
    max-width: 90vw;  /* не больше 90% ширины экрана */
    max-height: 90vh; /* не больше 90% высоты экрана */
    width: auto;      /* сохраняем пропорции */
    height: auto;
    margin: 0 auto;   /* центрирование */
}

.flash-messages-container {
    position: relative;
    max-width: 100%;
    height: 100%;
}

/* Сообщения */
.flash-messages {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: 300px;
    z-index: 19999;
}

.flash-message {
    min-height: 40px;
    padding: 10px;
    text-align: center;
    display: inline-block;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: #1e1e1e;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-bottom: 10px;
    z-index: 19999;
}

.flash-message.show {
    opacity: 1;
}