/* === Mobile-first styles === */
.main {
    width: 100vw;
    max-width: 100vw;
    margin: 24px auto;
    padding: 48px 8vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-section {
    display: flex;
    flex-direction: column;
    align-items: anchor-center;
    width: 100%;
    margin-top: 5vw;
}

.images-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.title {
    font-size: clamp(8px, 4vw, 32px);
    color: var(--orange);
    text-align: left;
    margin: 8px 0;
    line-height: 1.15;
    text-transform: uppercase;
}

.location {
    font-size: clamp(8px, 4vw, 32px);
    color: var(--gray);
    text-align: left;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.image {
    width: 90vw;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px auto;
    display: block;
    border-radius: 12px;
}

@media (min-width: 900px) {
    .main {
        margin: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100vw;
        height: 100vh;
        padding: clamp(60px, 6vw, 80px);
        box-sizing: border-box;
    }

    .text-section {
        flex: 0 0 25%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-right: 0;
        margin: 0;
    }

    .images-section {
        flex: 1 1 75%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        max-width: 1200px;
        max-height: 650px;
    }

    .title {
        font-size: clamp(1.8rem, 2.6vw, 2.5rem);
        text-align: left;
        margin: 0 0 6px 0;
    }

    .location {
        font-size: clamp(1.05rem, 1.6vw, 1.4rem);
        text-align: left;
        margin-bottom: 20px;
    }

    .image {
        width: 65%;
        height: auto;
        max-height: clamp(300px, 40vh, 600px);
        margin: 0;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .images-section.jordan .item3,
    .images-section.walczyszyn .item3,
    .images-section.puravida .item3 {
        grid-row: 1 / span 2;
        grid-column: 2;
        width: auto;
        height: 65%;
        max-height: inherit;
    }

    .images-section.rushstreet .item3,
    .images-section.urbanform .item3,
    .images-section.ziomecki .item3 {
        grid-column: 1 / span 2;
        grid-row: 2;
        justify-self: center;
        width: 32%;
    }

    .images-section.rushstreet .item3 img,
    .images-section.urbanform .item3 img,
    .images-section.ziomecki .item3 img {
        justify-self: center;
        width: auto;
    }

    .image:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    /* Modal styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal.show {
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 1;
    }

    .modal-content {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }

    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
    }

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
    }
}