:root {
    --background-color: rgb(23, 23, 23);
    --border-color: rgb(255, 255, 255, 0.1);
    --highlight-color: rgb(0,139,139);
    --shadow: rgba(0,0,0,.2);
}

body {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0px;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, a, p, li, span {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    color: white;
    margin: 0px;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--highlight-color);
}


.background-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 1px;    
}

h4 {
    flex-basis: 50%;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.5rem;
    line-height: 3rem;
    margin: 0px;
    text-transform: uppercase;
    color: white;
}

h3 {
    flex-basis: 50%;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5rem;
    line-height: 3rem;
    margin: 0px;
    text-transform: uppercase;
    color: white;
}

h5 {
    flex-basis: 50%;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.5vw;
    line-height: 3vw;
    margin: 0px;
    text-transform: uppercase;
    color: black;
}

h6 {
    flex-basis: 50%;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5vw;
    line-height: 3vw;
    margin: 0px;
    text-transform: uppercase;
    color: black;
}


h4, h3,  p, a,li,label {
    user-select: none;
}


.container {
    background-color: var(--backround-colour);
    margin: 20px;
}

.container > a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.container > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 16px var(--shadow);

}

.container {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    grid-auto-rows: 320px;
    grid-auto-flow: dense;

}

.horizontal {
    grid-column: span 2;
}

.vertical {
    grid-row: span 2;
}

.big {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {



    .container {
        grid-template-columns: 1fr; 
        grid-auto-rows: auto; 
    }
    
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: repeat(2, 1fr); 
        grid-gap: 10px; 
    }

    .container > a, .container > img, .container > video {
        width: 100%;
        height: 100%; 
        object-fit: cover; 
    }
}

@media (max-width: 350px) {
    #nav-logo-section > a > i {
        font-size: 1.5rem; 
    }
}

@media (max-width: 768px) {
    #nav-link-section {
        display: none;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1001;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.gallery {
    margin-top: 100px;
}

.lightbox-nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    background: transparent;
    border-radius: 4px;
    transition: color 0.3s;
}

.lightbox-nav a:hover {
    color: rgb(0,139,139);
    background: transparent;
}

.lightbox-nav a.index {
    pointer-events: none;
    color: white;
}

/* Add your existing gallery.css styles here */

/* Title styles */
.title {
    text-align: center;
}

.title h4,
.title h2 {
    margin: 0;
}

/* Default styling for large screens */
.navigation-text {
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if needed */
    justify-content: center;
    gap: 20px; /* Increase the gap between sections */
}

/* Styling for individual spans */
.navigation-text span {
    display: inline-block;
    margin: 0 10px; /* Add horizontal margin for additional spacing */
}

/* For smaller screens (<900px) */
@media (max-width: 900px) {
    .navigation-text {
        display: block; /* Switch to block layout */
        text-align: center;
        line-height: 1.5; /* Add vertical spacing */
    }

    .navigation-text span {
        display: block; /* Force each section onto its own line */
        margin: 25px 0; /* Add spacing between lines */
    }
}

.break-desktop {
    display: none;
}

@media (min-width: 901px) {
    .break-desktop {
        display: block;
    }
}