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

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

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

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

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

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

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

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