/*
Theme Name: Cutaway - Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Tags: responsive-layout,one-column,two-columns,three-columns,four-columns,left-sidebar,right-sidebar,custom-background,custom-colors,featured-images,full-width-template,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready
Version: 3.9.1530310692
Updated: 2025-11-03 22:18:12

*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. Base & Layout
   2. Navigation
   3. Header & Hero
   4. Portfolio/Projects
   5. Gallery
   6. Modal/Overlay
   7. Contact
   8. Footer
   9. Responsive & Media Queries
   ========================================================================== */

/* ==========================================================================
   1. BASE & LAYOUT
   ========================================================================== */

#page-container {
    padding-top: 0px !important;
}

#footer-bottom {
    display: none;
}

.noscroll {
    overflow: hidden !important;
}

.hide {
    display: none !important;
}

/* Aspect Ratio Containers */
.widescreen-video,
.widescreen-slider,
.widescreen-slider .et_pb_slides {
    aspect-ratio: 16/9 !important;
}

.widescreen-video {
    height: auto !important;
    background-position: center;
    background-size: cover;
}

.widescreen-slider {
    height: auto !important;
}

.widescreen-slider .et_pb_slide {
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

.widescreen-slider .et_pb_slide .et_pb_container {
    height: auto !important;
}

/* Custom Toggle Section */
.custom-toggle .et_pb_row {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */

ul#mobile_menu {
    text-transform: uppercase;
    width: 125%;
    margin-left: -12.5%;
    text-align: center;
}

/* Navigation Links */
.single-project.et_pb_pagebuilder_layout .nav-single {
    width: 100%;
    max-width: 100%;
    margin: 0px;
    top: -4px !important;
}

.meta-nav,
span.meta-nav {
    display: none !important;
}

.single-project .nav-next {
    float: left !important;
}

.single-project .nav-previous {
    float: right;
}

.triggers.et_pb_posts_nav.nav-single {
    padding-top: 0px !important;
}

.single-project .nav-next,
.single-project .nav-previous {
    float: none !important;
}

.et_pb_module.triggers.nav-single {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

article .et_pb_posts_nav.nav-single::after {
    display: none !important;
}

article .et_pb_posts_nav.nav-single span {
    width: 50%;
}

article .et_pb_posts_nav.nav-single .nav-next {
    text-align: right;
}

article .et_pb_column:after {
    display: none !important;
}

.et_pb_module.triggers {
    flex-direction: row-reverse !important;
}

/* Navigation Labels */
.nav-previous {
    text-align: right !important;
}

.nav-previous .nav-label {
    padding-right: 14px !important;
    position: relative;
}

.nav-previous .nav-label:before {
    content: "\003e";
    font-size: 22px;
    position: absolute;
    right: 0px;
    top: -3px;
}

.nav-next {
    text-align: left !important;
}

.nav-next .nav-label {
    padding-left: 14px !important;
    position: relative;
}

/* Navigation Row */
.navigation-row {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Project Logo */
#projectlogo {
    position: absolute !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: -6px;
}

/* ==========================================================================
   3. HEADER & HERO
   ========================================================================== */

.widescreen-video .et_pb_fullwidth_header_container {
    height: 100%;
}

.widescreen-video .et_pb_button {
    margin-top: 7.5vw !important;
}

/* ==========================================================================
   4. PORTFOLIO/PROJECTS
   ========================================================================== */

/* Portfolio Base Styles */
.bigprojects .et_pb_portfolio_item {
    float: left;
    margin: 0px;
    padding: 0px;
}

.et_pb_portfolio_item.et_pb_grid_item {
    border: 10px solid white;
    position: relative;
}

.et_pb_portfolio_item {
    overflow: hidden !important;
    position: relative;
}

/* Portfolio Filters */
.bigprojects.et_pb_filterable_portfolio .et_pb_portfolio_filters {
    display: none !important;
}

.vault .et_pb_portfolio_filters,
#clips .et_pb_portfolio_filters {
    display: none;
}

.et_pb_filterable_portfolio .et_pb_portfolio_filters li a {
    padding: 30px 40px;
}

.ppp_filterable_link.active,
.ppp_filterable_link:hover {
    background-color: black !important;
    color: white !important;
}

.et_pb_portfolio_filters ul {
    text-align: center;
    margin: 0 auto;
}

li.et_pb_portfolio_filter {
    float: none !important;
    display: inline-block;
}

/* Portfolio Images */
.et_portfolio_image {
    position: relative;
    display: block;
}

.et_portfolio_image img {
    vertical-align: top;
    height: auto;
    object-fit: cover;
    width: 100%;
    display: block;
}

.et_pb_filterable_portfolio .et_overlay {
    border: none;
}

/* Portfolio Hover Effects - Image Zoom */
.et_pb_portfolio_item img {
    -webkit-transition: transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
}

.et_pb_portfolio_item:hover img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

/* PROJECT INFO - New Overlay System */
.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2; /* Above the image and pseudo-element */
}

