/*
 Theme Name: MyTheme
 Author: Laroooga
 Version: 1.0
*/

.rainbow-text {
    background: linear-gradient(
        90deg,
        red,
        rgb(160, 104, 0),
       
        green,
        blue,
        indigo,
        violet,
        red
    );

    background-size: 250px 100%;
    background-repeat: repeat;

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* base font styles */
body {
    font-family:'Times New Roman', Times, serif;
    font-weight: 400;
}
h1, h2, h3 {
    font-family:'Times New Roman', Times, serif;
    font-weight: 700;
}



/* post home */
.posthome ul li {
    border-bottom: 1px solid #000000;
    padding: 1rem 0;
}
/* Don't add extra space above the first post */
.posthome .wp-block-post-template > li:first-child {
    padding-top: 0;
}

/* Post feed title links */
.posthome .wp-block-post-title a {
    color: #000000;
    text-decoration: none;
}
/* After the link has been visited */
.posthome .wp-block-post-title a:visited {
    color: #000000;
}
/* Hover */
.posthome .wp-block-post-title a:hover {
    color: #000000;
    text-decoration: underline;
}
/* While clicking */
.posthome .wp-block-post-title a:active {
    color: #000000;
}

/* Header navigation links */
header .wp-block-navigation a {
    color: #000000;
    text-decoration: none;
}
/* Visited */
header .wp-block-navigation a:visited {
    color: #000000;
}
/* Hover */
header .wp-block-navigation a:hover {
    color: #000000;
    text-decoration: underline;
}
/* While clicking */
header .wp-block-navigation a:active {
    color: #000000;
}


/* Hide scrollbar site-wide, but keep scrolling enabled */
html {
    scrollbar-width: none; /* Firefox */
}
body {
    -ms-overflow-style: none; /* Older Edge/IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}


/* Hide title only on regular Pages */
body.page .wp-block-post-title {
    display: none;
}
/* Keep post titles visible in the post feed */
.posthome .wp-block-post-title {
    display: block;
}

/* Remove extra gap between header and single-post content */
body.single .wp-site-blocks > .wp-block-group {
    margin-top: 0 !important;
}
body.single .wp-block-post-title {
    margin-top: -0.5rem;
}

/* Doesn't show post title on gallery single posts page and moves image up to fill space */


/* Disables scrolling on single gallery posts */


/* Makes gallery grid on gallery page have equal vertical spacing to horizontal */
.gallery-grid.wp-block-post-template {
    column-gap: 1.5rem !important;
    row-gap: 1.5rem !important;
    
}
.gallery-grid > li {
    margin: 0 !important;
}
.gallery-grid .wp-block-post-featured-image {
    margin: 0 !important;
}

/* Little bit of spacing underneath every page */
.wp-site-blocks {
    padding-bottom: 3rem;
    box-sizing: border-box;
}



/* code below was in created to make spacing when shrinking webpage on mobile padding on the sides but doing it in theme.json was better */
/*
Side padding for all main content (for mobile)
.wp-block-post-content,
.posthome {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

Side padding for just the headers of posts when shrinking window 
body.single .wp-block-post-title {
    width: calc(100% - 2rem);
    max-width: var(--wp--style--global--content-size);
    margin-left: auto;
    margin-right: auto;
}
*/



/* code below was in tutorial but pretty sure is not needed */
/*
content width fixes
.entry-content,
.wp-block-post-content,
.wp-block-group.is-layout-constrained {
    max-width: 100% !important;
    width: 100% !important;
}

Ensure alignwide block can reach 1200px
.wp-block-group.alignwide {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

Ensure alignfull takes full viewport width
.wp-block-group.alignfull {
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
*/