/* Photo gallery (partners) section */
.photo-gallery {
    padding: 3rem 0;
    background: #f9fafb;
}

.photo-gallery h4 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.photos .item {
    margin-bottom: 1rem;
}

.photos img {
    height: 60px;
    object-fit: contain;
    width: 100%;
    max-width: 180px;
}

/* Gallery Grid & Item */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* Ensures square shape */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.hover-text {
    font-family: 'Montserrat';
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .hover-text {
    opacity: 1;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 5px;
}

.modal-header {
    font-family: 'Montserrat';
    font-weight: bold;
}

.modal-image {
    max-height: 70vh;
    object-fit: contain;
}

.modal-description {
    font-family: 'Montserrat';
    font-style: italic;
    font-size: 1rem;
    color: #4b5563;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}