/* Custom fixes for logo aspect ratio and slider arrows */

/* Fix logo aspect ratio - actual logo is 1600x1099 (ratio ~1.46:1) */
/* Logo size is half of original (103px instead of 206px) */
/* Logo color is inverted */
header .header-row .logo-box img {
  width: 103px;
  height: auto !important;
  max-height: 70.5px;
  object-fit: contain;
  /* filter: invert(1); */
}
.animation-logo.load {
  height: 96.5px;
}

.animation-logo img {
  width: 412px;
  height: auto !important;
  max-height: 282px;
  object-fit: contain;
  /* filter: invert(1); */
}

.animation-logo.load img {
  width: 103px;
  height: auto !important;
  max-height: 70.5px;
  object-fit: contain;
  /* filter: invert(1); */
  margin-top: 65px;
}

/* Loading bar container - positioned under logo */
.animation-logo .loading-bar-container {
  margin-top: 0px;
  width: 300px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.animation-logo.load .loading-bar-container {
  opacity: 0;
  pointer-events: none;
}

/* Loading bar progress */
.animation-logo .loading-bar {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  width: 0%;
  transition: width 0.3s ease-out;
  position: relative;
}

.animation-logo .loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 767.98px) {
  .animation-logo .loading-bar-container {
    width: 200px;
    margin-top: 0px;
  }
}


/* Hide default Slick theme arrow icons (the :before pseudo-elements) */
.gallery .slick-prev:before,
.gallery .slick-next:before {
  content: none !important;
  display: none !important;
}

/* Our custom arrows use :after pseudo-elements, so keep those visible */
.gallery .slick-arrow.slick-prev:after,
.gallery .slick-arrow.slick-next:after {
  display: block !important;
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 10001;
  background-color: #000;
  padding: 20px;
  border-radius: 4px;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 10002;
}

.video-modal-close:hover {
  opacity: 0.7;
}

.video-modal-content video {
  width: 100%;
  height: auto;
  display: block;
}

body.modal-open {
  overflow: hidden;
}

/* Ensure project items are clickable and show cursor pointer */
.projects-listing .project-item {
  cursor: pointer;
}

/* Ensure project hover text box is visible on hover */
.projects-listing .project-item:hover .text-box {
  opacity: 1;
}

/* Project text box styling - centered, three rows */
.projects-listing .project-item .text-box {
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 24px !important;
}

/* Project title (project name) */
.projects-listing .project-item .text-box .project-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 6px 0 !important;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: 100%;
}

/* Project subtitles (address and type) */
.projects-listing .project-item .text-box .project-subtitle {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0 0 4px 0 !important;
  text-align: center;
  width: 100%;
}

.projects-listing .project-item .text-box .project-subtitle:last-child {
  margin-bottom: 0 !important;
}

