.box-about {
    background-color: rgb(240, 240, 240);
}

.box-about-title,
.box-about-title1 {
    color: #000;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-gap: 20px;
    grid-auto-flow: dense;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.photo-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.wide {
    grid-column: span 2;
}

.tall {
    grid-row: span 2;
}

.large {
    grid-column: span 2;
    grid-row: span 2;
}

footer {
    text-align: center;
    margin-top: 60px;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .photo-wall {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .wide,
    .large {
        grid-column: span 1;
    }

    .tall {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .photo-wall {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .photo-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}