.centered-content {
    margin: 90px auto 0;
    max-width: 1500px;
    padding: 0 10px;
}

.centered-content h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    position: relative;
    padding-bottom: 15px;
}

.centered-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), #ff8f50);
    border-radius: 2px;
}

.gallery-container {
    max-width: 1500px;
    margin: 2rem auto;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    background: white;
    padding: 10px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active img {
    transform: scale(1);
}

@media (max-width: 768px) {
    .centered-content {
        padding: 0 15px;
    }

    .centered-content h1 {
        font-size: 2rem;
        margin: 1.5rem 0;
    }

    .gallery-container {
        padding: 20px;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .centered-content h1 {
        font-size: 1.8rem;
    }

    .gallery-container {
        padding: 15px;
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 200px;
    }
}