.comment {
    align-items: flex-start; /* En lugar de 'stretch', alinea los items al inicio */
}

/* 2. Da una altura fija y predecible al textarea en lugar de una porcentual */
.typecomment {
    height: unse; /* Puedes ajustar este valor, por ejemplo a 100px si lo prefieres más alto */
    min-height: 80px; /* Asegura que no sea más pequeño que esto */
}
/* --- Overlay de Carga para el Reproductor de Audio --- */


footer {
    margin-top: 70px;
}

.j_spec_cat {
    padding: 8rem 2rem 2rem;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 340px;
    width: 90% !important;
    max-width: 300px;
}

.lead_cat {
    font-style: italic;
}

.dateinput {
    width: 70px;
    margin: 0 10px;
}

.commented {
    border-bottom: 1px solid #777;
}

.comments_photo_container {
    text-align: center;
}

.typecomment {
   
    width: 100%;
    background: transparent;

    border: 1px solid #777;
    color: white;
}

.comment_image {
    border: 10px solid #eee;
}

.comments_wrapper {
    padding-right: 0px;
}

.comment {
    padding: 30px 12px;
    background: #222;

    border-radius: 10px;
    margin-bottom: 30px;
    margin: 20px 10px;
}

.comment_content {
    font-weight: bolder;
}

.comment_title {
    width: 80%;
    font-size: 16px;
    margin: 5px 5px 18px 5px;
    color: #25cc91;
}

.comment_add_un {
    margin: 5px;
}

.comment_send {
    margin-top: 15px;
}

.comments_photo_container {
    cursor: pointer;
    flex-direction: column;
    display: flex;
    align-items: center;
    max-width: 500px;
}

html {
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

ul.ks-cboxtags {
    list-style: none;
    padding: 5px;
    margin: 0;
}

ul.ks-cboxtags li {
    display: inline;
}

ul.ks-cboxtags li label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 139, 139, 0.3);
    color: #333;
    border-radius: 6px;
    white-space: nowrap;
    margin: 3px 2px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
    font-size: 12px;
}

ul.ks-cboxtags li label {
    padding: 2px 2px;
    cursor: pointer;
}

ul.ks-cboxtags li label::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    padding: 2px 6px 2px 2px;
    content: '\f067';
    transition: transform 0.3s ease-in-out;
}

ul.ks-cboxtags li input[type='checkbox']:checked+label::before {
    content: '\f00c';
    transform: rotate(-360deg);
    transition: transform 0.3s ease-in-out;
}

ul.ks-cboxtags li input[type='checkbox']:checked+label {
    border: 2px solid #4df2b8;
    background-color: #24cc91;
    color: #fff;
    transition: all 0.2s;
}


ul.ks-cboxtags li input[type='checkbox'] {
    position: absolute;
    opacity: 0;
}

ul.ks-cboxtags li input[type='checkbox']:focus+label {
    border: 2px solid #e9a1ff;
}


ul li {
    cursor: pointer;
}

#background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10999;
}


.items_sheader {
    padding: 10px 10px 10px 30px;
    border-radius: 20px;
    margin: 20px 0px;

    background: #1ecb92;
    position: sticky;
    top: 70px;
    z-index: 90;
}

.items_sheader h5 {
    margin: 0;
    font-weight: bolder;
}

.titulobusqueda {
    text-decoration: none;
    -webkit-line-clamp: 4;
}

.miniaturabusqueda {
    background-size: cover;
}

div,
canvas {
    transition: all 0.2 linear;
    -moz-transition: all 0.2 linear;
    -webkit-transition: all 0.2 linear;
}

.breathe {
    -webkit-animation: breathing 0.5s ease-out infinite normal;
    animation: breathing 0.5s ease-out infinite normal;
}

@-webkit-keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    25% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    60% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}

@keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }

    25% {
        -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
        transform: scale(1.2);
    }

    60% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }

    100% {
        -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
        transform: scale(1.2);
    }
}

.openseadragon-container {
    border-radius: 0 !important;
    background: #111 !important;
    min-height: unset !important;
    height: 100% !important;
}

#map {
    position: relative;
    bottom: 0;
    width: 100%;
}

.marker {
    background-image: url('https://archivolaunion.cl/pin1.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

input::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #888;
    opacity: 1;
    /* Firefox */
}

input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #888;
}

input::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #888;
}

.cajabusqueda {
    transition:
        0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
        0.3s box-shadow,
        0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
    margin: 0 15px;
    min-width: 190px;
}

.cajabusqueda:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

label {
    color: white;
}

.selectize-control {
    width: 100px;
}

#fy-selectized {
    width: 40px !important;
}

#ty-selectized {
    width: 40px !important;
}

.ui-datepicker-calendar {
    display: none;
}

.rowcenter {
    justify-content: center;
    align-items: center;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgb(255 255 255 / 50%);
}

a:focus {
    color: white;
}

.btn-primary {
    border: unset;
    font-weight: bolder;
    border-radius: unset;
}

