.recgallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 100%;
    margin: 30px auto;
    gap: 20px;
    overflow: hidden;
}

.recgallerysmall{
    grid-template-columns: 1fr 1fr 1fr;
    width: 80%;
}

.maingalleryitem {
    grid-column: 1 / span 2;
}

.recgalleryitemcontainer {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
}

.recgalleryitemcontainerimgcontainer{
    width: 100%;
    margin-bottom: 10px;
    height: 40vh;
}

.small .recgalleryitemcontainerimgcontainer{
    height: 30vh;
}

.recgalleryitemcontainerimgcontainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.reccontainer2item {
    background-color: rgba(233, 233, 233, 0.587);
    backdrop-filter: blur(25px);
    border-radius: 1rem;
    text-wrap: wrap;
    padding: 10px 17px;

}

.wrapword {
    white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    white-space: pre-wrap;       /* css-3 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    white-space: -webkit-pre-wrap; /* Newer versions of Chrome/Safari*/
    word-break: break-all;
    white-space: normal;
}

.recsearchbar{
    border: 4px solid #1b486c;
}

@media screen and (max-width: 1399px) {
}

@media screen and (max-width: 1049px) {
    .recgallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .recgallerysmall{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        width: 70%;
    }
}

@media screen and (max-width: 699px) {

    .recgallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .maingalleryitem {
        min-height: 40vh;
        grid-column: 1 / span 1;
        grid-row: 1 / span 2;
    }

    .maingalleryitem .recgalleryitemcontainerimgcontainer{
        height: 80vh;
    }

    .recgallerysmall{
        width: 85%;
    }
}