.reveal {
    opacity: 0;
    transform: translateY(40px) scaleX(0.8);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scaleX(1);
	animation-iteration-count: infinite;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }
.reveal-delay-9 { transition-delay: 0.9s; }
.reveal-delay-10 { transition-delay: 0.10s; }


.nop {
    animation: slideUp 1.1s linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes slideUp {
    from { transform: translateY(0px); }
    to { transform: translateY(10px); }
}

#g-navigation .g-main-nav .g-toplevel {
    display: flex;
    justify-content: center;
}
#g-navigation .g-main-nav .g-toplevel > li.active > .g-menu-item-container{
color: #7f33cc;
}
#g-navigation:before {
    content: "";
    background: linear-gradient(to right, transparent, #7f33cc, transparent);
    width: 100vw;
    position: absolute;
    z-index: 5;
    height: 2px;
}
#g-navigation {
    position: relative;
    width: 100%;
    background: #ffffffab !important;
    backdrop-filter: blur(12px);
}
#lang-container {
    text-align: end;
}
#g-navigation .g-main-nav .g-toplevel > li {
    margin: 0 0.6rem;
}
#g-navigation .g-main-nav .g-toplevel > li.active > .g-menu-item-container > .g-menu-item-content {
    box-shadow: 0 0px 0 #7f33cc;
}

#g-navigation .g-main-nav .g-toplevel > li.active > .g-menu-item-container > .g-menu-item-content:after {
    content: "";
    border: solid 1px;
    position: absolute;
    bottom: 0;
    width: 22px;
    left: 0;
    right: 0;
    margin: auto;
}

#g-navigation .g-main-nav .g-toplevel > li:hover > .g-menu-item-container{
	color: #7f33cc;
}

.g-main-nav .g-toplevel > li > .g-menu-item-container, .g-main-nav .g-sublevel > li > .g-menu-item-container{
	font-size: .875rem;
    line-height: 1.25rem;
		
}

button#language-button {
    background: transparent;
    border: solid 1px lightgray;
    border-radius: 50px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #434343;
    display: inline-flex;
}

button#language-button svg {
    margin: 0 5px;
    width: 20px;
    stroke: #434343;
    min-width: 20px;
}

button#language-button:hover {
    background: transparent;
    border: solid 1px #7f33cc;
    color: #7f33cc;
}

button#language-button:hover svg {
    stroke: #7f33cc;
}
.g-offcanvas-toggle {
    font-size: 16px;
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    color: #a5a5a5;
}
.g-offcanvas-toggle:hover {color: #7f33cc;}
.mobile_menu {
    position: absolute;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
section#g-navigation .g-content {
    padding: 0;
}

.g-logo.g-logo-helium img, .g-logo.g-logo-helium svg {
    max-height: 40px;
}
.g-offcanvas-toggle i.fa.fa-fw.fa-bars {
    border: solid 1px;
    border-radius: 20px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
section#g-navigation .g-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    justify-content: center;
}
div#first_section {
}

#g-header:before{
background:white
}
#g-header{
	background-image:none;
	background: none;
	margin-top: 0 !important;
}
section#g-navigation.scrolled {
    box-shadow: 0px 2px 11px #00000021;
    position: fixed;
}


.floriana-gallery-section {
    padding: 40px 0;
    max-width: 1024px;
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 4px 20px;
    background: transparent;
    border: 1px solid #0000002e; /* Floriana accent */
    color: #333;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #000000;
    color: #fff;
}

/* Responsive Image Grid */
.gallery-grid {
    display: grid;
    /* This automatically creates responsive columns without media queries! */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* The magic classes controlled by Javascript */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Image & Hover Styling */
.image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0000007a 3%, transparent);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 70px 1rem;
}

.image-wrapper:hover .gallery-img {
    transform: scale(1.05);
}
.gallery-grid .details {
    position: absolute;
    background: #ffffff;
    width: 100%;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0px 0px;
    font-size: 1.1em;
    font-weight: bold;
    height: 60px;
    justify-content: flex-start;
    pointer-events: none;
}
.gallery-item:hover{box-shadow: 0px 0px 5px 0px #0000005e;}
.gallery-item a{
	color:black
}
.gallery-item a:hover{
	color:black
}
.image-wrapper:hover .hover-overlay {
    opacity: 1;
}
.gallery-black .g-particle {display: flex;justify-content: center;flex-direction: column;align-items: center;}
.gallery-item .icon {
    height: 100%;
    padding: 10px 0px;
    margin-inline-start: 10px;
}
.gallery-item .title {
    margin-inline-start: 10px;
}
.gallery-item span.svg-icon {
    background: #672f903d;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.filter-label {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}


.filter-label span {
    margin: 4px;
}
#g-navigation .g-main-nav{
	    font-family: var(--font-sans);
}
[lang = "ar"] .view-all svg {
    transform: scale(-1);
}







/* Overlay & Container */
div#form-result {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999999;
    top: 0;
    left: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.2); /* Slight dimming */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.form_result_container {
    background: white;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    position: relative;
    max-width: 90%;
    width: 400px;
}

/* Modern Close Button */
.form_result_close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    font-family: sans-serif;
}
.form_result_close:hover { color: #111827; }

.form_result_title {
    text-align: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #059669;
}

.form_result_content {
    text-align: center;
    font-size: 1.1rem;
    color: #4b5563;
    padding-top: 10px;
}

/* The Loader Spinner */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #E5E7EB;
    border-bottom-color: #059669;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px auto;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.visual-hide {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

svg path {
    stroke: #8033cc;
        fill: transparent;
    stroke-width: 2px;
}


.why-us-icons svg path {
    stroke: #bd82f8;
    fill: transparent;
    stroke-width: 2px;
}

.our_services_icons svg path {
    stroke: #8033cc;
     fill: transparent;
    stroke-width: 2px;
}

.group:hover .our_services_icons svg path {
    stroke: white;
        transition-duration: .3s;
}

.white-arrow path {
    stroke: white;
}


#g-utility {
	background:transparent
}
.gallery-item.initial-hide {
    display: none;
}
#g-offcanvas #g-mobilemenu-container ul > li:not(.g-menu-item-type-particle):not(.g-menu-item-type-module).active {
    background: #6b2bab26;
    border-radius: 10px;
}
#g-offcanvas #g-mobilemenu-container ul {
    padding: 0 10px;
}
#g-offcanvas #g-mobilemenu-container ul > li > .g-menu-item-container {
    padding: 0.5rem;
    margin: 1rem 0;
}
.g-error #g-header .g-content {
    padding: 0;
}
@media(max-width: 1085px) {
#lang-container .g-content {
    display: flex;
    justify-content: flex-end;
}
	div#first_section {
    padding: 0rem 0;
}
.mobile_menu_button_container {display: block;width: 32px;height: 32px;}
.gallery-grid .details {
    font-size: 1em;
}
}

@media(max-width: 650px) {
.gallery-grid{
	    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.gallery-grid .details {
    font-size: 1em;
}
}