/* IMAGE TILE BOXES */
.image-tile-box * {
    text-decoration: none !important;
}

.image-tile-box {
    transition: all 0.3s ease !important;
}

.image-tile-box .btn-serv span {
    position: relative;
}

.image-tile-box .btn-serv span::after {
    font-family: "digital_drive_ui_icons";
    font-style: normal;
    font-weight: normal;
    speak: never;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    text-align: center;
    opacity: 1;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    content: '\e804';
    margin-left: 8px;
}

.image-tile-box .box-img {
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
    -o-object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    z-index: -1 !important;
}

.image-tile-box:hover .box-img {
    transform: scale(1.1);
}

/* BOX WRAP */
.box-wrap .btn-serv {
    margin-bottom: 0;
    transition: all .3s ease;
}

.box-wrap {
    border-bottom: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    text-decoration: none !important;
    transition: all .3s ease !important;
    z-index: 1 !important;
}

.box-wrap:after {
    background-color: #FFCC33 !important;
    bottom: 0;
    content: '';
    height: 10px;
    left: 0;
    position: absolute;
    right: 0;
    transition: all .3s ease;
}

.box-wrap:before {
    border-radius: 0 0 12px 12px;
}

.box-wrap:hover .box-bg-img {
    transform: scale(1.1);
}

.box-wrap:hover::before {
    border-radius: 0;
}

.box-wrap .box-bg-img {
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
    -o-object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    transition: all .3s ease !important;
    width: 100% !important;
    z-index: -1 !important;
}

.box-wrap img {
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
    -o-object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    transition: all .3s ease !important;
    width: 100% !important;
    z-index: -1 !important;
}

/* BOX WRAP */
.box-wrap .btn-serv {
    margin-bottom: 0;
    transition: all .3s ease;
}

.box-wrap {
    border-bottom: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    text-decoration: none !important;
    transition: all .3s ease !important;
    z-index: 1 !important;
}

.box-wrap:after {
    background-color: var( --e-global-color-primary );
    bottom: 0;
    content: '';
    height: 10px;
    left: 0;
    position: absolute;
    right: 0;
    transition: all .3s ease;
}

.box-wrap:before {
    border-radius: 0 0 12px 12px;
}

.box-wrap:hover .box-bg-img {
    transform: scale(1.1);
}

.box-wrap:hover::before {
    border-radius: 0;
}

.box-wrap .box-bg-img {
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
    -o-object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    transition: all .3s ease !important;
    width: 100% !important;
    z-index: -1 !important;
}

.box-wrap img {
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
    -o-object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    transition: all .3s ease !important;
    width: 100% !important;
    z-index: -1 !important;
}

/* Hide all gallery items by default */
.img-gallery .elementor-gallery__container .elementor-gallery-item {
  display: none;
}

/* Show the first 6 initially */
.img-gallery .elementor-gallery__container .elementor-gallery-item:nth-child(-n+6) {
  display: block;
}

#gallery-toggle-btn {
    align-items: center;
    border-radius: 4px;
    border: 1px solid #0D2045;
    color: #0D2045;
    display: inline-flex;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    gap: 8px;
    margin-bottom: 0;
    margin-top: 20px;
    padding: 12px 20px;
    cursor: pointer;
    text-align: center;
}

.caret-icon {
    align-items: center;
    display: flex;
    transition: transform 0.3s ease;
}

/* Rotated state (for "up") */
.caret-icon.up {
    transform: rotate(180deg);
}

.w-loader .elementor-loop-container::after {
    animation: spin 2s linear infinite;
    border: 5px solid #f3f3f3;
    content: '';
    border-top: 5px solid #000C52;
    border-radius: 50%;
    display: none;
    height: 40px;
    width: 40px;
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.w-loader.loading .elementor-loop-container::after {
    display: inline-block;
}

.box-wrap .btn-serv {
	margin-bottom: -50px !important;
	opacity: 0;
}

.box-wrap:hover .btn-serv {
	margin-bottom: 0 !important;
	opacity: 1;
}

.box-wrap:after {
	background-color: transparent;
	height: 0;
}

.box-wrap:hover::after {
	background-color: var( --e-global-color-primary );
	height: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* CONTACT MODAL CONTAINER */
#modal-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 0;

    /* start hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#modal-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; 
}

#contact-modal {
    position: relative;
    display: flex;
    max-width: 100%;
    max-height: 100%;
}

#contact-modal .form-column {
    max-height: 90vh;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

#modal-toggle-btn .elementor-button {
    cursor: pointer;
    color: #fff;
}

#close-trigger .elementor-icon {
    cursor: pointer;
}
#modal-toggle-btn .elementor-icon {
    display: flex !important;
}

@media (max-width: 767px) {
    #close-trigger {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 999999;
    }
    #contact-modal .form-column {
        max-height: unset;
        overflow-y: unset;
    }
    #contact-modal {
        max-height: 100vh;
        overflow-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* GLOBAL ADJUSTMENTS */
/* BUTTON ICONS */
.elementor-button .elementor-button-icon > i {
	font-size: 20px;
}
@media (max-width: 767px) {
	.elementor-button .elementor-button-icon > i {
		font-size: 16px;
	}
}
/* TEXT LINKS ON PARAGRAPH CONTENT */
.elementor-widget-text-editor a, .elementor-text-editor a {
	font-size: inherit !important;
	line-height: inherit !important;
}

/* DIGITAL DRIVE FOOTER */
.e-dd-footer {
    color: #fff;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
}
.e-dd-footer a { 
    color: inherit !important;
    text-decoration: underline !important;   
	font-size: inherit !important;
    font-family: inherit !important;
	font-weight: inherit !important;
    line-height: inherit !important;
}