.section-name {
    text-align: center;
}

.home-section {
    min-height: 400px;
}

#hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;


    font-family: "Anek Malayalam", sans-serif;
    text-align: center;
    .button-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;

        a {
            width: fit-content;
            color: var(--primary);
    		&:hover {
    			color: var(--secondary);
    		}

            &:first-child {
                justify-self: end;
            }
        }
    }

}

#highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 16px;
    row-gap: 32px;

    h2 {
        grid-column: 1 / span 3;
        order: 1;
    }
}

.highlight {
    order: 3;
    cursor: pointer;
    text-align: center;

    input {
        display: none;
    }

    img {
        width: 100%;
        object-fit: cover;
    }

    span {
        font-family: "Anek Malayalam", sans-serif;
        color: var(--text);
    }

    p {
        margin: 0;
    }

    p, div {
        display: none;
    }

    a + a {
        margin-left: 10px;
    }

    user-select: none;
    -webkit-user-select: none;

    &:has(input:checked) {
        cursor: default;
        text-align: justify;

        height: 280px;
        grid-column: 1 / span 3;
        order: 2;

        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-template-rows: min-content 1fr min-content;
        gap: 16px;

        img {
            grid-row: 1 / span 3;
            align-self: center;
        }

        span {
            font-size: 1.25rem;
        }
        p {
            justify-self: stretch;
        }

        p, div {
            display: block;
        }

        user-select: unset;
        -webkit-user-select: unset;

        @media (max-width: 800px) {
            display: flex;
            flex-direction: column;
            height: unset;

            span {
                text-align: center;
                order: -1;
            }

            img {
                max-height: 280px;
                width: auto;
            }

            div {
                margin: 0 auto;
            }

            a + a {
                margin-left: 20px;
            }
        }
    }

    &:nth-child(1) {
        img { view-transition-name: highlight-img-1; }
        .title { view-transition-name: highlight-title-1; }
    }
    &:nth-child(2) {
        img { view-transition-name: highlight-img-2; }
        .title { view-transition-name: highlight-title-2; }
    }
    &:nth-child(3) {
        img { view-transition-name: highlight-img-3; }
        .title { view-transition-name: highlight-title-3; }
    }
    &:nth-child(4) {
        img { view-transition-name: highlight-img-4; }
        .title { view-transition-name: highlight-title-4; }
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*) {
      animation-duration: 0s;
    }

}

#posts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    p {
        text-align: center;
       	max-width: 500px;
    }

    div {
  		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 20px;

        .social-media-icon {
    		fill: var(--text);
    		width: 20px;
    		height: 20px;

    		&:hover {
    			fill: var(--text);
    			width: 20px;
    			height: 20px;
    		}
    	}
    }
}
