.project-section {
  margin-block: 20rem;
}

.carousel {
  display: flex;
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: thin; /* Firefox */
  position: relative;
}
img {
  -webkit-user-drag: none;
}

.carousel::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 40%);
  border-radius: 10px;
  padding: 40px;
  height: 40px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #dfdfdf;
  border-radius: 10px;
  padding: 40px;
  height: 40px;
}

.carousel-item {
  position: relative;
  margin-inline: 20%;
  display: block;
  scroll-snap-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-img {
  max-height: 200px;
  cursor: pointer;
  border-radius: 1em;
}

.photo-title {
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
  width: 100%;
  background: linear-gradient(
    110deg,
    #835741 2.8%,
    #f8d9bc 29.72%,
    #835741 59.87%,
    #f8d9bc 91.42%
  );
  background-clip: border-box;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 100;
}

.fullscreen-img {
  max-width: 90%;
  max-height: 90%;
}

main {
  padding-top: 8rem;
}

.fullscreen-title {
  color: white;
  text-align: center;
  margin-top: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 50rem;
  margin-inline: auto;
}

.carousel-arrow {
  background-color: #835741 ;
  border: none;
  color: white;
  font-size: 3rem;
  padding: 1rem;
  line-height: 0.5;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
  transition: transform 100ms;
}
.carousel-arrow:hover{
  transform: scale(.9) translateY(-50%);
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* Show arrows on larger screens */
@media (min-width: 768px) {
  .carousel-arrow {
    display: block;
  }
  .carousel-item{
    margin-inline: 100%;
  }
}
@media (max-width: 820px){
  
  .carousel-container{
    width: 100%;
  }
  .project-section {
    margin-block: 10rem;
  }
}