
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

body {
    font-family: "Karla", sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgba(24, 24, 24);
    background-size: cover;
    color: rgb(222, 222, 222);
    overflow-x: hidden;
}
header {
    background-color: rgba(24, 24, 24, 0.7);
    color: white;
    padding: 1em 0;
    text-align: center;
}

.site-header {
    background-color: rgb(24, 24, 24);
    color: white;
    padding: 1em 0;
    text-align: center;
}
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(31, 31, 31, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: clamp(0.80em, 2vw, 1em);
}
a {
    color: inherit;
    text-decoration: none;
    background: transparent;
}
nav a {
    color: white;
    padding: 1em;
    text-decoration: none;
    white-space: nowrap;
    

}

#about-section {
    width: 100%;
    max-width: 100;
    background-color: rgba(24, 24, 24, 0.99);
    padding-top: 5em;
    padding-bottom: 5em;
    box-sizing: border-box;
}

#music-production,#composition,#filmmaking {
    width: 100%;
    height: auto;
    padding-top: 5em;
    
}

#splash-screen1, #splash-screen2, #splash-screen3 {
    width: 100%;
    height: 720px;
    background-size: cover; 
    max-width:none;
    opacity:60%;
}


/* move site title to the left and make it h3-sized */
.site-title {
    margin-right: auto;
    display: flex;
    align-items: center;
    padding-left: 1em;
}
.site-title h3 {
    margin: 0;
    color: inherit;
    font-size: 1.17em; /* h3 size */
    font-weight: bold;
}
nav a:hover {
    background-color: #555;
}
header h1 a {
    color: inherit;
    text-decoration: none;
}
header h1 a:hover {
    color: inherit;
    text-decoration: none;
}
section {
    padding: 2em;
}
.image-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 2fr));
    align-items: start;
}
.image-grid img {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 3px;
    object-fit: cover;
}

#stills .image-grid img {
    height: auto;
    object-fit: contain;
}
/* Make stills roughly twice as large in the grid */
#stills .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.4rem;
}
.poster-grid img {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 3px;
    object-fit: contain;
}
#filmmaking .poster-grid img {
    height: auto;
    object-fit: contain;
}
/* Make stills roughly twice as large in the grid */
#filmmaking .poster-grid {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.4rem;
}
.showreel {
    text-align: center;
}
.showreel video {
    width: 80%;
    height: auto;
}
        /* Lightbox styles */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            animation: fadeIn 0.3s;
        }
            .lightbox.active {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .lightbox-content {
                position: relative;
                max-width: 100%;
                max-height: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 20px 40px; /* reduce big horizontal padding so images can use available space */
                box-sizing: border-box;
            }
            .lightbox-img {
                /* allow images to scale up to available viewport while preserving aspect ratio */
                max-width: calc(100vw - 120px);
                max-height: calc(80vh - 40px);
                width: auto;
                height: auto;
                border-radius: 0px;
                object-fit: contain;
                display: block;
            }
            .lightbox-caption {
                margin-top: 0.75rem;
                color: #ddd;
                text-align: center;
                font-size: 1rem;
                max-width: 100%;
                line-height: 1.5;
                white-space: normal;
                word-wrap: break-word;
            }
            .lightbox-close {
                /* place the close button outside the image to avoid covering it */
                position: fixed;
                top: 20px;
                right: 40px;
                z-index: 2500;
                font-size: 40px;
                color: white;
                background: transparent;
                cursor: pointer;
                font-weight: bold;
                transition: color 0.3s;
            }
            .lightbox-close:hover {
                color: #ccc;
            }
            .lightbox-nav {
                position: fixed;
                top: 50%;
                transform: translateY(-50%);
                z-index: 2500;
                background: transparent;
                border: none;
                color: white;
                font-size: 40px;
                cursor: pointer;
                padding: 1.25em;
                transition: color 0.3s;
            }
            .lightbox-nav:hover {
                color: #ccc;
            }
            .lightbox-nav:disabled {
                opacity: 0;
                cursor: default;
                pointer-events: none;
            }
            #lightboxPrev {
                left: 0;
            }
            #lightboxNext {
                right: 0;
            }
            @media (max-width: 2150px) {
                .lightbox {
                    flex-direction: column;
                    justify-content: flex-start;
                    align-items: center;
                    padding-top: 20px;
                }
                .lightbox-content {
                    padding: 20px 20px 10px;
                    width: 100%;
                    box-sizing: border-box;
                }
                .lightbox-img {
                    max-width: calc(80vw - 40px);
                    max-height: calc(60vh - 40px);
                }
                .lightbox-nav {
                    position: fixed;
                    transform: translateY(-50%);
                    margin: 0;
                    width: auto;
                    font-size: 32px;
                    padding: 1em;
                }
                .lightbox-controls {
                    display: flex;
                    justify-content: center;
                    gap: 12px;
                    width: 100%;
                    margin-top: 0px;
                }
                .lightbox-close {
                    top: 10px;
                    right: 10px;
                    font-size: 32px;
                }
            }
            .image-grid img {
                cursor: pointer;
                transition: transform 0.2s;
            }
            .image-grid img:hover {
                transform: scale(1.02);
            }
            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
/* small social icon */
.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.social-links li {
    margin: 0;
}
.social-links li:hover {
       scale: 1.1; 
    }
#contact {
    max-width: none;
    margin-top: 5.5em;
    padding-top: 1.5em;
    position: relative;
    overflow: hidden;
    background-color: transparent; /* if needed */
    text-decoration: none; /* remove underline from links */
}
.contact-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  will-change: transform;
  transform: translateZ(0);
  filter: brightness(0.8);
}
.showreel {
    display: flex;
}
#copyright {
    position: static;
    left: 50%;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1em 0;
    font-size: 0.9em;
    color: #aaa;
    z-index: 10;
}
@view-transition {
    navigation: auto;
}
::view-transition-group(root) {
    animation-duration: 0.35s;;
    animation-timing-function: ease;
}
