.gallery-expand-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-width: 100%;
    max-width: 100%;
    width: calc(100% - 20px);
    height: 180px;
    padding: 5px 5px 5px 5px;
}

@media screen and (max-width: 1500px) {
    .gallery-expand-card {
        min-width: 280px;
   }
    .gallery-expand-card .gallery-expand-item-card:nth-child(n + 6) {
        display: none;
   }
}

@media screen and (max-width: 1300px) {
    .gallery-expand-card {
        min-width: 280px;
   }
    .gallery-expand-card .gallery-expand-item-card:nth-child(n + 5) {
        display: none;
   }
}

@media screen and (max-width: 1050px) {
    .gallery-expand-card {
        min-width: 280px;
   }
    .gallery-expand-card .gallery-expand-item-card:nth-child(n + 4) {
        display: none;
   }
}

@media screen and (max-width: 800px) {
    .gallery-expand-card {
        min-width: 280px;
   }
    .gallery-expand-card .gallery-expand-item-card:nth-child(n + 3) {
        display: none;
   }
}

.gallery-expand-card .gallery-expand-item-card {
    position: relative;
    overflow: hidden;
    min-width: 25px;
    margin: 5px;
    background-size: auto 120%;
    background-position: center;
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);

    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: repeat !important; 
}

.gallery-expand-card .gallery-expand-item-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 175px;
    background: linear-gradient(to top, #00000014, transparent);
  }

.gallery-expand-card .gallery-expand-item-card.active {
    flex-grow: 10000;
    transform: scale(1);
    max-width: 600px;
    margin: 0px;
    border-radius: 20px;
    background-size: auto 100%;
   /*&:active {
        transform:scale(0.9);
   }
   */
}
.gallery-expand-card .gallery-expand-item-card.active .shadow {
    box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -100px black;
    z-index: 100;
}
.gallery-expand-card .gallery-expand-item-card.active .label {
    bottom: 0px;
    left: 20px;
    z-index: 100;
}
.gallery-expand-card .gallery-expand-item-card.active .label .info > div {
    left: 0px;
    opacity: 1;
    white-space: pre-line;
}
.gallery-expand-card .gallery-expand-item-card:not(.active) {
    flex-grow: 1;
    border-radius: 10px;
}
.gallery-expand-card .gallery-expand-item-card:not(.active) .shadow {
    bottom: -40px;
    box-shadow: inset 0 -120px 0px -120px black, inset 0 -120px 0px -100px black;
}
.gallery-expand-card .gallery-expand-item-card:not(.active) .label {
    bottom: 0px;
    left: 20%;
}
.gallery-expand-card .gallery-expand-item-card:not(.active) .label .info > div {
    left: 20px;
    opacity: 0;
}
.gallery-expand-card .gallery-expand-item-card .shadow {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 120px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
.gallery-expand-card .gallery-expand-item-card .label {
    display: flex;
    position: absolute;
    right: 0px;
    height: 40px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
.gallery-expand-card .gallery-expand-item-card .label .icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 15px;
    max-width: 15px;
    height: 15px;
    border-radius: 100%;
    background-color: white;
    color: var(--defaultBackground);
}
.gallery-expand-card .gallery-expand-item-card .label .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    color: white;
    white-space: pre;
}
.gallery-expand-card .gallery-expand-item-card .label .info > div {
    position: relative;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.5s ease-out;
}
.gallery-expand-card .gallery-expand-item-card .label .info .main {
    font-weight: bold;
    font-size: 1.2rem;
}
.gallery-expand-card .gallery-expand-item-card .label .info .sub {
    transition-delay: 0.1s;
}
