.container {
    display: grid;
    background-color: #000000ff;
    gap: 1rem;
    padding-top: 0.5rem;
}

.campaign-card.hero {
    display: grid;
}

.hero {
    color: white;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero h2 {
    font-weight: 700;
}

.campaign-card.wide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c7a462ff;
}

.campaign-card.short {
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-card.image-item {
    position: relative;
    background: #c7a462ff;
    cursor: pointer;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.image-item:hover .image-container img {
    transform: scale(1.1) translateY(-10%);
}

.color-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #c7a462ff;
    z-index: 2;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #c7a462ff;
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 3;
}

.image-item:hover .text-overlay {
    transform: translateY(0);
}

 @media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(9, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 1rem;
        padding: 0.5rem;
        height: 80vh;
        width: auto;
    }

    .campaign-card {
        grid-column: span 3;
        grid-row: span 3;
    }

    .campaign-card.hero {
        grid-row: span 4;
    }

    .campaign-card.wide {
        grid-column: span 6;
    }

    .campaign-card.short {
        grid-row: span 2;
    }
}

@media (min-width: 993px) {
    .container {
        display: block;
        columns: 2;
        gap: 0.5rem;
        width: auto;
        height: unset;
    }

    .campaign-card {
        margin-bottom: 0.5rem;
    }
}

