/* ===================================
   Building Photos Gallery Styles (buildings.html)
   =================================== */

/* Building Photos Gallery */
.building-photos {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

    .building-photos h4 {
        color: var(--green-primary);
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        letter-spacing: -0.3px;
    }

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    /* Latest photos (first in array) appear on the left */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.photo-item {
    flex: 1 1 280px;
    /* Equivalent to grid minmax(280px, 1fr) */
    max-width: calc(33.333% - 1rem);
    /* 3 columns on larger screens */
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

    .photo-item:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--green-light);
    }

.photo-container {
    width: 100%;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .photo-container img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

.photo-item:hover .photo-container img {
    transform: scale(1.05);
}

.photo-info {
    padding: 1.25rem;
}

    .photo-info h5 {
        color: var(--text-dark);
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-align: right;
        letter-spacing: -0.2px;
    }

    .photo-info p {
        color: var(--text-dark);
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.6;
        text-align: right;
        margin: 0;
    }

.photo-date {
    display: block;
    margin-top: 0.5rem;
    padding: 0;
    background: var(--green-bg);
    color: var(--green-dark);
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: bottom;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-bg) 0%, var(--yellow-bg) 100%);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

/* Responsive Design - Gallery */
@media (max-width: 1024px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive Photo Gallery */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .photo-item {
        flex: 1 1 100%;
        /* Full width on tablets */
        max-width: 100%;
    }

    .photo-container {
        min-height: 250px;
    }

    .building-photos h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        gap: 1rem;
    }

    .photo-item {
        flex: 1 1 100%;
        /* Full width on mobile */
        max-width: 100%;
    }

    .photo-container {
        min-height: 200px;
    }

    .photo-info {
        padding: 1rem;
    }

        .photo-info h5 {
            font-size: 1rem;
        }

        .photo-info p {
            font-size: 0.9rem;
        }
}
