/* START CENTER BLOCK */

.center_block {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

.mention_form {
    margin-top: 50px;

}

.mention_form textarea {
    width: 100%;
    resize: none;
    height: 100px;

    white-space: pre-wrap;
    font-family: 'SimplePro-H', sans-serif;
    font-size: 1.1em;
    line-height: 1.2em;
}

.mention_form input {
    width: 100%;
    margin-left: 12px;
}

.mention_form button {
    background-color: var(--main-red-color);
    color: white;
    border: none;
    font-weight: bold;
    text-align: center;
    max-width: 80px;
    width: 100%;
    cursor: pointer;
}

.description_and_form {
    display: flex;
    flex-direction: column;
}

.textarea_wrapper {
    position: relative;
}

.char_count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 12px;
    color: #666;
    pointer-events: none;
}

.right_block__description pre {
    white-space: pre-wrap;
    font-family: 'SimplePro-H', sans-serif;
    font-size: 1.2em;
    line-height: 1.5em;
    margin-top: 60px;
}

.form_bottom_row {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form_bottom_row input[name="displayName"] {
    order: 2;
    width: calc(100% - 92px);
}

.form_bottom_row input[name="link"] {
    order: 1;
    width: 100%;
    margin: 0 0 12px;
}

.form_bottom_row button {
    order: 3;
}

.form_bottom_row textarea, .form_bottom_row input {
    font-family: 'SimplePro-H', sans-serif;
    letter-spacing: 0;
    padding: 4px;
}

.blueimp-gallery {
    overflow: unset;
    overflow-x: clip;
}

.blueimp-gallery > .next, .blueimp-gallery > .prev {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.blueimp-gallery > .indicator {
    bottom: -60px !important;
}

.blueimp-gallery > .title {
    top: unset !important;
    bottom: -40px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    white-space: nowrap;
}

.right_block__gallery {
    width: 96%;
    aspect-ratio: 16 / 9;
    background-color: #303030;
    margin: 80px auto;
    margin-bottom: 0;
}

.right_block__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty_description {
    padding: 16px 32px;
    background-color: #2d2d2d;
    text-align: center;
    width: fit-content;
    margin: 120px auto;
    font-size: 1.1em;
    line-height: 1.5em;
}

.empty_description a {
    color: #78C2FF;
}

.right_block__parting_words {
    margin: 130px auto 50px;
    max-width: 380px;
    text-align: center;
}

.right_block__parting_words .line {
    max-width: 60%;
    opacity: .5;
    margin: 32px auto;
}

.right_block__parting_words .line:last-child {
    display: none;
}

.parting_words__title {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 3em;
}

.parting_words__item {
    margin: auto;
    line-height: 1.5em;
}

.parting_words__content {
    white-space: pre-wrap;
    font-family: 'SimplePro-H', sans-serif;
}

.parting_words__name {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 24px;
}

.parting_words__link {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.parting_words__link.spotify {
    height: 152px;
}

.parting_words__link iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

@media (min-width: 768px) {

    .center_block {
        overflow-y: auto;
        max-height: calc(100dvh - 124px);
    }

    /*.description_and_form {*/
    /*    flex-direction: column;*/
    /*}*/

    .mention_form {
        margin-top: 0;
    }

    .right_block__description {
        margin-top: 80px;
    }

    .form_bottom_row {
        flex-wrap: nowrap;
    }

    .form_bottom_row input[name="displayName"] {
        order: 1;
        width: 100%;
    }

    .form_bottom_row input[name="link"] {
        order: 2;
        margin: 0 0 0 12px;
    }
}


.gallery-caption {
    margin-top: 1rem;
    text-align: right;
    font-family: sans-serif;
    margin-bottom: 80px;
    margin-right: 13px;
    min-height: 3.5rem;
}
.gallery-caption .title {
    margin: 0 0 0.5rem;
}
.gallery-caption .credits {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* END CENTER BLOCK */