/*** Flip effect ***/
.tck-flip-module {
z-index: auto;
overflow: visible;
background: none;
perspective: 1000px;
position: relative;

}

.tck-flip-module .tck-module-text {
box-sizing: border-box;
z-index: 1;
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
transform: rotateY(180deg);
top:0;
/*! overflow: visible; */
}

.tck-flip-module .tck-module {
transform-style: preserve-3d;
transition: transform 0.8s;
position: relative;
width: 100%;
height: 100%;
text-align: center;
overflow: visible;
}

.tck-flip-module h3 {
opacity: 1;
z-index: 2;
/* for firefox 31 */
transform: rotateY(0deg);
position:absolute;
}

.tck-flip-module h3,
.tck-flip-module .tck-module-text {
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
}

.tck-flip-module:hover .tck-module {
transform: rotateY(-180deg);
}

/* lightbox.css */

/* 1. The Background Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensures it sits on top of everything */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Class to activate the lightbox */
.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

/* 2. The Lightbox Content (Image) */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

/* Animation for the image popping in */
.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

/* 3. The Close Button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1001;
}

.lightbox-close:hover {
  color: #ccc;
}

/* Optional: Caption styling */
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: white;
  text-align: center;
  width: 100%;
  font-family: sans-serif;
}
