﻿.gallery-section {
    position: relative;
    padding: 40px 0px;
    background: #000;
    color: #fff;
}
    .gallery-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top,rgba(var(--primary-bg-rgb), 0) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.9) 70%, rgba(0, 0, 0, 1) 100%);
        pointer-events: none;
        z-index: 1;
    }
    .gallery-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-bg) 0%, #000000 100%);
        pointer-events: none;
        z-index: 1;
    }

.image-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 5px;
}

.image-box {
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
    height: 300px;
}

    .image-box.large {
        flex: 2;
    }

    .image-box.small {
        flex: 1;
    }


    /* image */
    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
        z-index:2;
    }

/* text overlay */
.text-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    z-index:3;
}

/* typography */
.large-text .title-gallery {
    font-size: 2.5rem;
    font-weight: normal;
}

.large-text .subtitle {
    font-size: 1.6669rem;
    font-style: italic;
}

.small-text .title-gallery {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.small-text .subtitle {
    font-size: 1.6669rem;
    opacity: 0.9;
}

/* size label (for demo only) */
.size-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #000;
    background: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 2px;
}

.image-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3); /* 30% black */
    z-index: 2;
}

.text-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    z-index: 3;
}

.image-box img {
    transition: transform 0.6s ease;
}

.image-box:hover img {
    transform: scale(1.08);
}
