/* gallery page */
body {
  font-family: sans-serif;
  margin: 0;
  /* background: #f7f7f7; */
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 0px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.61);
  width: 30%;
  display: flex;
  flex-direction: column;
}

.card .image-wrapper {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.card .image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.card .image-wrapper:hover img {
  filter: brightness(60%);
}

.card .buttons-section{
    width: 90%;
    margin: auto;
    position: relative;
}

.card .buttons {
  position: absolute;
  bottom: 10px;
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: space-evenly;
  opacity: 0;
  transition: 0.3s ease;
}

.card .image-wrapper:hover .buttons {
  opacity: 1;
}

.card .buttons button {
  background: #fff;
  color:#088e4e;
  font-weight: 600;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}

.caption {
  padding: 10px;
  line-height: 24px;
  font-size: 14px;
}

.caption span {
  display: inline;
}

.read-more {
  color: #088e4e;
  background: #fff;
  font-weight: 600;
  border: 2px solid #088e4e;
  border-radius: 5px;
  cursor: pointer;
}

.fullscreen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  display: none;
}

.fullscreen img {
  max-height: 80vh;
  max-width: 90vw;
}

.fullscreen .nav {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.fullscreen .nav .bullets {
  display: flex;
  gap: 6px;
}

.fullscreen .nav .bullets span {
  height: 10px;
  width: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.fullscreen .nav .bullets .active {
  background: #fff;
}

.fullscreen .close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

@media (max-width:991px) {
    .card {
        width: 45%;
    }
}

@media (max-width:691px) {
    .card {
        width: 90%;
    }
    .card .image-wrapper {
        height: 400px;
    }
}

@media (max-width:691px) {
    .card .image-wrapper {
        height: 400px;
    }
}

@media (max-width:491px) {
    .card .image-wrapper {
        height: auto;
    }
}
