/* Expanding Gallery Block Styles */

.expanding-gallery-block {
 
    position: relative;
}

.expanding-gallery-title {
    font-size: var(--typography-size-h2);
    font-weight: var(--typography-weight-bold);
    color: var(--color-black);
    text-align: center;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expanding-gallery-subtitle {
    font-size: var(--typography-size-16);
    color: var(--color-black);
    text-align: center;
    margin: 0 0 60px;
    line-height: 1.6;
}

.gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 45vh;
    gap: 10px;
    overflow: hidden;
}

.item {
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: flex 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.item:hover {
    flex: 7;
}

.item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.6s ease;
    opacity: 0;
}

.item:hover .item-content {
    transform: translateY(0);
    opacity: 1;
}

.item-title {
    font-size: var(--typography-size-h4);
    font-weight: var(--typography-weight-bold);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-description {
    font-size: var(--typography-size-14);
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-wrap {
        height: 37vh;
    }
    
    .item:hover {
        flex: 5;
    }
}

@media (max-width: 768px) {
    .expanding-gallery-block {
        padding: 60px 0;
    }
    
    .expanding-gallery-title {
        font-size: var(--typography-size-h3);
        margin-bottom: 15px;
    }
    
    .expanding-gallery-subtitle {
        margin-bottom: 40px;
    }
    
    .gallery-wrap {
        height: 37vh;
        flex-direction: column;
        gap: 10px;
    }
    
    .item {
        flex: 1;
        transition: flex 0.6s ease;
    }
    
    .item:hover {
        flex: 3;
    }
    
    .item-content {
        padding: 30px 20px 20px;
    }
    
    .item-title {
        font-size: var(--typography-size-h5);
    }
}

@media (max-width: 480px) {
    .gallery-wrap {
        height: 30vh;
    }
    
    .item:hover {
        flex: 2.5;
    }
    
    .item-content {
        padding: 20px 15px 15px;
    }
    
    .item-title {
        font-size: var(--typography-size-16);
    }
    
    .item-description {
        font-size: var(--typography-size-13);
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .gallery-wrap {
        height: 25vh;
    }
    
    .item:hover {
        flex: 2;
    }
    
    .item-content {
        padding: 15px 10px 10px;
    }
    
    .item-title {
        font-size: var(--typography-size-14);
    }
    
    .item-description {
        font-size: var(--typography-size-12);
    }
}
