/* Mobile-only fixes for who-we-are page pc-PhotoCard issues */
/* This file only targets mobile devices and specific page to avoid desktop conflicts */

@media (max-width: 767px) {
  /* Page-specific targeting to avoid affecting other pages */
  [data-page="Who We Are"] .pc-PhotoCard {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
    background-color: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    text-decoration: none !important;
    color: inherit !important;
    aspect-ratio: 350/525 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 525px !important;
    max-height: 700px !important;
  }
  
  
  /* Image positioning for mobile only */
  [data-page="Who We Are"] .pc-Image {
    position: relative !important;
    grid-row: 1/3 !important;
    grid-column: 1/2 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    /* Fix mobile sizing issues from styles.css */
    left: unset !important;
    transform: none !important;
    bottom: unset !important;
  }
  
  [data-page="Who We Are"] .pc-Image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: relative !important;
    left: unset !important;
    transform: none !important;
    bottom: unset !important;
    max-width: 100% !important;
  }
  
  [data-page="Who We Are"] .pc-Content {
    grid-row: 1/3 !important;
    grid-column: 1/2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 25px !important;
    z-index: 1 !important;
  }
  
  /* Mobile gradient overlay - restore gradients instead of grey boxes */
  [data-page="Who We Are"] .pc-Image:after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 63% !important;
    background: linear-gradient(to bottom, rgba(247, 247, 247, 0.95), transparent) !important;
    border-radius: 15px !important;
  }
}