/* Global settings for the about page */
:root {
    --about-text-main: #2b2b2a;
    --about-text-secondary: #7f7f7f;
}

body {
    font-family: 'Inter', sans-serif;
}

.about-section {
    background-color: #fff;
    padding: 3.125rem 1.25rem;
    display: flex;
    justify-content: center;
}

.about-section__wrapper {
    max-width: 87.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.125rem;
}

.about-section__text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

.about-section__title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--about-text-main);
}

.about-section__subtitle {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--about-text-secondary);
    margin: 0;
}

.about-section__description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5; /* Adjusted for better readability */
    color: var(--about-text-secondary);
}

.about-section__description p {
    margin-bottom: 1em;
}

.about-section__grid {
    display: grid;
    grid-template-columns: 36rem 1fr;
    grid-template-rows: 31.6875rem 31.6875rem;
    gap: 0.625rem;
    height: 64rem;
    width: 100%;
}

.about-section__grid-item {
    position: relative;
    border-radius: 0.4375rem;
    overflow: hidden;
}

.about-section__grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.about-section__grid-img--portrait {
    /* From Figma: height: 152.23%, top: -7.35% */
    height: 152.23%;
    position: absolute;
    top: -7.35%;
    left: 0;
}


.about-section__grid-item--video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section__grid-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.about-section__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.about-section__play-button {
    position: relative;
    z-index: 3;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.about-section__play-icon {
    width: 3.25rem;
    height: 3.5rem;
    color: white;
}

/* Tablet Styles */
@media (max-width: 89.9375rem) {
    .about-section__wrapper {
        max-width: 60.0625rem;
    }

    .about-section__grid {
        grid-template-columns: 1fr; /* Fallback for smaller tablets */
        height: auto;
    }
    
    /* Re-apply two columns if space allows */
    @media (min-width: 48rem) and (max-width: 89.9375rem) {
        .about-section__grid {
            grid-template-columns: 36rem 1fr;
            grid-template-rows: 31.6875rem 31.6875rem;
            height: 64rem;
        }
    }
}

/* Mobile Styles */
@media (max-width: 47.9375rem) {
    .about-section {
        padding: 1.875rem 0.9375rem;
    }

    .about-section__wrapper {
        gap: 1.875rem;
    }

    .about-section__text-container {
        gap: 1.25rem;
    }

    .about-section__subtitle {
        font-size: 3rem;
    }

    .about-section__grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 31.6875rem);
        height: auto;
    }

    .about-section__grid-item:nth-child(1) { order: 1; }
    .about-section__grid-item:nth-child(2) { order: 2; }
    .about-section__grid-item:nth-child(3) { order: 3; }
    .about-section__grid-item:nth-child(4) { order: 4; }

    .about-section__grid-img--portrait {
        height: 100%;
        position: relative;
        top: 0;
    }
}
