/* Team Member Photo Styling */
.member-photo,
.featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* More natural portrait aspect ratio */
    background-color: #f4f4f4; /* Placeholder background */
}

.member-photo img,
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    object-position: center;
    transition: transform 0.3s ease;
}

.member-photo:hover img,
.featured-image:hover img {
    transform: scale(1.02); /* Subtle zoom */
}

/* Ensure images are centered and fully visible */
.member-photo,
.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Overlay styling */
.member-photo .member-overlay,
.featured-image .featured-quote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .member-photo,
    .featured-image {
        aspect-ratio: 1/1; /* Square on mobile */
    }
}

/* Ensure maximum width doesn't distort images */
.member-card,
.featured-section {
    max-width: 100%;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .member-photo,
    .featured-image {
        height: 400px; /* Fallback height */
    }
}
