body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.content-section {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column; /* Ovo je važno za mobilni raspored */
}

.content-section h2 {
    text-align: center;
    color: #fff;
    background: #1a1f4c;
    padding: 10px;
    border-radius: 8px;
    border: 3px solid #ff6600;
    width: 100%;
    margin-bottom: 20px;
     order: 1;
}

.info-section {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
     order: 2;
    width: 100%;
    margin-bottom: 20px;
}

.gallery-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    order: 3;
    width: 100%;
}

.gallery-wrap figure {
    flex: 1 1 calc(33.333% - 10px);
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
}

.gallery-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #ff6600;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-wrap img:hover {
    transform: translateY(-5px);
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
}

@media (min-width: 769px) {
    .content-section {
        flex-direction: row;
    }

    .info-section {
        flex: 1 1 30%;
        width: auto;
        margin-bottom: 0;
    }

    .gallery-wrap {
        flex: 1 1 65%;
        width: auto;
    }

}

@media (max-width: 768px) {
    .content-section {
        padding: 30px 15px;
        
    }
    
     .content-section h2 {
        order: 1; /* naslov prvi */
    }

    .info-section {
        order: 2; /* opis drugi */
    }
    
    .gallery-wrap {
       order: 3; /* galerija zadnja */
    }
    
    .gallery-wrap figure {
        flex: 1 1 calc(50% - 10px);
    }
}