

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-image {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 5px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, .7);
  font-size: 2rem;
  color: #3182EE;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.carousel-dots span {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.carousel-dots .active {
  background-color: #3182EE;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease-in-out;
}

/* Controls in top right corner */
.lightbox-controls {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2;
}

.lightbox-controls button {
  font-size: 2.4rem;
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  border-radius: 50%; 
  cursor: pointer;
  
  padding: 0;

  line-height: 0.5rem; 
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 0 5px rgba(0,0,0,0.4);
  transition: background 0.2s ease;
}

.lightbox-controls button:hover {
  background: #ddd;
}

.lightbox-controls .close-lb {
  font-size: 2.4rem;

  width: 36px;
  height: 36px;
  padding: 0;
  background: white;
  color: red;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  transition: background 0.23s ease;
}

.lightbox-controls .close-lb:hover {
  font-size: 2.4rem;
  background: red;
  color: white;
}

.lightbox-controls button#fullscreen-toggle {
  font-size: 1.6em;
  font-weight: bold;
}


/* Lightbox navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 5px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav.left {
  left: 20px;
}

.lightbox-nav.right {
  right: 20px;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
