html, body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* hero sekcija */
.hero-section div {
    margin-top: 70px;
}

.hero-section h1 {
    color: rgb(115, 137, 160);
}

/* galerija sekcija */
.gallery-section {
    margin-top: 20px;
    padding: 80px 0;
}

.gallery-section h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: rgb(115, 137, 160);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgb(115, 137, 160, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* --- SEKCIJA RAZDVAJANJE --- */
.section-divider {
    height: 2px;
    width: 60%;
    background: linear-gradient(to right, transparent, rgb(115, 137, 160), transparent);
    margin: 60px auto;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section h2 {
        font-size: 1.6rem;
    }
}