html {
    scroll-behavior: smooth;
}

/* General Wrapper Styling */
div .m-1-wrapper {
    border-radius: var(--border-radius);
    display: grid;
    place-items: center;
    padding: 0 0.3rem;
}


div .m-1-wrapper:hover.t-1-default {
    border: none;
}

.m-1-wrapper .t-1-text-overlay {
    margin: -2rem;
}
.m-1-wrapper p {
    font-size: var(--font-large);
}

#section-1,
#section-2,
#section-3,
#section-4,
#section-5,
#section-6,
#section-7,
#section-8,
#section-9,
#section-10 {
    width: 100%;
    padding-top: 2rem;
}

/* Typography for Headers */
.t-sportfolio h2,
.t-sportfolio h3,
.t-sportfolio h4,
.t-1__header2,
.t-1__header3 {
    text-align: left;
}

.t-sportfolio h2 {
    font-size: clamp(30px, 6vw, 70px);
}

.t-sportfolio h3 {
    font-size: clamp(32px, 4vw, 54px);

}

.t-sportfolio h4 {
    font-size: clamp(var(--font-medium), 3vw, 28px);
    font-weight: bold;
}

.t-1__header2 {
    font-size: clamp(40px, 4vw, 54px);
}

.t-1__header3 {
    font-size: clamp(30px, 3.5vw, 42px);
}



/* Hover effect for screens 768px and larger */
@media screen and (min-width: 768px) {

    #section-1,
    #section-2,
    #section-3,
    #section-4,
    #section-5,
    #section-6,
    #section-7,
    #section-8,
    #section-9,
    #section-10 {
        padding-top: 0;
    }
    
    div .m-1-wrapper:hover {
        border: var(--border-1);
    }

    



/* Trigger arrow button only visible on mobile */
.t-1-mobile-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--black);
    color: var(--white, #fff);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 31;
}
.t-1-mobile-nav-trigger.open {
    background-color: var(--primary-color);
}

.t-1-mobile-nav-trigger i {
    color: white;
    z-index: 32;
    position: relative;
}

/* Hidden by default and set up to slide in from the right 1 */
.t-1-mobile-nav {
    display: grid;
    place-items: center;
    position: fixed;
    right: -100%;
    overflow-y: auto;
    /* Start off-screen to the right */
    top: 0;
    width: 90%;
    height: 100%;
    background-color: var(--black);
    transition: right 0.3s ease-in-out;
    /* Slide-in effect */
    z-index: 30;
}

/* Displayed when open */
.t-1-mobile-nav.open {
    right: 0;
    /* Slide into view */
}

/* Style the navigation links */
.t-1-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    /* Center-align text */
}

.t-1-mobile-nav ul li {
    margin: 1rem 0;
}

.t-1-mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: clamp(22px, 4vw + 4px, 30px);
}


/* Hide the navigation and trigger arrow on larger screens */
@media (min-width: 768px) {
    .t-1-mobile-nav {
        width: clamp(400px, 40vw, 600px);
        right: clamp(-600px, -40vw, -400px);
    }
}