.team-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.team-intro {
    text-align: center;
    margin-bottom: 60px;
}

.team-intro h2 {
    font-family: var(--accent-font-family);
    font-style: var(--accent-font-style);
    font-weight: var(--accent-font-weight);
    text-transform: var(--accent-text-transform);
    letter-spacing: var(--accent-letter-spacing);
    font-size: 2.5rem;
    color: #0f1f0f;
    margin-bottom: 20px;
}

.team-intro p {
    font-size: 1.2rem;
    color: #4a5a4a;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: minmax(200px, 35%) 1fr;
    gap: 24px 24px;
    margin: 40px 0;
    align-items: start;
}

.stylist-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: left;
    box-shadow: none;
    transition: none;
    display: contents;
}

.stylist-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.stylist-photo {
    width: 100%;
    height: 200px;
    max-height: 40vh;
    border-radius: 8px;
    background: transparent;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #4b7a4b;
    font-weight: 300;
    overflow: hidden;
    position: relative;
}

.stylist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Portrait images (taller than wide) */
.stylist-photo img.portrait {
    object-fit: contain;
    max-height: 50vh;
    animation-delay: 0.2s;
}

/* Landscape images (wider than tall) */
.stylist-photo img.landscape {
    object-fit: contain;
    max-height: 25vh;
    animation-delay: 0.4s;
}

/* Adjust grid column for landscape images */
.team-grid:has(.landscape) {
    grid-template-columns: 40% 1fr;
}

/* Square images */
.stylist-photo img.square {
    object-fit: contain;
    max-height: 40vh;
}

.stylist-name-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.stylist-name {
    font-size: 1.6rem;
    color: #0f1f0f;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stylist-title {
    font-size: 1.1rem;
    color: #4b7a4b;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stylist-experience {
    display: none;
}

.stylist-specialties {
    display: none;
}

.stylist-specialties h4 {
    font-size: 1rem;
    color: #0f1f0f;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .team-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .stylist-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .stylist-info {
        align-items: center;
    }
    .stylist-photo {
        width: 45%;
        max-width: 45%;
        margin-bottom: 16px;
    }
    
    /* Landscape images get more width on mobile too */
    .stylist-card:has(.landscape) .stylist-photo {
        width: 60%;
        max-width: 60%;
    }
    .specialty-tags {
        justify-content: center;
    }
    
    .stylist-bio {
        text-align: justify !important;
    }
    
    .instagram-overlay {
        display: none !important;
    }
    
    .instagram-mobile {
        display: block !important;
    }
}

.specialty-tag {
    background: #4b7a4b;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stylist-bio {
    font-size: 0.95rem;
    color: #4a5a4a;
    line-height: 1.8;
    text-align: left;
}

.instagram-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    display: block;
    transition: all 0.3s ease;
    z-index: 10;
    background-color: rgb(45, 56, 100);
    -webkit-mask: url('../images/Instagram_Glyph_Black.png') no-repeat center / contain;
    mask: url('../images/Instagram_Glyph_Black.png') no-repeat center / contain;
}

.instagram-overlay:hover {
    transform: scale(1.1);
}

.instagram-overlay img {
    display: none;
}

.instagram-mobile {
    display: none;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    background-color: rgb(45, 56, 100);
    -webkit-mask: url('../images/Instagram_Glyph_Black.png') no-repeat center / contain;
    mask: url('../images/Instagram_Glyph_Black.png') no-repeat center / contain;
}

.instagram-mobile:hover {
    transform: scale(1.1);
}

.instagram-mobile img {
    display: none;
}

.booking-cta {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f4f9f4 0%, #edf4ed 100%);
    border-radius: 12px;
}

.booking-cta h3 {
    font-size: 1.8rem;
    color: #0f1f0f;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-cta p {
    font-size: 1.1rem;
    color: #4a5a4a;
    margin-bottom: 25px;
}