.fondodms {
    box-shadow: inset 0px -50px 50px 10px #111;
}

body {
    background: #111;
    color: white;
    font-family: Lato;
}



@media (min-width: 768px) {
    .card-columns {
        column-count: 4;
    }
    
   
}

@media (min-width: 992px) {
    .card-columns {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .card-columns {
        column-count: 5;
    }
}

@media (max-width: 500px) {
    .centermobile {
        margin-left: 0px;
        padding-left: 0px;
    }
    
}

a {
    color: white;
}

a:hover {
    color: wheat;
}

.card {
    border: none !important;

    background-color: transparent;
}

.minuaturabusqueda {
    background-image: url('/images/spinner.gif');
}

.tipobusqueda {
    color: #48bb93 !important;
}

.cajabusqueda {
    background-color: #222 !important;
    color: #ccc !important;
    box-shadow: -1px 1px 18px 0px rgba(0, 0, 0, 0.41);
    margin-bottom: 30px !important;
    cursor: pointer;
}

.cbtexto {
    color: #ccc !important;
}

p {
    color: #ccc !important;
}

mark {
    background-color: #038160;
    color: white;
}


@media (min-width: 601px) {
    .comments_photo_container {
        min-width: 400px;
    }

    .comment_card {
        margin: 5px 5px 5px 5px;
        border-bottom: 1px solid #777;
        font-style: italic;
        padding: 0;
    }

    .photo-item {
        position: sticky;
        top: 80px;
    }

    #ctitle {
        display: flex;
        padding-left: 300px;
        font-style: unset;
    }

    .openseadragon-container.zoomed {
        height: 100vh !important;
        z-index: 10;
    }

    .display-5 {
        width: 50%;
    }

    .jumbotron {
        width: 60vw;
    }

    .col.menu {
        width: 30vw;
        max-width: 300px;
        padding-left: 50px;
    }

    .fa-chevron-up {
        margin: 0;
    }

    

    #items_container {
        padding-right: 20px;
    }

    #social_actions {
        margin-left: 0;
        font-size: 25px;
        margin-top: -7px;
    }

  

    .menu {
        padding-left: 30px;
    }

    #togglemenu {
        display: none;
    }

    .lead_cat {
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .subtitleText {
        font-size: 1rem;
    }
   
    .photo-item {
        max-width: 90%;
    }

    .comment_image {
        max-width: 100%;
    }

    .comments_wrapper {
        margin-top: 20px;
        padding: 0;
    }

    .comment {
        margin: 0px;
    }

    .comment_content {
        font-weight: bolder;
        font-style: italic;
    }
    

    .comment_card {
        margin-left: 5px;
        border-bottom: 1px solid #777;
    }

    #ctitle {
        display: flex;
        justify-content: center;
        font-style: unset;
    }

    .openseadragon-container.zoomed {
        height: calc(90vh - 40px) !important;
        z-index: 10;
    }

    .comment {
        margin-right: 5px;
        justify-content: center;
        margin-bottom: 1.2rem;
    }

    .bmf_c {
        border-left: 1px solid #666;
    }

    

    #bmenu {
        padding: 20px;
        background: rgba(0, 0, 0, 0.65);
        min-width: 100%;
        height: 100%;
    }

    .air-datepicker-global-container {
        z-index: 20000;
    }

    .cat_container {
        margin-left: 10px !important;
    }

    .lead_cat {
        max-width: 80%;
    }

    .titulobusqueda {
        text-decoration: none;
        -webkit-line-clamp: 3;
    }


    .menu {
        display: none;
    }

    .icontent {
        padding: 0;
        margin-left: 7px;
        min-height: 100vh;
    }

    

    .col.menu {
        position: fixed;
        width: 100vw;
        height: 0;
        overflow: auto;
        z-index: 10000;
        bottom: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    #togglemenu {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 0;
        width: 100vw;
    }

    #menuback {
        position: fixed;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        top: 0;
        z-index: 9999;
        display: none;
    }

    #toggler {
        width: 80px;
        background: black;
        height: 40px;
        border-radius: 60px 60px 0px 0px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 5px;
        border-top: 2px solid #47bc92;
    }

    .togglershadow {
        -webkit-box-shadow: 2px -20px 79px 0px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 2px -20px 79px 0px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 13px 40px 40px rgb(0 0 0 / 35%);
    }

    #accordian {
        width: 100%;
        margin-top: 0;
        background: black;
        padding-bottom: 40px;
        height: 120vh;
    }

    #contw {
        margin: 0;
    }
    
}

@media (max-width: 429px) {
    #items_container {
        margin-right: 7px;
        padding-right: 0px;
    }

    .cajabusqueda {
        max-width: 180px;
        margin: 5px;
        min-width: 140px;
    }

    .miniaturabusqueda {
        min-width: unset;
    }

    .titulobusqueda {
        text-decoration: none;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1601px) {
    .cajabusqueda {
        min-width: 250px;
        max-width: 300px;
    }
}

