html {
    height: fit-content;
}

.main-container {
    height: fit-content;
}

.heading-text {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 2rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 1200px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.card-inner-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.card-inner-wrapper img,
.about-photo {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    flex: none;
    border-radius: 20px;
    object-fit: cover;
    object-position: center 18%;
    border: 1px solid var(--line);
}

.card-inner-wrapper p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-text-primary);
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    .main-container {
        padding: 1rem;
    }

    .main-container h1 {
        font-size: 2rem;
        text-align: center;
    }

    .card {
        padding: 1rem;
        margin: 1rem 0;
    }

    .card-inner-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .card-inner-wrapper img,
    .about-photo {
        width: min(72vw, 260px);
        max-width: 260px;
        height: auto;
        aspect-ratio: 3 / 4;
        margin: 0 auto;
        align-self: center;
        object-fit: cover;
        object-position: center 18%;
    }

    .card-inner-wrapper p {
        font-size: 1rem;
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .card-inner-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .card-inner-wrapper img,
    .about-photo {
        width: min(72vw, 300px);
        aspect-ratio: 3 / 4;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .card-inner-wrapper {
        justify-content: space-between;
    }

    .card-inner-wrapper img,
    .about-photo {
        width: 320px;
        aspect-ratio: 3 / 4;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
}
