/* Font definitions */
@font-face {
    font-family: 'Autoscape';
    src: url('../fonts/AutoscapeLLTT-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Autoscape';
    src: url('../fonts/AutoscapeLLTT-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'ESKlarheitGrotesk';
    src: url('../fonts/ESKlarheitGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ESKlarheitGrotesk';
    src: url('../fonts/ESKlarheitGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Autoscape', monospace;
    background-color: #E2DED8;
    color: #111010;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header and Navigation styles */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateY(-12px);
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.site-footer {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDownImage {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active.intro-animate {
    animation: fadeInDownImage 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Adaptive text color classes - with increased specificity */
.site-header.light-text,
.site-header.light-text .name-logo,
.site-header.light-text .nav-links li,
.site-header.light-text .nav-links li a,
.site-header.light-text .nav-links li.separator,
.site-footer.light-text,
.site-footer.light-text div {
    color: #FFFFFF !important;
}

.site-header.light-text .name-logo::after,
.site-header.light-text .nav-links li a::after {
    background-color: #FFFFFF !important;
}

.site-header.dark-text,
.site-header.dark-text .name-logo,
.site-header.dark-text .nav-links li,
.site-header.dark-text .nav-links li a,
.site-header.dark-text .nav-links li.separator,
.site-footer.dark-text,
.site-footer.dark-text div {
    color: #111010 !important;
}

.site-header.dark-text .name-logo::after,
.site-header.dark-text .nav-links li a::after {
    background-color: #111010 !important;
}

.header-left .name-logo {
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    color: #111010;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.header-left .name-logo:hover {
    opacity: 0.3;
}



.header-right .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 5px;
}

.nav-links li a {
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    color: #111010;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-links li a:hover {
    opacity: 0.3;
}

.nav-links li a.active {
    font-weight: 700;
}

/* Main container styles */
.home {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About page styles */
.about-page {
    background-color: #000000;
}

.about-page .site-header,
.about-page .site-footer {
    color: #ffffff;
}

.about-page .name-logo,
.about-page .nav-links li a,
.about-page .nav-links li.separator,
.about-page .footer-left,
.about-page .footer-right,
.about-page #current-time {
    color: #ffffff !important;
}

.about-page .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
}

.about {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Marquee */
.about-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: clamp(40px, 6vw, 80px) 0;
}

.about-marquee-track {
    display: inline-block;
    white-space: nowrap;
    font-family: 'ESKlarheitGrotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(100px, 22vw, 300px);
    color: #ffffff;
    line-height: 0.85;
    letter-spacing: -0.07em;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* About page load animations */
.about-bio p {
    opacity: 0;
    animation: fadeInOnly 1.2s ease forwards;
}

.about-bio p:nth-child(1) {
    animation-delay: 0.3s;
}

.about-bio p:nth-child(2) {
    animation-delay: 0.7s;
}

.about-bio p:nth-child(3) {
    animation-delay: 1.1s;
}

@keyframes fadeInOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.say-hello-card {
    opacity: 0;
    transform: translateY(-12px);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

/* Bio section */
.about-body {
    padding: clamp(30px, 4vw, 60px) clamp(25px, 4vw, 50px) clamp(60px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    gap: clamp(80px, 12vw, 160px);
}

.about-bio {
    width: calc(100% * 10 / 12);
}

.about-bio p {
    font-family: 'ESKlarheitGrotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 3.5vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 40px;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
    position: relative;
}

.about-link:hover {
    opacity: 1;
}

.about-link .link-preview {
    position: fixed;
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-link:hover .link-preview {
    opacity: 1;
    visibility: visible;
}

.about-link .link-preview--square-sm {
    width: 140px;
    height: 140px;
}

/* Say Hello card */
.say-hello-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #2a2a2a;
    padding: 16px;
    width: fit-content;
    align-self: flex-end;
    border-radius: 8px;
    margin-right: calc(100% * 1 / 12);
}

.say-hello-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 4px;
}

.say-hello-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.say-hello-label {
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
}

.say-hello-links {
    display: flex;
    gap: 12px;
}

.say-hello-btn {
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.say-hello-btn:hover {
    opacity: 0.3;
}

/* Logo container styles */
.logo-container {
	margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    display: flex;
    align-items: center;
}

.logos-section {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    padding: 0;
}

/* Animation styles for loading sequence */
.km-logo {
    max-width: 450px;
    z-index: 2;
    margin-right: 42px;
    opacity: 0;
    transform: translateY(-40px); /* Increased distance */
    animation: fadeInDown 0.5s cubic-bezier(0.755, 0.05, 0.855, 0.06) forwards; /* easeInQuint */
    animation-delay: 0.1s; /* Start first */
}

.portfolio-text {
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    color: #111010;
    z-index: 3;
    margin-right: 42px;
    line-height: 1.4;
	text-transform: uppercase;
    opacity: 0;
    transform: translateY(-40px); /* Increased distance */
    animation: fadeInDown 0.5s cubic-bezier(0.755, 0.05, 0.855, 0.06) forwards; /* easeInQuint */
    animation-delay: 0.3s; /* Start when first is still animating */
}

.twenty-five-logo {
    max-width: 350px;
    z-index: 1;
    opacity: 0;
    transform: translateY(-40px); /* Increased distance */
    animation: fadeInDown 0.5s cubic-bezier(0.755, 0.05, 0.855, 0.06) forwards; /* easeInQuint */
    animation-delay: 0.5s; /* Start when second is still animating */
}

/* Define the animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media queries for responsive design */
@media screen and (max-width: 1179px) {
    .say-hello-card {
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }

    .about-bio {
        width: 100%;
    }

    .site-header {
        padding: 20px 30px;
    }
    
    /* Main sections mobile styling */
    .home {
        padding: 100px 30px 60px;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .work {
        padding: 10%;
    }
    
    /* Logo container mobile styling - applied to both home and about */
    .logo-container {
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .portfolio-text {
        margin: 0 0 42px 0;
        text-align: center;
        font-family: 'Autoscape', sans-serif;
        font-weight: 400;
        text-transform: uppercase;
        /* Animation still applies from the main styles */
    }
    
    .km-logo {
        width: 100%;
        max-width: 400px;
        margin-right: 0;
        margin-bottom: 42px;
        /* Animation still applies from the main styles */
    }
    
    .twenty-five-logo {
        width: 65%;
        max-width: 275px;
        /* Animation still applies from the main styles */
    }
    
    .logos-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    /* About page career content styles */
    .career-content {
        padding: 0;
        align-items: center;
        text-align: center;
    }
	
    
    .career-item {
        text-align: center;
    }
	
	.personal-content {
        padding: 0;
        align-items: center;
        text-align: center;
    }
}

/* Ensure portfolio text is never bold */
.logo-container .portfolio-text {
    font-weight: 400 !important;
}

/* Content container styles for work and about pages */
.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
    padding-bottom: 100px; /* Add spacing for the fixed footer */
}

.content-container h1 {
    font-family: 'Autoscape', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.content-container h2 {
    font-family: 'Autoscape', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
}

.content-container p {
    font-family: 'Autoscape', monospace;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-container ul {
    font-family: 'Autoscape', monospace;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 20px;
}

.content-container ul li {
    margin-bottom: 10px;
}

/* Work page specific styles */
.work {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Keep overflow hidden for desktop */
    position: relative; /* Need this for z-index stacking context */
    min-height: 100vh; /* Ensure it takes up at least full viewport height */
}

@media screen and (max-width: 1179px) {
    /* On mobile/tablet, allow natural scrolling */
    .work {
        overflow: visible;
        align-items: flex-start;
    }
}

/* Desktop Carousel Styles */
.work-carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Keep this to hide off-screen items */
    z-index: 1; /* Ensure it's above the base level but below header/footer */
}

.work-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 80%;
    position: relative;
    overflow: visible; /* Changed back to visible to ensure all slides can be seen */
}

.carousel-item {
    position: absolute;
    width: 50%;
    max-width: 700px;
    opacity: 0;
    transform: scale(1); /* Remove scaling effect */
    transition: opacity 0.3s ease; /* Simpler, faster fade transition */
    pointer-events: none;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 0;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* Remove transformations for prev/next items, just keep them invisible */
.carousel-item.prev,
.carousel-item.next {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.carousel-item.prev {
    left: 0;
    right: 0;
}

.carousel-item.next {
    left: 0;
    right: 0;
}

.work-image {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    background-color: #ddd;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Removed transition effect */
}

/* Removed hover zoom effect */
.carousel-item.active .work-image img:hover {
    transform: none; /* No zoom effect */
}

.work-details {
    padding: 10px 0;
}

.work-details h2 {
    font-family: 'Autoscape', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.work-details p {
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    color: #111010;
    line-height: 1.5;
}

/* Carousel Navigation */
.image-counter {
    position: absolute;
    font-family: 'Autoscape', monospace;
    font-size: 1rem;
    color: #111010;
    z-index: 10;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.2s ease;
    cursor: pointer; /* Make counter clickable */
    padding: 10px; /* Add some padding for better clickability */
}

.left-counter {
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.right-counter {
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hover and active states for counters, preserving translateY */
.left-counter:hover {
    transform: translateY(-50%) scale(1.1);
}

.left-counter:active {
    transform: translateY(-50%) scale(0.95);
}

.right-counter:hover {
    transform: translateY(-50%) scale(1.1);
}

.right-counter:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hover zones for counter cursor */
.hover-zone-left,
.hover-zone-right {
    position: fixed; /* Changed to fixed to work with full-bleed */
    top: 60px; /* Space below the header */
    bottom: 60px; /* Space above the footer */
    height: calc(100% - 120px);
    width: 25%;
    z-index: 5; /* Above full-bleed but below header/footer */
}

.hover-zone-left {
    left: 0;
    /* No default cursor - will be replaced by JS */
}

.hover-zone-right {
    right: 0;
    /* No default cursor - will be replaced by JS */
}

/* Show counter on hover */
/* Custom cursor handling is done via JavaScript */

/* Old Carousel Navigation Arrows - Keep for reference */
.carousel-arrow {
    position: absolute;
    top: 60px; /* Space below the header */
    bottom: 60px; /* Space above the footer */
    height: calc(100% - 120px); /* Adjusted height to not overlap with header/footer */
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-arrow-left {
    left: 0;
    justify-content: flex-start;
    padding-left: 30px;
    cursor: w-resize; /* Fallback cursor */
    cursor: url('../images/arrow-left.svg') 10 9, w-resize; /* SVG cursor with fallback */
}

.carousel-arrow-right {
    right: 0;
    justify-content: flex-end;
    padding-right: 30px;
    cursor: e-resize; /* Fallback cursor */
    cursor: url('../images/arrow-right.svg') 10 9, e-resize; /* SVG cursor with fallback */
}

/* Hide the actual arrow spans completely */
.carousel-arrow span {
    display: none;
}

/* Mobile Work Styles */
.work-mobile-container {
    display: none;
    width: 100%;
}

.work-mobile-item {
    width: 100%;
    display: block;
}

.work-mobile-item .work-image img {
    width: 100%;
    height: auto;
    display: block;
}

.work-mobile-item .work-image video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Footer styles */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    font-family: 'Autoscape', monospace;
    font-size: 0.9rem;
    color: #111010;
    transition: color 0.3s ease;
    /* Removed background color */
}

.footer-left, .footer-right {
    font-weight: 400;
	text-transform: uppercase;
}

@media screen and (max-width: 1179px) {
    .site-header {
        padding: 20px 30px;
    }
    
    /* Main sections mobile styling */
    .home {
        padding: 60px 30px 60px;
        align-items: flex-start;
        justify-content: flex-start;
        align-items: center;
    }
    
    .work {
        padding: 0; /* Remove padding to allow work-mobile-container to control spacing */
    }
    
    /* About page mobile styles */
    .about-content {
        width: 100%;
    }
    
    .about-text p {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .about-details {
        flex-direction: column;
        gap: 20px;
    }
	
	.about-container {
    padding: 0 0px;
    max-width: 100vw;
}
    
    .detail-section {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .detail-section h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    /* Logo container mobile styling - applied to both home and about */
    .logo-container {
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .portfolio-text {
        margin: 0 0 42px 0;
        text-align: center;
        font-family: 'Autoscape', sans-serif;
        font-weight: 400;
        /* Keep animation but adjust spacing for mobile */
    }
    
    .km-logo {
        width: 100%;
        max-width: 400px;
        margin-right: 0;
        margin-bottom: 42px;
        /* Keep animation for mobile */
    }
    
    .twenty-five-logo {
        width: 65%;
        max-width: 275px;
        /* Keep animation for mobile */
    }
    
    .logos-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    /* About page career content styles */
    .career-content {
        padding: 0;
        align-items: center;
        text-align: center;
    }
	
    
    .career-item {
        text-align: center;
    }
	
	.personal-content {
        padding: 0;
        align-items: center;
        text-align: center;
    }
    
    .content-container {
        padding: 0 30px;
        margin-top: 100px;
    }
    
    .content-container h1 {
        font-size: 1.5rem;
    }
    
    /* Work page mobile styles */
    .work-carousel-container {
        display: none; /* Hide carousel on mobile */
    }
    
    /* Remove the counter from mobile view */
    .mobile-counter {
        display: none;
    }
    
    /* Setup mobile work container for stacked scrolling */
    .work-mobile-container {
        display: flex;
        flex-direction: column;
        gap: 60px;
        padding-top: 100px; /* Extra space for fixed header */
        padding-bottom: 100px; /* Space for footer */
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Make the main work container fully scrollable on mobile */
    .work {
        overflow: visible;
        height: auto;
        display: block; /* Change from flex to block for better stacking */
    }
    
    .site-footer {
        padding: 20px 30px;
        mix-blend-mode: multiply;
    }
    
    .site-header, .site-footer {
        mix-blend-mode: multiply;
    }
    
    .site-header .name-logo,
    .site-header .nav-links li a,
    .site-header .nav-links li.separator,
    .site-footer .footer-left,
    .site-footer .footer-right {
        color: #111010 !important;
    }
    
    .site-header .name-logo::after,
    .site-header .nav-links li a::after {
        background-color: #111010 !important;
    }
}

/* Custom aspect ratio styles for the carousel */

/* Full bleed image styles */
.carousel-item.full-bleed {
    width: 100vw;
    height: 100vh;
    max-width: none;
    position: fixed; /* This ensures it covers the entire viewport */
    top: 0;
    left: 0;
    z-index: 0; /* Keep below header/footer */
}

.carousel-item.full-bleed.active {
    z-index: 2; /* Ensure active full-bleed is visible */
}

.carousel-item.full-bleed .work-image {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.carousel-item.full-bleed .work-image img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block; /* Remove any extra space */
}

/* Rectangle image styles */
.carousel-item.rectangle {
    width: 90%;
    height: calc(100vh - 224px);
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.rectangle .work-image {
    width: auto;
    height: calc(100vh - 224px);
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.rectangle .work-image img {
    width: auto;
    height: 100%;
    max-height: calc(100vh - 224px);
    object-fit: contain;
}

/* Square image styles */
.carousel-item.square {
    width: auto;
    height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.square .work-image {
    width: auto;
    height: calc(100vh - 224px);
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.square .work-image img {
    width: auto;
    height: calc(100vh - 224px);
    max-height: calc(100vh - 224px);
    max-width: calc(100vh - 224px);
    object-fit: contain;
}

/* Open image styles - respects natural aspect ratio */
.carousel-item.open {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.open .work-image {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.open .work-image img {
    max-width: 90vw;
    max-height: calc(100vh - 224px);
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Wide image styles - respects natural width and height equally */
.carousel-item.wide {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.wide .work-image {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.wide .work-image img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: calc(100vh - 224px);
    object-fit: contain;
}

/* Video carousel type */
.carousel-item.video {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.video .work-image {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: calc(100vh - 224px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.video .work-image video {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: calc(100vh - 224px);
    display: block;
}

.carousel-item.video .work-image video.video-styled,
.carousel-item .work-image img.img-styled {
    border-radius: 24px;
    border: 4px solid #1E1E1E;
}