/* Pseudo-element for dark overlay */
.project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    z-index: -1; /* Behind the text but above the image */
}

/* Show project info on hover - Fade in entire div */
.et_pb_portfolio_item:hover .project-info {
    opacity: 1;
}

/* Elements inside project-info - All relative positioning */
.project-info h2,
.project-info .dp-custom-field {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    z-index: 1; /* Above the pseudo-element */
}


@media only screen and (min-width: 768px) {
    .project-info h2 {
        margin-bottom: 10px;
        color: #ffffff !important;
    }
}
.project-info h2 a {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.project-info h2 a:hover {
    opacity: 0.8;
}

.project-info .dp-custom-field {
    color: #ffffff !important;
    font-size: 14px;
}

.dp-custom-field-name {
    display: none;
}

.dp-custom-field-value {
    color: #ffffff !important;
    opacity: 0.9;
}

/* Make sure the portfolio item is positioned for absolute children */
.et_pb_portfolio_item {
    cursor: pointer;
}

/* Ensure image link doesn't block the overlay */
.et_pb_portfolio_item > a.et_pb_lightbox_post_popup {
    display: block;
    position: relative;
}

/* Portfolio General Text & Links */
.et_pb_filterable_portfolio .et_pb_portfolio_item a,
.et_pb_filterable_portfolio .et_pb_portfolio_item p {
    color: #ffffff;
}

/* Project Dividers */
.project-row .et_pb_divider_0:before {
    border-top-color: white !important;
}

.project-row .et_pb_text_inner a {
    color: black !important;
    font-weight: 800;
}

/* Single Project */
.single-project .entry-content {
    padding-top: 0px;
}

.vvqbox {
    margin: 20px 0px;
}

/* ==========================================================================
   5. GALLERY
   ========================================================================== */

#collaborations .et_pb_gallery_item {
    float: left !important;
    padding: 2.5%;
    clear: none;
}

#collaborations .et_pb_gallery_item img {
    width: 100%;
    object-fit: contain;
}

#collaborations .et_pb_gallery_item h3,
#collaborations .et_overlay {
    display: none;
}

#collaborations .et_pb_gallery_image {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    opacity: .8;
}

#collaborations .et_pb_gallery_image img {
    pointer-events: none;
}

/* Gallery Captions */
.et_pb_gallery_caption {
    background-color: rgba(0, 0, 0, 0);
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.et_pb_gallery_caption p {
    background-color: rgba(0, 0, 0, 0);
}

.et_pb_gallery_caption a {
    position: relative;
    height: auto;
    padding: 0px 80px 50px 80px;
    overflow: hidden !important;
    color: rgba(0, 0, 0, 0) !important;
    background-color: rgba(0, 0, 0, 0) !important;
}

/* ==========================================================================
   6. MODAL/OVERLAY
   ========================================================================== */

.dp_ppp_modal {
    height: 100%;
    max-width: 100%;
    border-radius: 0px;
}

.modal_inner {
    overflow-y: hidden;
    padding-top: 0px !important;
}

.dp_ppp_modal_overlay {
    background: rgba(0, 0, 0, 0.75);
}

.dp_ppp_modal_overlay .pop_up_close_btn {
    top: 0px;
    right: 20px;
    font-size: 40px !important;
}

/* ==========================================================================
   7. CONTACT
   ========================================================================== */

#contact a {
    color: black;
}

