/*
 Theme Name:   DFALT ART
 Theme URI:    https://yoursite.com/divi-child/
 Description:  Divi Child Theme
 Author:       Your Name
 Author URI:   https://yoursite.com
 Template:     Divi
 Version:      1.0.0
*/

.final-gallery-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    width: 100%;
}

.final-gallery-flex .gallery-item {
    flex: 0 0 calc((100% - 48px) / 4);
    box-sizing: border-box;
    overflow: hidden;
    aspect-ratio: 1 / 1;           /* forces square shape */
    position: relative;
}

.final-gallery-flex img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* fills square, crops edges if needed */
    object-position: center;
    display: block;
    border-radius: 4px;
}
.process-gallery-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    width: 100%;
}

.process-gallery-flex .gallery-item {
    flex: 0 0 calc((100% - 80px) / 6);  /* 6 per row */
    box-sizing: border-box;
    overflow: hidden;
    aspect-ratio: 1 / 1;                /* forces square */
    position: relative;                 /* allows absolute positioning */
}

.process-gallery-flex img {
    width: 100%;
    height: 100%;
    object-fit: cover;                  /* fills square completely */
    object-position: center;            /* centers the image */
    display: block;
    border-radius: 4px;
}

.gallery-caption, .gallery-item a {
    width: 100%;
}

.gallery-item a {
    display: inline;
}

/* Slideshow */
.dfalt-bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.dfalt-bg-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.dfalt-bg-slideshow .slide.active {
    opacity: 1;
}

.dfalt-bg-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('');
    background-size: 1500px 1500px;   /* adjust tile size */
    background-repeat: repeat;
    mix-blend-mode: multiply;        /* or screen / multiply / soft-light */
    opacity: 0.25;                  /* 0.15–0.35 range works best */
    pointer-events: none;
}

/* Black tint overlay on top of all slides */
.dfalt-bg-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /*background-color: rgba();   black tint – adjust 0.35 for strength */
    pointer-events: none;
}

/* Content on top (add to your main content section if needed) */
.et_pb_section, .et_pb_row, .et_pb_column {
    position: relative;
    z-index: 2;
}
/* FOOTER */
/* Option A: Make footer fixed at bottom (stays visible) */
footer, #footer, .et_pb_section.et_pb_footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0,0,0,0.7); /* semi-transparent if you want overlay feel */
}

/* Option B: Hide footer completely on homepage */
body.home footer, body.page-id-XX footer {  /* replace XX with homepage ID */
    display: none !important;
}

/* Option C: Push footer below slideshow but keep it clean */
body.home .et_pb_section.et_pb_footer {
    position: relative;
    z-index: 5;
    background: #000; /* or your color */
    padding: 40px 0;
    margin-top: -1px; /* avoids gap line */
}

/* Home PAge Navbar Menu*/

/* Transparent navbar + white text on homepage only */
.home #main-header,
.home #main-header.et-fixed-header {
	    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0) 100%) !important;

    /*background-color: transparent !important; */
}

.home #main-header .container .et-menu li a,
.home #main-header .et-cart-info,
.home .et-fixed-header#main-header .container .et-menu li a {
    color: #ffffff !important;
}

/* White menu links on homepage only */
.home #main-header .et-menu li a,
.home #main-header .et-cart-info,
.home .et-fixed-header#main-header .et-menu li a {
    color: #ffffff !important;
}

/* Optional: white submenu links too */
.home #top-menu a {
    color: #ffffff !important;
}

/* Optional: white logo on homepage if logo is dark */
.home #main-header .logo_container img {
    filter: brightness(0) invert(1) !important;
}

/* Responsive: Adjust calc for fewer columns */
@media (max-width: 1024px) {
	.process-gallery-flex .gallery-item {
        flex: 0 0 calc((100% - 64px) / 5);
    }
    .final-gallery-flex .gallery-item {
        flex: 0 0 calc((100% - 32px) / 3);  /* For 3 items: (100% - 2 gaps) / 3 */
    }
}

@media (max-width: 768px) {
	.process-gallery-flex .gallery-item {
        flex: 0 0 calc((100% - 32px) / 3);
    }
    .final-gallery-flex .gallery-item {
        flex: 0 0 calc((100% - 16px) / 2);  /* For 2 items: (100% - 1 gap) / 2 */
    }
}

@media (max-width: 480px) {
	.process-gallery-flex .gallery-item {
        flex: 0 0 100%;
    }
    .final-gallery-flex .gallery-item {
        flex: 0 0 100%;  /* For 1 item: full width */
    }
}

