/* Gallery wrapper with relative positioning */
.project-gallery {
    position: relative;
}

/* Image container (same as before, just taller for portrait) */
.project-gallery .gallery-img {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 420px; /* Increased height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-gallery .gallery-img img {
    height: 100%;
    width: 100% !important;
    object-fit: cover;
    transition: 0.4s ease-in-out;
}

.project-gallery .gallery-img img:hover {
    transform: scale(1.05);
}

.project-gallery .gallery-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.4s ease-in-out;
}

.project-gallery .gallery-img video:hover {
  transform: scale(1.05);
}


/* Scrollable row */
.scrollable-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 10px 0;
    margin: 0 60px; /* enough space for outer arrows */

    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollable-gallery::-webkit-scrollbar {
    display: none;
}

.scrollable-gallery.dragging {
  cursor: grabbing;
  user-select: none;
}


/* Flex items */
.project-gallery .row.flex-nowrap > div {
    flex: 0 0 auto;
   width: 500px;
}

/* Arrows outside */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    color: #000; /* or white depending on your background */
    border: none;
    font-size: 32px;
    cursor: pointer;
    background: transparent; /* no background */
    border-radius: 0; /* remove circular shape */
    box-shadow: none; /* remove shadow */
    padding: 5px; /* optional: slight padding for better click area */
    transition: 0.3s ease;
}

.gallery-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    color: #555; /* optional hover color */
}
.left-arrow {
    left: -15px;
}

.right-arrow {
    right: -15px;
}

.gallery-img img,
.gallery-img video {
  user-drag: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -khtml-user-drag: none;
  pointer-events: auto;
}

@media (max-width: 576px) {
  .project-gallery .row.flex-nowrap > div {
    width: 90vw; /* Use 90% of the viewport width */
  }

  .scrollable-gallery {
    margin: 0 10px; /* Optional: reduce horizontal padding on mobile */
  }

   .project-gallery .gallery-img {
    height: 400px; /* or any taller value you prefer for mobile */
  }
  
   .left-arrow {
    left: -10px;
}

.right-arrow {
    right: -10px;
}
}



/* Wrapper for the section */
.single-project-status {
    padding: 20px;
    text-align: center;
}

/* Status label above the image */
.status-label {
    font-size: 18px;
    font-weight: 600;
    color: #003d4d;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Image wrapper */
.status-image-wrapper {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Smaller image size */
.status-image {
    width: 400px;       /* Adjust as needed (e.g., 250px or 280px) */
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}


@media (max-width: 576px) {
  .status-image {
    width: 90%;  /* Smaller screen, fill most of the width */
  }

  .section-work p{
    text-align: center ;
    font-size: 20px;
    color:#434141;
    font-weight: 500;
    margin-bottom: 30px;
}
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
}

.popup-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

/* Outside navigation and close buttons */
.popup-close,
.popup-arrow {
  position: absolute;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

.popup-close {
  top: 15px;
  right: 20px;
}

.popup-nav-left {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.popup-nav-right {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/*@media (max-width: 576px) {*/
/*  .popup-content {*/
/*    width: 100vw;*/
/*    height: 100vh;*/
/*    max-width: 100%;*/
/*    max-height: 100%;*/
/*    padding: 0;*/
/*    margin: 0;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*  }*/

/*  .popup-img {*/
/*    width: 84%;*/
/*    height: auto;*/
/*    max-height: 100%;*/
/*    object-fit: contain;*/
/*  }*/

/*  .popup-close {*/
/*    top: 10px;*/
/*    right: 10px;*/
/*    font-size: 32px;*/
/*    background: none;*/
/*    color: white;*/
/*    z-index: 10001;*/
/*  }*/

/*  .popup-arrow {*/
/*    font-size: 36px;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    background: none;*/
/*    padding: 10px;*/
/*  }*/

/*  .popup-nav-left {*/
/*    left: 0px;*/
/*  }*/

/*  .popup-nav-right {*/
/*    right: 0px;*/
/*  }*/
/*}*/

@media (max-width: 576px) {
  .popup-content {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .popup-img {
    width: 100%;
    height: 90vh; /* Increased height */
    object-fit: contain;
  }

  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    background: none;
    color: white;
    z-index: 10001;
  }

.popup-arrow {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.6); /* translucent white */
  color: #000;
  border: none;
  border-radius: 50%; /* perfect circle */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10002;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* subtle shadow */
  transition: background-color 0.3s ease;
}

.popup-arrow:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

  .popup-nav-left {
    left: 5px;
  }

  .popup-nav-right {
    right: 5px;
  }
}



#imagePopup {
  display: none;
}