#contact a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

#ccfooter a {
    color: white;
    opacity: 0.8;
}

#ccfooter a:hover {
    opacity: 1;
}

/* ==========================================================================
   9. RESPONSIVE & MEDIA QUERIES
   ========================================================================== */

/* Desktop (768px+) */
@media only screen and (min-width: 768px) {
    .custom-toggle {
        margin: -22.65vh auto 0 !important;
    }

    .project-row {
        margin-bottom: 200px;
    }

    #collaborations .et_pb_gallery_item {
        width: 16.66% !important;
    }

    #collaborations .et_pb_gallery_item img {
        height: 70px;
    }

    .et_pb_gallery_caption {
        height: 70px;
        margin-top: -70px !important;
    }
}

/* Tablet/Mobile (below 981px) */
@media (max-width: 980px) {
    #page-container #main-header {
        transform: translateY(-110px) !important;
    }

    #page-container #main-header.et-fixed-header {
        transform: translateY(0px) !important;
        position: fixed !important;
        top: 0px !important;
        -webkit-opacity: 1 !important;
        opacity: 1 !important;
    }
}

/* Flexbox Stacking (below 980px) */
@media all and (max-width: 980px) {
    .custom-row {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .first-on-mobile {
        order: 1;
        -webkit-order: 1;
    }

    .second-on-mobile {
        order: 2;
        -webkit-order: 2;
    }
}

/* Mobile (below 768px) */
@media only screen and (max-width: 767px) {
    .custom-toggle {
        margin: -24.65vw auto 0 !important;
    }

    .project-row {
        margin-bottom: 100px;
    }

    #collaborations .et_pb_gallery_item {
        width: 20% !important;
    }

    #collaborations .et_pb_gallery_item img {
        height: 40px;
    }

    .et_pb_gallery_caption {
        height: 40px;
        margin-top: -40px !important;
    }

    /* Keep project-info as absolute overlay on mobile */
    .et_pb_portfolio_item {
        overflow: hidden !important;
    }

    .project-info {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important; /* Always visible on mobile */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        z-index: 2 !important;
    }

    /* Show the pseudo-element overlay on mobile with reduced opacity */
    .project-info::before {
        display: block !important;
        background-color: rgba(0, 0, 0, 0.4) !important; /* Less opaque than desktop hover (0.7) */
    }

    /* Adjust text styles for mobile */
    .project-info h2,
    .project-info .dp-custom-field {
        text-align: center !important;
        color: #ffffff !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .project-info h2 a,
    .project-info .dp-custom-field,
    .project-info .dp-custom-field-value {
        color: #ffffff !important;
    }

    /* Disable transitions on mobile */
    .transition {
        -webkit-animation-duration: 0s !important;
        animation-duration: 0s !important;
        opacity: 1 !important;
    }

    #clips .et_pb_module {
        animation-duration: 0s !important;
    }
}

/* Small Mobile (320px and below) */
@media only screen and (max-width: 479px) {
    li.et_pb_portfolio_filter {
        display: block;
        width: 100% !important;
    }
}

.all-clips .et_pb_portfolio_items {
	display:grid;
	grid-template-columns:1fr;
}
@media only screen and (min-width: 981px) {
	.all-clips .et_pb_portfolio_items {
		grid-template-columns:repeat(4, 1fr);	
	}
}
@media (min-width: 480px) and (max-width: 980px) {
	.all-clips .et_pb_portfolio_items {
		grid-template-columns:repeat(3, 1fr);	
	}
}