.three-row-grid-902d5523 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.three-row-grid-902d5523 .grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Optional for softer edges */
}

.three-row-grid-902d5523 .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.three-row-grid-902d5523 .grid-item:hover img {
    transform: scale(1.05);
}

/* 3rd item (middle row) spans full width */
.three-row-grid-902d5523 .grid-item:nth-child(3) {
    grid-column: 1 / -1;
}

.three-row-grid-902d5523 .grid-item-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 2;
    pointer-events: none;
    text-align: center;
    width: 90%;
    color: #ffffff; /* Default color */
    text-shadow: 0px 1px 3px rgba(0,0,0,0.6); /* Helps readability */
}

.three-row-grid-902d5523 .grid-item-title span {
    padding: 2px 8px;
    border-radius: 3px;
}

@media (max-width: 767px) {
    /* Responsive adjustment: User wants mobile to be same structure as the image, 2-1-2 */
    .three-row-grid-902d5523 {
        gap: 10px;
    }
    .three-row-grid-902d5523 .grid-item-title {
        top: 10px;
        font-size: 14px;
    }
}
