/* ===========================
   TABLET (1024px and below)
   =========================== */
@media (max-width: 1024px) {
    .gallery-grid {
        gap: 1rem;
        padding: 0 1.5rem;
    }
}

/* ===========================
   TABLET (768px and below)
   =========================== */
@media (max-width: 768px) {
    .profile-pic {
        width: 180px;
        height: 180px;
        justify-self: center;
    }

    .header-text {
        align-items: center;
        text-align: center;
        padding: 2rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .header {
        padding: 7vh 0 5vh;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .bio-section {
        padding: 2.5rem 0 3rem;
    }

    .bio-points li {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .gallery-grid {
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .gallery-section {
        padding: 2rem 0 8rem;
    }
}

/* ===========================
   MOBILE (480px and below)
   =========================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 6vh 0 4vh;
    }

    .bio-section {
        padding: 2rem 0 2.5rem;
    }

    .bio-points li {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .gallery-item-wrap {
        /* Disable tilt on touch devices */
        transform: none !important;
    }

    .gallery-section {
        padding: 1.5rem 0 5rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .gallery-item-wrap,
    .bio-points li {
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }

    .gallery-item {
        transition: none !important;
    }

    .header {
        transform: none !important;
    }

}
