body {
    background-image: url(https://artificialdeath.b-cdn.net/funeralelegy-website/base%20assets/Office-.jpg);
    background-repeat: no-repeat;
    background-attachment:fixed;
    background-position: center;
    background-size: cover;
}

.wrapper {
    margin: 0;
    width: 100%;
    padding: 0px 10px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container { 
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 0.7fr 1.3fr 1fr 1fr 1fr 1fr 1fr 1fr 1.3fr 0.7fr;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 10px 10px; 
    grid-auto-flow: row;
    width: 100%;
}

.header { 
    grid-area: 1 / 1 / 2 / 11; 
    background: #00000087;
    width: auto;
    height: auto;
    padding: 10px;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
}

.media {  
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 10px 10px;
    grid-auto-flow: row;
    grid-area: 3 / 1 / 9 / 6;
    width: auto;
    height: auto;
    font-size: 20px;
    padding: 10px;
}

.media-header { 
    grid-area: 1 / 1 / 2 / 7; 
    background-image: url(https://artificialdeath.b-cdn.net/funeralelegy-website/base%20assets/header3.png);
    background-repeat: no-repeat;
    background-attachment: local;
    text-transform: uppercase;
    font-size: 30px;
    padding: 0px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-left: 2px solid #ff0000;
    color: #ff0000;
    text-shadow: 2px 2px #000000;
    
}

.media-section-1 { 
    grid-area: 2 / 1 / 5 / 3; 
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative;
}

.media-section-1 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.media-section-1 a:hover {
    color: #ff0000;
    background: #000;
}

.media-section-2 { 
    grid-area: 5 / 1 / 8 / 3;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative;
}

.media-section-2 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.media-section-2 a:hover {
    color: #ff0000;
    background: #000;
}

.media-section-3 { 
    grid-area: 2 / 3 / 4 / 7;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative;
}

.media-section-3 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.media-section-3 a:hover {
    color: #ff0000;
    background: #000;
}

.media-section-4 { 
    grid-area: 4 / 3 / 8 / 5;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative;
}

.media-section-4 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.media-section-4 a:hover {
    color: #ff0000;
    background: #000;
}

.media-section-5 { 
    grid-area: 4 / 5 / 8 / 7;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative;
}

.media-section-5 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.media-section-5 a:hover {
    color: #ff0000;
    background: #000;
}

.favorites { 
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1.1fr 0.9fr 1fr 1fr 1fr;
    gap: 10px 10px;
    grid-auto-flow: row;
    grid-area: 3 / 6 / 6 / 11;
    width: auto;
    height: auto;
    font-size: 20px;
    padding: 10px;
}

.favorites-header { 
    grid-area: 1 / 1 / 2 / 7; 
    background-image: url(https://artificialdeath.b-cdn.net/funeralelegy-website/base%20assets/header3.png);
    background-repeat: no-repeat;
    background-attachment: local;
    text-transform: uppercase;
    font-size: 30px;
    padding: 0px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-left: 2px solid #ff0000;
    color: #ff0000;
    text-shadow: 2px 2px #000000;
}

.favorites-section-1 { 
    grid-area: 2 / 1 / 4 / 5;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative; 
}

.favorites-section-1 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.favorites-section-1 a:hover {
    color: #ff0000;
    background: #000;
}

.favorites-section-2 { 
    grid-area: 4 / 1 / 6 / 5;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative; 
}

.favorites-section-2 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.favorites-section-2 a:hover {
    color: #ff0000;
    background: #000;
}

.favorites-section-3 { 
    grid-area: 2 / 5 / 6 / 7;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative; 
}

.favorites-section-3 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.favorites-section-3 a:hover {
    color: #ff0000;
    background: #000;
}

.other {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 10px 10px;
    grid-auto-flow: row;
    grid-area: 6 / 6 / 9 / 11;
    width: auto;
    height: auto;
    font-size: 20px;
    padding: 10px;
}

.other-header { 
    grid-area: 1 / 1 / 2 / 5;  
    background-image: url(https://artificialdeath.b-cdn.net/funeralelegy-website/base%20assets/header3.png);
    background-repeat: no-repeat;
    background-attachment: local;
    text-transform: uppercase;
    font-size: 30px;
    padding: 0px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-left: 2px solid #ff0000;
    color: #ff0000;
    text-shadow: 2px 2px #000000;
}

.other-section-1 { 
    grid-area: 2 / 1 / 5 / 3;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative; 
}

.other-section-1 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.other-section-1 a:hover {
    color: #ff0000;
    background: #000;
}

.other-section-2 { 
    grid-area: 2 / 3 / 5 / 5;  
    background: #00000075;
    width: auto;
    height: auto;
    padding: 10px;
    border: 2px solid #fff;
    box-shadow: 5px -5px 0px #00000098;
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-shadow: 2px 2px #ffffff98;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0) 0%, rgb(103,34,65) 100%);
    position: relative;  
}

.other-section-2 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.other-section-2 a:hover {
    color: #ff0000;
    background: #000;
}

.footer { 
    grid-area: 10 / 1 / 11 / 11; 
    text-align: center;
    width: auto;
    height: auto;
    padding: 10px;
}

 /* Large tablet/small desktop breakpoint */
@media (max-width: 1200px) and (min-width: 1025px) {
html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .wrapper {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 50px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header { 
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .media {
        order: 2;
        width: 100%;
        box-sizing: border-box;
    }

    .favorites {
        order: 3;
        width: 100%;
        box-sizing: border-box;
    }

    .other {
        order: 4;
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        order: 5;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    
     html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .wrapper {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 50px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header { 
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .media {
        order: 2;
        width: 100%;
        box-sizing: border-box;
    }

    .favorites {
        order: 3;
        width: 100%;
        box-sizing: border-box;
    }

    .other {
        order: 4;
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        order: 5;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) and (min-width: 481px) {
     html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .wrapper {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 50px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header { 
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .media {
        order: 2;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .media-section-1 {
        padding: 30px;
    }

    .media-section-2 {
        padding: 30px;
    }

    .media-section-3 {
        padding: 30px;
    }

    .media-section-4 {
        padding: 30px;
    }

    .media-section-5 {
        padding: 30px;
    }

    .favorites {
        order: 3;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .favorites-section-1 {
        padding: 30px;
    }

    .favorites-section-2 {
        padding: 30px;
    }

    .favorites-section-3 {
        padding: 30px;
    }

    .other {
        order: 4;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .other-section-1 {
        padding: 30px;
    }

    .other-section-2 {
        padding: 30px;
    }

    .footer {
        order: 5;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .wrapper {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 50px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header { 
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .media {
        order: 2;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .media-section-1 {
        padding: 30px;
    }

    .media-section-2 {
        padding: 30px;
    }

    .media-section-3 {
        padding: 40px;
    }

    .media-section-4 {
        padding: 30px;
    }

    .media-section-5 {
        padding: 40px;
    }

    .favorites {
        order: 3;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .favorites-section-1 {
        padding: 30px;
    }

    .favorites-section-2 {
        padding: 30px;
    }

    .favorites-section-3 {
        padding: 30px;
    }



    .other {
        order: 4;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .other-section-1 {
        padding: 30px;
    }

    .other-section-2 {
        padding: 30px;
    }

    .footer {
        order: 5;
        width: 100%;
        box-sizing: border-box;
    }
}