

/* Background Interactive Text */
.galeris-background-text {
    position: fixed;
    top: 50%;
    left: 40%;
    font-size: 250px;
    font-weight: 700;
    line-height: 0.8;
    color: white;
    opacity: 0.01;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 0;
    transition: transform 0.1s ease-out;
}

.galeris-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.galeris-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    gap: 10px;
    margin-top: 20px;
}

.galeris-item {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    aspect-ratio: 4/3;
    transform: translateZ(0);
}

.galeris-item:hover {
    transform: scale(1.03) translateZ(0);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* keep existing shadow */
}

.galeris-item:hover img {
    transform: scale(1.1); /* existing zoom */
    filter: brightness(1.2); /* make image brighter on hover */
    transition: transform 0.5s ease, filter 0.5s ease;
}

.galeris-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeris-item.video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.galeris-item.video::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.galeris-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.galeris-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.galeris-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.galeris-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.galeris-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: none;
}

.galeris-lightbox-video {
    width: 800px;
    height: 450px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: none;
    border: none;
}

.galeris-lightbox-img.active,
.galeris-lightbox-video.active {
    display: block;
}

.galeris-lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.galeris-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.galeris-close-btn:hover {
    color: #9e6cdf;
}

.galeris-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1001;
}

.galeris-nav-btn:hover {
    background: rgba(122, 88, 34, 0.3);
}

.galeris-prev-btn {
    left: 20px;
}

.galeris-next-btn {
    right: 20px;
}

.galeris-load-more {
    display: block;
    margin: 50px auto 0;
    padding: 5px 10px;
    background: transparent;
    color: white;
    border: 1px solid #cc9f52;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;

}

.galeris-load-more:hover {
    color: #9e6cdf;
    border-color: #9e6cdf; /* optional: change border color on hover */
}


/* Mobile */
@media (max-width: 768px) {
    .galeris-gallery {
        grid-template-columns: 1fr;
    }

    .galeris-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .galeris-prev-btn {
        left: 5px;
    }

    .galeris-next-btn {
        right: 5px;
    }

    .galeris-lightbox-video {
        width: 95vw;
        height: calc(95vw * 0.5625);
    }
}


.galeris-loading {
    font-size: 14px;
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
}

.galeris-item.video {
    position: relative;
    overflow: hidden;
}

.galeris-item.video::after {
    content: '\f04b'; /* Font Awesome play icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* perfectly center */
    font-size: 1rem;
    color: white; /* icon color */
    z-index: 2;

    /* Circle background */
    width: 60px;
    height: 60px;
  
    border: 1px solid #7c7c7c; /* gold border */
    border-radius: 50%; /* make circle */
    display: flex;
    align-items: center;
    justify-content: center; /* perfectly center the triangle */
    text-align: center;
}